diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index 43539d9e524..f5d921f292d 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20231201", + "revision": "20240105", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { "AccessApprovalServiceAccount": { @@ -1028,7 +1028,7 @@ "Google initiated service for security, fraud, abuse, or compliance purposes.", "The principal was compelled to access customer data in order to respond to a legal third party data request or process, including legal processes from customers themselves.", "The principal accessed customer data in order to diagnose or resolve a suspected issue in services or a known outage.", - "Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but meant to reflect when the cloud operator is not Google (namely, a TPC operator), and accessed customer data in order to diagnose or resolve a suspected issue in services or a known outage, or for security, fraud, abuse, or compliance review purposes." + "Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but with universe agnostic naming. The principal accessed customer data in order to diagnose or resolve a suspected issue in services or a known outage, or for security, fraud, abuse, or compliance review purposes." ], "type": "string" } diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index 1343a095451..016665caca4 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -433,11 +433,10 @@ type AccessReason struct { // customer data in order to diagnose or resolve a suspected issue in // services or a known outage. // "CLOUD_INITIATED_ACCESS" - Similar to 'GOOGLE_INITIATED_SERVICE' or - // 'GOOGLE_INITIATED_REVIEW', but meant to reflect when the cloud - // operator is not Google (namely, a TPC operator), and accessed - // customer data in order to diagnose or resolve a suspected issue in - // services or a known outage, or for security, fraud, abuse, or - // compliance review purposes. + // 'GOOGLE_INITIATED_REVIEW', but with universe agnostic naming. The + // principal accessed customer data in order to diagnose or resolve a + // suspected issue in services or a known outage, or for security, + // fraud, abuse, or compliance review purposes. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 925bb15b770..becc292b2ff 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -7871,6 +7871,159 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.artifacts.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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + "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" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } } }, "contexts": { @@ -8190,100 +8343,253 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "executions": { - "methods": { - "addExecutionEvents": { - "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", - "parameterOrder": [ - "execution" - ], - "parameters": { - "execution": { - "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+execution}:addExecutionEvents", - "request": { - "$ref": "GoogleCloudAiplatformV1AddExecutionEventsRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1AddExecutionEventsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "create": { - "description": "Creates an Execution associated with a MetadataStore.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.metadataStores.executions.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "executionId": { - "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/executions", - "request": { - "$ref": "GoogleCloudAiplatformV1Execution" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1Execution" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes an Execution.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.metadataStores.executions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "etag": { - "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", - "location": "query", - "type": "string" + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "name": { - "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.contexts.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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + "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" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "executions": { + "methods": { + "addExecutionEvents": { + "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", + "parameterOrder": [ + "execution" + ], + "parameters": { + "execution": { + "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+execution}:addExecutionEvents", + "request": { + "$ref": "GoogleCloudAiplatformV1AddExecutionEventsRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1AddExecutionEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates an Execution associated with a MetadataStore.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "executionId": { + "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/executions", + "request": { + "$ref": "GoogleCloudAiplatformV1Execution" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1Execution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Execution.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.executions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, "get": { "description": "Retrieves a specific Execution.", @@ -8448,32 +8754,185 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "metadataSchemas": { - "methods": { - "create": { - "description": "Creates a MetadataSchema.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "metadataSchemaId": { - "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", - "location": "query", - "type": "string" + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "parent": { - "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - "required": true, - "type": "string" - } - }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.executions.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/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + "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" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "metadataSchemas": { + "methods": { + "create": { + "description": "Creates a MetadataSchema.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "metadataSchemaId": { + "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + "required": true, + "type": "string" + } + }, "path": "v1/{+parent}/metadataSchemas", "request": { "$ref": "GoogleCloudAiplatformV1MetadataSchema" @@ -8552,76 +9011,14 @@ ] } } - } - } - }, - "migratableResources": { - "methods": { - "batchMigrate": { - "description": "Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources:batchMigrate", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.batchMigrate", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/migratableResources:batchMigrate", - "request": { - "$ref": "GoogleCloudAiplatformV1BatchMigrateResourcesRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] }, - "search": { - "description": "Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.search", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/migratableResources:search", - "request": { - "$ref": "GoogleCloudAiplatformV1SearchMigratableResourcesRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1SearchMigratableResourcesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { "operations": { "methods": { "cancel": { "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.operations.cancel", + "id": "aiplatform.projects.locations.metadataStores.operations.cancel", "parameterOrder": [ "name" ], @@ -8629,7 +9026,7 @@ "name": { "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -8644,9 +9041,9 @@ }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.migratableResources.operations.delete", + "id": "aiplatform.projects.locations.metadataStores.operations.delete", "parameterOrder": [ "name" ], @@ -8654,7 +9051,7 @@ "name": { "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -8669,9 +9066,9 @@ }, "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.migratableResources.operations.get", + "id": "aiplatform.projects.locations.metadataStores.operations.get", "parameterOrder": [ "name" ], @@ -8679,7 +9076,7 @@ "name": { "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -8694,9 +9091,9 @@ }, "list": { "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.migratableResources.operations.list", + "id": "aiplatform.projects.locations.metadataStores.operations.list", "parameterOrder": [ "name" ], @@ -8709,7 +9106,7 @@ "name": { "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", "required": true, "type": "string" }, @@ -8735,9 +9132,9 @@ }, "wait": { "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.operations.wait", + "id": "aiplatform.projects.locations.metadataStores.operations.wait", "parameterOrder": [ "name" ], @@ -8745,7 +9142,7 @@ "name": { "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" }, @@ -8768,57 +9165,270 @@ } } }, - "modelDeploymentMonitoringJobs": { + "migratableResources": { "methods": { - "create": { - "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", + "batchMigrate": { + "description": "Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources:batchMigrate", "httpMethod": "POST", - "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create", + "id": "aiplatform.projects.locations.migratableResources.batchMigrate", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + "description": "Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/modelDeploymentMonitoringJobs", + "path": "v1/{+parent}/migratableResources:batchMigrate", "request": { - "$ref": "GoogleCloudAiplatformV1ModelDeploymentMonitoringJob" + "$ref": "GoogleCloudAiplatformV1BatchMigrateResourcesRequest" }, "response": { - "$ref": "GoogleCloudAiplatformV1ModelDeploymentMonitoringJob" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Deletes a ModelDeploymentMonitoringJob.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete", + "search": { + "description": "Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources:search", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.migratableResources.search", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + "parent": { + "description": "Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, + "path": "v1/{+parent}/migratableResources:search", + "request": { + "$ref": "GoogleCloudAiplatformV1SearchMigratableResourcesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1SearchMigratableResourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.migratableResources.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.migratableResources.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.migratableResources.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.migratableResources.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/[^/]+/migratableResources/[^/]+$", + "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" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.migratableResources.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "modelDeploymentMonitoringJobs": { + "methods": { + "create": { + "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/modelDeploymentMonitoringJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1ModelDeploymentMonitoringJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1ModelDeploymentMonitoringJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a ModelDeploymentMonitoringJob.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] @@ -14722,7 +15332,7 @@ } } }, - "revision": "20231218", + "revision": "20231229", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -15251,6 +15861,10 @@ }, "type": "array" }, + "debugMetadata": { + "$ref": "CloudAiNlLlmProtoServiceMessageMetadata", + "description": "Debug information containing message metadata. Clients should not consume this field, and this is only populated for Flow Runner path." + }, "promptFeedback": { "$ref": "CloudAiNlLlmProtoServicePromptFeedback", "description": "Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations." @@ -15266,6 +15880,27 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServiceMessageMetadata": { + "id": "CloudAiNlLlmProtoServiceMessageMetadata", + "properties": { + "inputFilterInfo": { + "$ref": "LearningServingLlmMessageMetadata", + "description": "Filter metadata of the input messages." + }, + "modelRoutingDecision": { + "$ref": "LearningGenaiRootRoutingDecision", + "description": "This score is generated by the router model to decide which model to use" + }, + "outputFilterInfo": { + "description": "Filter metadata of the output messages.", + "items": { + "$ref": "LearningServingLlmMessageMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServicePart": { "description": "A single part of a message.", "id": "CloudAiNlLlmProtoServicePart", @@ -15381,31 +16016,196 @@ }, "type": "object" }, - "CloudAiNlLlmProtoServiceSafetyRating": { - "description": "Safety rating corresponding to the generated content.", - "id": "CloudAiNlLlmProtoServiceSafetyRating", + "CloudAiNlLlmProtoServiceRaiResult": { + "description": "The RAI results for a given text.", + "id": "CloudAiNlLlmProtoServiceRaiResult", "properties": { + "aidaRecitationResult": { + "$ref": "LanguageLabsAidaTrustRecitationProtoRecitationResult", + "description": "Recitation result from Aida recitation checker." + }, "blocked": { - "description": "Indicates whether the content was filtered out because of this rating.", + "deprecated": true, + "description": "Use `triggered_blocklist`.", "type": "boolean" }, - "category": { - "description": "Harm category.", - "enum": [ - "HARM_CATEGORY_UNSPECIFIED", - "HARM_CATEGORY_HATE_SPEECH", - "HARM_CATEGORY_DANGEROUS_CONTENT", - "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_SEXUALLY_EXPLICIT" - ], - "enumDescriptions": [ - "The harm category is unspecified.", - "The harm category is hate speech.", - "The harm category is dengerous content.", - "The harm category is harassment.", - "The harm category is sexually explicit." - ], - "type": "string" + "errorCodes": { + "description": "The error codes indicate which RAI filters block the response.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "filtered": { + "description": "Whether the text should be filtered and not shown to the end user. This is determined based on a combination of `triggered_recitation`, `triggered_blocklist`, `language_filter_result`, and `triggered_safety_filter`.", + "type": "boolean" + }, + "languageFilterResult": { + "$ref": "LearningServingLlmLanguageFilterResult", + "description": "Language filter result from SAFT LangId." + }, + "raiSignals": { + "description": "The RAI signals for the text.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceRaiSignal" + }, + "type": "array" + }, + "triggeredBlocklist": { + "description": "Whether the text triggered the blocklist.", + "type": "boolean" + }, + "triggeredRecitation": { + "description": "Whether the text should be blocked by the recitation result from Aida recitation checker. It is determined from aida_recitation_result.", + "type": "boolean" + }, + "triggeredSafetyFilter": { + "description": "Whether the text triggered the safety filter. Currently, this is due to CSAI triggering or one of four categories (derogatory, sexual, toxic, violent) having a score over the filter threshold.", + "type": "boolean" + } + }, + "type": "object" + }, + "CloudAiNlLlmProtoServiceRaiSignal": { + "description": "An RAI signal for a single category.", + "id": "CloudAiNlLlmProtoServiceRaiSignal", + "properties": { + "confidence": { + "description": "The confidence level for the RAI category.", + "enum": [ + "CONFIDENCE_UNSPECIFIED", + "CONFIDENCE_NONE", + "CONFIDENCE_LOW", + "CONFIDENCE_MEDIUM", + "CONFIDENCE_HIGH" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "flagged": { + "description": "Whether the category is flagged as being present. Currently, this is set to true if score \u003e= 0.5.", + "type": "boolean" + }, + "raiCategory": { + "description": "The RAI category.", + "enum": [ + "RAI_CATEGORY_UNSPECIFIED", + "TOXIC", + "SEXUALLY_EXPLICIT", + "HATE_SPEECH", + "VIOLENT", + "PROFANITY", + "HARASSMENT", + "DEATH_HARM_TRAGEDY", + "FIREARMS_WEAPONS", + "PUBLIC_SAFETY", + "HEALTH", + "RELIGIOUS_BELIEF", + "ILLICIT_DRUGS", + "WAR_CONFLICT", + "POLITICS", + "FINANCE", + "LEGAL", + "CSAI", + "FRINGE", + "THREAT", + "SEVERE_TOXICITY", + "TOXICITY", + "SEXUAL", + "INSULT", + "DEROGATORY", + "IDENTITY_ATTACK", + "VIOLENCE_ABUSE", + "OBSCENE", + "DRUGS", + "CSAM", + "SPII", + "DANGEROUS_CONTENT", + "DANGEROUS_CONTENT_SEVERITY", + "INSULT_SEVERITY", + "DEROGATORY_SEVERITY", + "SEXUAL_SEVERITY" + ], + "enumDescriptions": [ + "", + "SafetyCat categories.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "GRAIL categories that can't be exposed to end users.", + "", + "Unused categories.", + "", + "Old category names.", + "", + "", + "", + "", + "", + "", + "", + "CSAM V2", + "SPII", + "New SafetyCat v3 categories", + "", + "", + "", + "" + ], + "type": "string" + }, + "score": { + "description": "The score for the category, in the range [0.0, 1.0].", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiNlLlmProtoServiceSafetyRating": { + "description": "Safety rating corresponding to the generated content.", + "id": "CloudAiNlLlmProtoServiceSafetyRating", + "properties": { + "blocked": { + "description": "Indicates whether the content was filtered out because of this rating.", + "type": "boolean" + }, + "category": { + "description": "Harm category.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT" + ], + "enumDescriptions": [ + "The harm category is unspecified.", + "The harm category is hate speech.", + "The harm category is dengerous content.", + "The harm category is harassment.", + "The harm category is sexually explicit." + ], + "type": "string" }, "probability": { "description": "Harm probability levels in the content.", @@ -20710,11 +21510,6 @@ }, "type": "array" }, - "endpoint": { - "deprecated": true, - "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - "type": "string" - }, "generationConfig": { "$ref": "GoogleCloudAiplatformV1GenerationConfig", "description": "Optional. Generation config." @@ -25757,6 +26552,10 @@ "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open fine-tuning pipeline of the PublisherModel." }, + "openFineTuningPipelines": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines", + "description": "Optional. Open fine-tuning pipelines of the PublisherModel." + }, "openGenerationAiStudio": { "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open in Generation AI Studio." @@ -25769,6 +26568,10 @@ "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open notebook of the PublisherModel." }, + "openNotebooks": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks", + "description": "Optional. Open notebooks of the PublisherModel." + }, "openPromptTuningPipeline": { "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open prompt-tuning pipeline of the PublisherModel." @@ -25827,6 +26630,34 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines": { + "description": "Open fine tuning pipelines.", + "id": "GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines", + "properties": { + "fineTuningPipelines": { + "description": "Required. Regional resource references to fine tuning pipelines.", + "items": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks": { + "description": "Open notebooks.", + "id": "GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks", + "properties": { + "notebooks": { + "description": "Required. Regional resource references to notebooks.", + "items": { + "$ref": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences": { "description": "The regional resource name or the URI. Key is region, e.g., us-central1, europe-west2, global, etc..", "id": "GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences", @@ -25838,8 +26669,20 @@ "description": "Required.", "type": "object" }, + "resourceDescription": { + "description": "Optional. Description of the resource.", + "type": "string" + }, + "resourceTitle": { + "description": "Optional. Title of the resource.", + "type": "string" + }, + "resourceUseCase": { + "description": "Optional. Use case (CUJ) of the resource.", + "type": "string" + }, "title": { - "description": "Required. The title of the regional resource reference.", + "description": "Required. ", "type": "string" } }, @@ -25883,6 +26726,7 @@ "id": "GoogleCloudAiplatformV1PublisherModelResourceReference", "properties": { "description": { + "deprecated": true, "description": "Description of the resource.", "type": "string" }, @@ -25895,6 +26739,7 @@ "type": "string" }, "useCase": { + "deprecated": true, "description": "Use case (CUJ) of the resource.", "type": "string" } @@ -27930,7 +28775,7 @@ "type": "string" }, "inlineContext": { - "description": "The grounding text passed inline with the Predict API. It can support up to 1 million token context.", + "description": "The grounding text passed inline with the Predict API. It can support up to 1 million bytes.", "type": "string" }, "type": { @@ -33207,6 +34052,4169 @@ } }, "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoDocAttribution": { + "description": "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id:28", + "id": "LanguageLabsAidaTrustRecitationProtoDocAttribution", + "properties": { + "amarnaId": { + "type": "string" + }, + "arxivId": { + "type": "string" + }, + "author": { + "type": "string" + }, + "bibkey": { + "type": "string" + }, + "bookTitle": { + "type": "string" + }, + "bookVolumeId": { + "description": "The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set.", + "format": "int64", + "type": "string" + }, + "category": { + "enum": [ + "CATEGORY_UNSPECIFIED", + "CATEGORY_NEWS", + "CATEGORY_NON_NEWS_WEBDOC", + "CATEGORY_UNKNOWN_MISSING_SIGNAL" + ], + "enumDescriptions": [ + "", + "The doc has a url and the news classifier has classified this doc as news.", + "The doc has a url and the news classifier classified this doc as non-news.", + "The doc has a url but the url was missing from the news classifier URL table." + ], + "type": "string" + }, + "conversationId": { + "type": "string" + }, + "dataset": { + "description": "The dataset this document comes from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset.", + "Mobile assistant finetune datasets.", + "", + "Genesis fine-tune datasets.", + "Cloud Security fine-tune datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "filepath": { + "type": "string" + }, + "geminiId": { + "type": "string" + }, + "gnewsArticleTitle": { + "type": "string" + }, + "goodallExampleId": { + "type": "string" + }, + "isOptOut": { + "description": "Whether the document is opted out.", + "type": "boolean" + }, + "isPrompt": { + "type": "boolean" + }, + "lamdaExampleId": { + "type": "string" + }, + "license": { + "type": "string" + }, + "meenaConversationId": { + "type": "string" + }, + "naturalLanguageCode": { + "description": "Natural (not programming) language of the document. Language code as defined by http://www.unicode.org/reports/tr35/#Identifiers and https://tools.ietf.org/html/bcp47. Currently applicable to full-view books. Use docinfo-util.h to set \u0026 read language fields. See go/iii.", + "type": "string" + }, + "noAttribution": { + "description": "True if this doc has no attribution information available. We use an explicit field for this instead of just implicitly leaving all the DocAttribution fields blank to distinguish a case where a bug/oversight has left the attribution information empty vs when we really have no attribution information available.", + "type": "boolean" + }, + "podcastUtteranceId": { + "type": "string" + }, + "publicationDate": { + "$ref": "GoogleTypeDate" + }, + "qualityScoreExperimentOnly": { + "description": "This field is for opt-out experiment only, MUST never be used during actual production/serving. ", + "format": "double", + "type": "number" + }, + "repo": { + "description": "Github repository", + "type": "string" + }, + "url": { + "description": "URL of a webdoc", + "type": "string" + }, + "volumeId": { + "type": "string" + }, + "wikipediaArticleTitle": { + "description": "Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset.", + "type": "string" + } + }, + "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoRecitationResult": { + "description": "The recitation result for one input", + "id": "LanguageLabsAidaTrustRecitationProtoRecitationResult", + "properties": { + "dynamicSegmentResults": { + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + }, + "recitationAction": { + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "trainingSegmentResults": { + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoSegmentResult": { + "description": "The recitation result for each segment in a given input.", + "id": "LanguageLabsAidaTrustRecitationProtoSegmentResult", + "properties": { + "attributionDataset": { + "description": "The dataset the segment came from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset.", + "Mobile assistant finetune datasets.", + "", + "Genesis fine-tune datasets.", + "Cloud Security fine-tune datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "displayAttributionMessage": { + "description": "human-friendly string that contains information from doc_attribution which could be shown by clients", + "type": "string" + }, + "docAttribution": { + "$ref": "LanguageLabsAidaTrustRecitationProtoDocAttribution", + "description": "populated when recitation_action == CITE" + }, + "docOccurrences": { + "description": "number of documents that contained this segment", + "format": "int32", + "type": "integer" + }, + "endIndex": { + "format": "int32", + "type": "integer" + }, + "rawText": { + "description": "The raw text in the given input that is corresponding to the segment. It will be available only when 'return_segment_raw_text' is enabled in the request options.", + "type": "string" + }, + "segmentRecitationAction": { + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "startIndex": { + "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoStreamRecitationResult": { + "description": "The recitation result for one stream input", + "id": "LanguageLabsAidaTrustRecitationProtoStreamRecitationResult", + "properties": { + "dynamicSegmentResults": { + "description": "The recitation result against the given dynamic data source.", + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + }, + "fullyCheckedTextIndex": { + "description": "Last index of input text fully checked for recitation in the entire streaming context. Would return `-1` if no Input was checked for recitation.", + "format": "int32", + "type": "integer" + }, + "recitationAction": { + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "trainingSegmentResults": { + "description": "The recitation result against model training data.", + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRecitationDocAttribution": { + "description": "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 28", + "id": "LearningGenaiRecitationDocAttribution", + "properties": { + "amarnaId": { + "type": "string" + }, + "arxivId": { + "type": "string" + }, + "author": { + "type": "string" + }, + "bibkey": { + "type": "string" + }, + "bookTitle": { + "type": "string" + }, + "bookVolumeId": { + "description": "The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set.", + "format": "int64", + "type": "string" + }, + "conversationId": { + "type": "string" + }, + "dataset": { + "description": "The dataset this document comes from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset", + "Mobile assistant finetune datasets.", + "", + "Genesis fine tuned datasets.", + "Cloud Security fine tuned datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "filepath": { + "type": "string" + }, + "geminiId": { + "type": "string" + }, + "gnewsArticleTitle": { + "type": "string" + }, + "goodallExampleId": { + "type": "string" + }, + "isOptOut": { + "description": "Whether the document is opted out.", + "type": "boolean" + }, + "isPrompt": { + "description": "When true, this attribution came from the user's prompt.", + "type": "boolean" + }, + "lamdaExampleId": { + "type": "string" + }, + "license": { + "type": "string" + }, + "meenaConversationId": { + "type": "string" + }, + "naturalLanguageCode": { + "description": "Natural (not programming) language of the document. Language code as defined by http://www.unicode.org/reports/tr35/#Identifiers and https://tools.ietf.org/html/bcp47. Currently applicable to full-view books. Use docinfo-util.h to set \u0026 read language fields. See go/iii.", + "type": "string" + }, + "noAttribution": { + "description": "True if this doc has no attribution information available. We use an explicit field for this instead of just implicitly leaving all the DocAttribution fields blank to distinguish a case where a bug/oversight has left the attribution information empty vs when we really have no attribution information available.", + "type": "boolean" + }, + "podcastUtteranceId": { + "type": "string" + }, + "publicationDate": { + "$ref": "GoogleTypeDate" + }, + "qualityScoreExperimentOnly": { + "description": "This field is for opt-out experiment only, MUST never be used during actual production/serving. ", + "format": "double", + "type": "number" + }, + "repo": { + "description": "Github repository", + "type": "string" + }, + "url": { + "description": "URL of a webdoc", + "type": "string" + }, + "volumeId": { + "type": "string" + }, + "wikipediaArticleTitle": { + "description": "Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRecitationRecitationResult": { + "description": "The recitation result for one input", + "id": "LearningGenaiRecitationRecitationResult", + "properties": { + "dynamicSegmentResults": { + "items": { + "$ref": "LearningGenaiRecitationSegmentResult" + }, + "type": "array" + }, + "recitationAction": { + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "trainingSegmentResults": { + "items": { + "$ref": "LearningGenaiRecitationSegmentResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRecitationSegmentResult": { + "description": "The recitation result for each segment in a given input.", + "id": "LearningGenaiRecitationSegmentResult", + "properties": { + "attributionDataset": { + "description": "The dataset the segment came from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset", + "Mobile assistant finetune datasets.", + "", + "Genesis fine tuned datasets.", + "Cloud Security fine tuned datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "displayAttributionMessage": { + "description": "human-friendly string that contains information from doc_attribution which could be shown by clients", + "type": "string" + }, + "docAttribution": { + "$ref": "LearningGenaiRecitationDocAttribution", + "description": "populated when recitation_action == CITE" + }, + "docOccurrences": { + "description": "number of documents that contained this segment", + "format": "int32", + "type": "integer" + }, + "endIndex": { + "format": "int32", + "type": "integer" + }, + "rawText": { + "description": "The raw text in the given input that is corresponding to the segment. It will be available only when 'return_segment_raw_text' is enabled in the request options.", + "type": "string" + }, + "segmentRecitationAction": { + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "startIndex": { + "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LearningGenaiRootCalculationType": { + "description": "The type used for final weights calculation.", + "id": "LearningGenaiRootCalculationType", + "properties": { + "scoreType": { + "enum": [ + "TYPE_UNKNOWN", + "TYPE_SAFE", + "TYPE_POLICY", + "TYPE_GENERATION" + ], + "enumDescriptions": [ + "Unknown scorer type.", + "Safety scorer.", + "Policy scorer.", + "Generation scorer." + ], + "type": "string" + }, + "weights": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootClassifierOutput": { + "id": "LearningGenaiRootClassifierOutput", + "properties": { + "ruleOutput": { + "$ref": "LearningGenaiRootRuleOutput", + "deprecated": true, + "description": "If set, this is the output of the first matching rule." + }, + "ruleOutputs": { + "description": "outputs of all matching rule.", + "items": { + "$ref": "LearningGenaiRootRuleOutput" + }, + "type": "array" + }, + "state": { + "$ref": "LearningGenaiRootClassifierState", + "description": "The results of data_providers and metrics." + } + }, + "type": "object" + }, + "LearningGenaiRootClassifierOutputSummary": { + "id": "LearningGenaiRootClassifierOutputSummary", + "properties": { + "metrics": { + "items": { + "$ref": "LearningGenaiRootMetricOutput" + }, + "type": "array" + }, + "ruleOutput": { + "$ref": "LearningGenaiRootRuleOutput", + "deprecated": true, + "description": "Output of the first matching rule." + }, + "ruleOutputs": { + "description": "outputs of all matching rule.", + "items": { + "$ref": "LearningGenaiRootRuleOutput" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootClassifierState": { + "description": "DataProviderOutput and MetricOutput can be saved between calls to the Classifier framework. For instance, you can run the query classifier, get outputs from those metrics, then use them in a result classifier as well. Example rule based on this idea: and_rules { rule { metric_name: 'query_safesearch_v2' ... } rule { metric_name: 'response_safesearch_v2' ... } }", + "id": "LearningGenaiRootClassifierState", + "properties": { + "dataProviderOutput": { + "items": { + "$ref": "LearningGenaiRootDataProviderOutput" + }, + "type": "array" + }, + "metricOutput": { + "items": { + "$ref": "LearningGenaiRootMetricOutput" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootDataProviderOutput": { + "id": "LearningGenaiRootDataProviderOutput", + "properties": { + "name": { + "type": "string" + }, + "status": { + "$ref": "UtilStatusProto", + "description": "If set, this DataProvider failed and this is the error message." + } + }, + "type": "object" + }, + "LearningGenaiRootFilterMetadata": { + "id": "LearningGenaiRootFilterMetadata", + "properties": { + "confidence": { + "description": "Filter confidence.", + "enum": [ + "FILTER_CONFIDENCE_UNKNOWN", + "FILTER_CONFIDENCE_VERY_LOW", + "FILTER_CONFIDENCE_LOW", + "FILTER_CONFIDENCE_MEDIUM", + "FILTER_CONFIDENCE_HIGH", + "FILTER_CONFIDENCE_VERY_HIGH" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "debugInfo": { + "$ref": "LearningGenaiRootFilterMetadataFilterDebugInfo", + "description": "Debug info for the message." + }, + "fallback": { + "description": "A fallback message chosen by the applied filter.", + "type": "string" + }, + "info": { + "description": "Additional info for the filter.", + "type": "string" + }, + "name": { + "description": "Name of the filter that triggered.", + "type": "string" + }, + "reason": { + "description": "Filter reason.", + "enum": [ + "FILTER_REASON_UNKNOWN", + "FILTER_REASON_NOT_FILTERED", + "FILTER_REASON_SENSITIVE", + "FILTER_REASON_RECITATION", + "FILTER_REASON_LANGUAGE", + "FILTER_REASON_TAKEDOWN", + "FILTER_REASON_CLASSIFIER", + "FILTER_REASON_EMPTY_RESPONSE", + "FILTER_REASON_SIMILARITY_TAKEDOWN", + "FILTER_REASON_UNSAFE", + "FILTER_REASON_PAIRWISE_CLASSIFIER", + "FILTER_REASON_CODEY", + "FILTER_REASON_URL", + "FILTER_REASON_EMAIL", + "FILTER_REASON_SAFETY_CAT", + "FILTER_REASON_REQUEST_RESPONSE_TAKEDOWN", + "FILTER_REASON_RAI_PQC", + "FILTER_REASON_ATLAS", + "FILTER_REASON_RAI_CSAM", + "FILTER_REASON_RAI_FRINGE", + "FILTER_REASON_RAI_SPII", + "FILTER_REASON_RAI_IMAGE_VIOLENCE", + "FILTER_REASON_RAI_IMAGE_PORN", + "FILTER_REASON_RAI_IMAGE_CSAM", + "FILTER_REASON_RAI_IMAGE_PEDO", + "FILTER_REASON_RAI_VIDEO_FRAME_VIOLENCE", + "FILTER_REASON_RAI_VIDEO_FRAME_PORN", + "FILTER_REASON_RAI_VIDEO_FRAME_CSAM", + "FILTER_REASON_RAI_VIDEO_FRAME_PEDO", + "FILTER_REASON_RAI_CONTEXTUAL_DANGEROUS", + "FILTER_REASON_RAI_SAFETYCAT", + "FILTER_REASON_TOXICITY", + "FILTER_REASON_ATLAS_PRICING", + "FILTER_REASON_ATLAS_BILLING", + "FILTER_REASON_ATLAS_NON_ENGLISH_QUESTION", + "FILTER_REASON_ATLAS_NOT_RELATED_TO_GCP", + "FILTER_REASON_ATLAS_AWS_AZURE_RELATED" + ], + "enumDescriptions": [ + "Unknown filter reason.", + "Input not filtered.", + "Sensitive content.", + "Recited content.", + "Language filtering", + "Takedown policy", + "Classifier Module", + "Empty response message.", + "Similarity takedown.", + "Unsafe responses from scorers.", + "Pairwise classifier.", + "Codey Filter.", + "URLs Filter.", + "Emails Filter.", + "SafetyCat filter.", + "Request Response takedown.", + "RAI Filter.", + "Atlas specific topic filter", + "RAI Filter.", + "RAI Filter.", + "RAI Filter.", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "SafetyCat.", + "Toxic content.", + "Atlas specific topic filter for pricing questions.", + "Atlas specific topic filter for billing questions.", + "Atlas specific topic filter for non english questions.", + "Atlas specific topic filter for non GCP questions.", + "Atlas specific topic filter aws/azure related questions." + ], + "type": "string" + }, + "text": { + "description": "The input query or generated response that is getting filtered.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootFilterMetadataFilterDebugInfo": { + "id": "LearningGenaiRootFilterMetadataFilterDebugInfo", + "properties": { + "classifierOutput": { + "$ref": "LearningGenaiRootClassifierOutput" + }, + "defaultMetadata": { + "type": "string" + }, + "languageFilterResult": { + "$ref": "LearningServingLlmLanguageFilterResult" + }, + "raiOutput": { + "$ref": "LearningGenaiRootRAIOutput", + "description": "Safety filter output information for LLM Root RAI harm check." + }, + "raiResult": { + "$ref": "CloudAiNlLlmProtoServiceRaiResult" + }, + "raiSignal": { + "$ref": "CloudAiNlLlmProtoServiceRaiSignal", + "deprecated": true + }, + "streamRecitationResult": { + "$ref": "LanguageLabsAidaTrustRecitationProtoStreamRecitationResult", + "deprecated": true + }, + "takedownResult": { + "$ref": "LearningGenaiRootTakedownResult" + }, + "toxicityResult": { + "$ref": "LearningGenaiRootToxicityResult" + } + }, + "type": "object" + }, + "LearningGenaiRootHarm": { + "id": "LearningGenaiRootHarm", + "properties": { + "contextualDangerous": { + "description": "Please do not use, this is still under development.", + "type": "boolean" + }, + "csam": { + "type": "boolean" + }, + "fringe": { + "type": "boolean" + }, + "grailImageHarmType": { + "$ref": "LearningGenaiRootHarmGrailImageHarmType" + }, + "grailTextHarmType": { + "$ref": "LearningGenaiRootHarmGrailTextHarmType" + }, + "imageCsam": { + "type": "boolean" + }, + "imagePedo": { + "type": "boolean" + }, + "imagePorn": { + "description": "Image signals", + "type": "boolean" + }, + "imageViolence": { + "type": "boolean" + }, + "pqc": { + "type": "boolean" + }, + "safetycat": { + "$ref": "LearningGenaiRootHarmSafetyCatCategories" + }, + "spii": { + "$ref": "LearningGenaiRootHarmSpiiFilter" + }, + "threshold": { + "format": "double", + "type": "number" + }, + "videoFrameCsam": { + "type": "boolean" + }, + "videoFramePedo": { + "type": "boolean" + }, + "videoFramePorn": { + "description": "Video frame signals", + "type": "boolean" + }, + "videoFrameViolence": { + "type": "boolean" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmGrailImageHarmType": { + "description": "Harm type for images", + "id": "LearningGenaiRootHarmGrailImageHarmType", + "properties": { + "imageHarmType": { + "items": { + "enum": [ + "IMAGE_HARM_TYPE_UNSPECIFIED", + "IMAGE_HARM_TYPE_PORN", + "IMAGE_HARM_TYPE_VIOLENCE", + "IMAGE_HARM_TYPE_CSAI", + "IMAGE_HARM_TYPE_PEDO", + "IMAGE_HARM_TYPE_MINORS", + "IMAGE_HARM_TYPE_DANGEROUS", + "IMAGE_HARM_TYPE_MEDICAL", + "IMAGE_HARM_TYPE_RACY", + "IMAGE_HARM_TYPE_OBSCENE", + "IMAGE_HARM_TYPE_MINOR_PRESENCE", + "IMAGE_HARM_TYPE_GENERATIVE_MINOR_PRESENCE", + "IMAGE_HARM_TYPE_GENERATIVE_REALISTIC_VISIBLE_FACE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmGrailTextHarmType": { + "description": "Harm type for text", + "id": "LearningGenaiRootHarmGrailTextHarmType", + "properties": { + "harmType": { + "items": { + "enum": [ + "HARM_TYPE_UNSPECIFIED", + "HARM_TYPE_HATE", + "HARM_TYPE_TOXICITY", + "HARM_TYPE_VIOLENCE", + "HARM_TYPE_CSAI", + "HARM_TYPE_SEXUAL", + "HARM_TYPE_FRINGE", + "HARM_TYPE_POLITICAL", + "HARM_TYPE_MEMORIZATION", + "HARM_TYPE_SPII", + "HARM_TYPE_NEW_DANGEROUS", + "HARM_TYPE_MEDICAL", + "HARM_TYPE_HARASSMENT" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "New definition of dangerous.", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmSafetyCatCategories": { + "id": "LearningGenaiRootHarmSafetyCatCategories", + "properties": { + "categories": { + "items": { + "enum": [ + "SAFETYCAT_CATEGORY_UNSPECIFIED", + "TOXICITY", + "OBSCENE", + "SEXUAL", + "INSULT", + "IDENTITY_HATE", + "DEATH_HARM_TRAGEDY", + "VIOLENCE_ABUSE", + "FIREARMS_WEAPONS", + "PUBLIC_SAFETY", + "HEALTH", + "RELIGION_BELIEF", + "DRUGS", + "WAR_CONFLICT", + "POLITICS", + "FINANCE", + "LEGAL", + "DANGEROUS", + "DANGEROUS_SEVERITY", + "HARASSMENT_SEVERITY", + "HATE_SEVERITY", + "SEXUAL_SEVERITY" + ], + "enumDescriptions": [ + "", + "SafetyCat categories.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Following categories are only supported in SAFETY_CAT_TEXT_V3_PAX model", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmSpiiFilter": { + "id": "LearningGenaiRootHarmSpiiFilter", + "properties": { + "usBankRoutingMicr": { + "type": "boolean" + }, + "usEmployerIdentificationNumber": { + "type": "boolean" + }, + "usSocialSecurityNumber": { + "type": "boolean" + } + }, + "type": "object" + }, + "LearningGenaiRootInternalMetadata": { + "id": "LearningGenaiRootInternalMetadata", + "properties": { + "scoredTokens": { + "items": { + "$ref": "LearningGenaiRootScoredToken" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootMetricOutput": { + "id": "LearningGenaiRootMetricOutput", + "properties": { + "debug": { + "type": "string" + }, + "name": { + "description": "Name of the metric.", + "type": "string" + }, + "numericValue": { + "format": "double", + "type": "number" + }, + "status": { + "$ref": "UtilStatusProto" + }, + "stringValue": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRAIOutput": { + "description": "This is per harm.", + "id": "LearningGenaiRootRAIOutput", + "properties": { + "allowed": { + "type": "boolean" + }, + "harm": { + "$ref": "LearningGenaiRootHarm" + }, + "name": { + "type": "string" + }, + "score": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootRegexTakedownResult": { + "id": "LearningGenaiRootRegexTakedownResult", + "properties": { + "allowed": { + "description": "False when query or response should be taken down due to match with a blocked regex, true otherwise.", + "type": "boolean" + }, + "takedownRegex": { + "description": "Regex used to decide that query or response should be taken down. Empty when query or response is kept.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRequestResponseTakedownResult": { + "id": "LearningGenaiRootRequestResponseTakedownResult", + "properties": { + "allowed": { + "description": "False when response has to be taken down per above config.", + "type": "boolean" + }, + "requestTakedownRegex": { + "description": "Regex used to match the request.", + "type": "string" + }, + "responseTakedownRegex": { + "description": "Regex used to decide that response should be taken down. Empty when response is kept.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecision": { + "description": "Holds the final routing decision, by storing the model_config_id. And individual scores each model got.", + "id": "LearningGenaiRootRoutingDecision", + "properties": { + "metadata": { + "$ref": "LearningGenaiRootRoutingDecisionMetadata" + }, + "modelConfigId": { + "description": "The selected model to route traffic to.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadata": { + "description": "Debug metadata about the routing decision.", + "id": "LearningGenaiRootRoutingDecisionMetadata", + "properties": { + "scoreBasedRoutingMetadata": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataScoreBased" + }, + "tokenLengthBasedRoutingMetadata": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBased" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataScoreBased": { + "description": "If we are routing using scored based configuration, then the metadata about that is available in this proto.", + "id": "LearningGenaiRootRoutingDecisionMetadataScoreBased", + "properties": { + "matchedRule": { + "$ref": "LearningGenaiRootScoreBasedRoutingConfigRule", + "description": "The rule that was matched." + }, + "score": { + "$ref": "LearningGenaiRootScore", + "description": "The score that was generated by the router i.e. the model." + }, + "usedDefaultFallback": { + "description": "No rules were matched \u0026 therefore used the default fallback.", + "type": "boolean" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataTokenLengthBased": { + "id": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBased", + "properties": { + "modelInputTokenMetadata": { + "items": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata" + }, + "type": "array" + }, + "modelMaxTokenMetadata": { + "items": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata": { + "id": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata", + "properties": { + "computedInputTokenLength": { + "description": "The length computed by backends using the formatter \u0026 tokenizer specific to the model", + "format": "int32", + "type": "integer" + }, + "modelId": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata": { + "id": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata", + "properties": { + "maxNumInputTokens": { + "format": "int32", + "type": "integer" + }, + "maxNumOutputTokens": { + "format": "int32", + "type": "integer" + }, + "modelId": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRuleOutput": { + "id": "LearningGenaiRootRuleOutput", + "properties": { + "decision": { + "enum": [ + "NO_MATCH", + "MATCH" + ], + "enumDescriptions": [ + "This rule was not matched. When used in a ClassifierOutput, this means that no rules were matched.", + "This is a generic \"match\" message, indicating that a rule was triggered. Usually you would use this for a categorization classifier." + ], + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootScore": { + "id": "LearningGenaiRootScore", + "properties": { + "calculationType": { + "$ref": "LearningGenaiRootCalculationType" + }, + "internalMetadata": { + "$ref": "LearningGenaiRootInternalMetadata", + "description": "The internal_metadata is intended to be used by internal processors and will be cleared before returns." + }, + "thresholdType": { + "$ref": "LearningGenaiRootThresholdType" + }, + "tokensAndLogprobPerDecodingStep": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStep", + "description": "Top candidate tokens and log probabilities at each decoding step." + }, + "value": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootScoreBasedRoutingConfigRule": { + "id": "LearningGenaiRootScoreBasedRoutingConfigRule", + "properties": { + "equalOrGreaterThan": { + "$ref": "LearningGenaiRootScore", + "description": "NOTE: Hardest examples have smaller values in their routing scores." + }, + "lessThan": { + "$ref": "LearningGenaiRootScore" + }, + "modelConfigId": { + "description": "This model_config_id points to ModelConfig::id which allows us to find the ModelConfig to route to. This is part of the banks specified in the ModelBankConfig.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootScoredSimilarityTakedownPhrase": { + "description": "Proto containing the results from the Universal Sentence Encoder / Other models", + "id": "LearningGenaiRootScoredSimilarityTakedownPhrase", + "properties": { + "phrase": { + "$ref": "LearningGenaiRootSimilarityTakedownPhrase" + }, + "similarityScore": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootScoredToken": { + "description": "A token with its own score.", + "id": "LearningGenaiRootScoredToken", + "properties": { + "endTokenScore": { + "description": "Each end_token_score is a logprob for how well the completion would end at a particular token. See http://google3/labs/language/aida/config/proto/model_config.proto;l=376;rcl=573039459", + "format": "float", + "type": "number" + }, + "score": { + "description": "Each score is the logprob for the token in model response.", + "format": "float", + "type": "number" + }, + "token": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootSimilarityTakedownPhrase": { + "description": "Each SimilarityTakedownPhrase treats a logical group of blocked and allowed phrases together along with a corresponding punt If the closest matching response is of the allowed type, we allow the response If the closest matching response is of the blocked type, we block the response. eg: Blocked phrase - \"All lives matter\"", + "id": "LearningGenaiRootSimilarityTakedownPhrase", + "properties": { + "blockedPhrase": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootSimilarityTakedownResult": { + "id": "LearningGenaiRootSimilarityTakedownResult", + "properties": { + "allowed": { + "description": "False when query or response should be taken down by any of the takedown rules, true otherwise.", + "type": "boolean" + }, + "scoredPhrases": { + "description": "List of similar phrases with score. Set only if allowed=false.", + "items": { + "$ref": "LearningGenaiRootScoredSimilarityTakedownPhrase" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootTakedownResult": { + "id": "LearningGenaiRootTakedownResult", + "properties": { + "allowed": { + "description": "False when query or response should be taken down by any of the takedown rules, true otherwise.", + "type": "boolean" + }, + "regexTakedownResult": { + "$ref": "LearningGenaiRootRegexTakedownResult" + }, + "requestResponseTakedownResult": { + "$ref": "LearningGenaiRootRequestResponseTakedownResult" + }, + "similarityTakedownResult": { + "$ref": "LearningGenaiRootSimilarityTakedownResult" + } + }, + "type": "object" + }, + "LearningGenaiRootThresholdType": { + "description": "The type of score that bundled with a threshold, and will not be attending the final score calculation. How each score type uses the threshold can be implementation details.", + "id": "LearningGenaiRootThresholdType", + "properties": { + "scoreType": { + "enum": [ + "TYPE_UNKNOWN", + "TYPE_SAFE", + "TYPE_POLICY", + "TYPE_GENERATION" + ], + "enumDescriptions": [ + "Unknown scorer type.", + "Safety scorer.", + "Policy scorer.", + "Generation scorer." + ], + "type": "string" + }, + "threshold": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootTokensAndLogProbPerDecodingStep": { + "description": "Results of RandomSamplingParams::top_k_logprob_per_decoding_step.", + "id": "LearningGenaiRootTokensAndLogProbPerDecodingStep", + "properties": { + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate" + }, + "type": "array" + }, + "topCandidates": { + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate": { + "description": "A candidate at a decoding step.", + "id": "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate", + "properties": { + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" + }, + "token": { + "description": "The candidate’s token value.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", + "id": "LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates", + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootToxicityResult": { + "description": "A model can generate multiple signals and this captures all the generated signals for a single message.", + "id": "LearningGenaiRootToxicityResult", + "properties": { + "signals": { + "items": { + "$ref": "LearningGenaiRootToxicitySignal" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootToxicitySignal": { + "description": "Proto to capture a signal generated by the toxicity model.", + "id": "LearningGenaiRootToxicitySignal", + "properties": { + "allowed": { + "type": "boolean" + }, + "label": { + "enum": [ + "LABEL_UNSPECIFIED", + "NOT_SENSITIVE", + "SENSITIVE", + "ACCIDENTS_DISASTERS", + "ADULT", + "COMPUTER_SECURITY", + "CONTROVERSIAL_SOCIAL_ISSUES", + "DEATH_TRAGEDY", + "DRUGS", + "IDENTITY_ETHNICITY", + "FINANCIAL_HARDSHIP", + "FIREARMS_WEAPONS", + "HEALTH", + "INSULT", + "LEGAL", + "MENTAL_HEALTH", + "POLITICS", + "RELIGION_BELIEFS", + "SAFETY", + "SELF_HARM", + "SPECIAL_NEEDS", + "TERRORISM", + "TOXIC", + "TROUBLED_RELATIONSHIP", + "VIOLENCE_ABUSE", + "VULGAR", + "WAR_CONFLICT" + ], + "enumDescriptions": [ + "Default label.", + "Input is not sensitive.", + "Input is sensitive.", + "Input is related to accidents or disasters.", + "Input contains adult content.", + "Input is related to computer security.", + "Input contains controversial social issues.", + "Input is related to death tragedy.", + "Input is related to drugs.", + "Input is related to identity or ethnicity.", + "Input is related to financial hardship.", + "Input is related to firearms or weapons.", + "Input contains health related information.", + "Input may be an insult.", + "Input is related to legal content.", + "Input contains mental health related information.", + "Input is related to politics.", + "Input is related to religions or beliefs.", + "Input is related to safety.", + "Input is related to self-harm.", + "Input is related to special needs.", + "Input is related to terrorism.", + "Input is toxic.", + "Input is related to troubled relationships.", + "Input contains content about violence or abuse.", + "Input is vulgar.", + "Input is related to war and conflict." + ], + "type": "string" + }, + "score": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningServingLlmLanguageFilterResult": { + "id": "LearningServingLlmLanguageFilterResult", + "properties": { + "allowed": { + "description": "False when query or response should be filtered out due to unsupported language.", + "type": "boolean" + }, + "detectedLanguage": { + "description": "Language of the query or response.", + "type": "string" + }, + "detectedLanguageProbability": { + "description": "Probability of the language predicted as returned by LangID.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningServingLlmMessageMetadata": { + "description": "LINT.IfChange This metadata contains additional information required for debugging.", + "id": "LearningServingLlmMessageMetadata", + "properties": { + "classifierSummary": { + "$ref": "LearningGenaiRootClassifierOutputSummary", + "description": "Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not." + }, + "currentStreamTextLength": { + "format": "uint32", + "type": "integer" + }, + "deleted": { + "description": "Whether the corresponding message has been deleted.", + "type": "boolean" + }, + "filterMeta": { + "description": "Metadata for filters that triggered.", + "items": { + "$ref": "LearningGenaiRootFilterMetadata" + }, + "type": "array" + }, + "finalMessageScore": { + "$ref": "LearningGenaiRootScore", + "description": "This score is finally used for ranking the message. This will be same as the score present in `Message.score` field." + }, + "finishReason": { + "description": "NOT YET IMPLEMENTED.", + "enum": [ + "UNSPECIFIED", + "RETURN", + "STOP", + "MAX_TOKENS", + "FILTER" + ], + "enumDescriptions": [ + "", + "Return all the tokens back. This typically implies no filtering or stop sequence was triggered.", + "Finished due to provided stop sequence.", + "Model has emitted the maximum number of tokens as specified by max_decoding_steps.", + "Finished due to triggering some post-processing filter." + ], + "type": "string" + }, + "isFallback": { + "description": "Applies to Response message only. Indicates whether the message is a fallback and the response would have otherwise been empty.", + "type": "boolean" + }, + "langidResult": { + "$ref": "NlpSaftLangIdResult", + "description": "Result from nlp_saft DetectLanguage method. Currently the predicted language code and language probability is used." + }, + "language": { + "description": "Detected language.", + "type": "string" + }, + "lmPrefix": { + "description": "The LM prefix used to generate this response.", + "type": "string" + }, + "originalText": { + "description": "The original text generated by LLM. This is the raw output for debugging purposes.", + "type": "string" + }, + "perStreamDecodedTokenCount": { + "description": "NOT YET IMPLEMENTED. Applies to streaming only. Number of tokens decoded / emitted by the model as part of this stream. This may be different from token_count, which contains number of tokens returned in this response after any response rewriting / truncation.", + "format": "int32", + "type": "integer" + }, + "raiOutputs": { + "description": "Results of running RAI on the query or this response candidate. One output per rai_config. It will be populated regardless of whether the threshold is exceeded or not.", + "items": { + "$ref": "LearningGenaiRootRAIOutput" + }, + "type": "array" + }, + "recitationResult": { + "$ref": "LearningGenaiRecitationRecitationResult", + "description": "Recitation Results. It will be populated as long as Recitation processing is enabled, regardless of recitation outcome." + }, + "returnTokenCount": { + "description": "NOT YET IMPLEMENTED. Number of tokens returned as part of this candidate.", + "format": "int32", + "type": "integer" + }, + "scores": { + "description": "All the different scores for a message are logged here.", + "items": { + "$ref": "LearningGenaiRootScore" + }, + "type": "array" + }, + "streamTerminated": { + "description": "Whether the response is terminated during streaming return. Only used for streaming requests.", + "type": "boolean" + }, + "totalDecodedTokenCount": { + "description": "NOT YET IMPLEMENTED. Aggregated number of total tokens decoded so far. For streaming, this is sum of all the tokens decoded so far i.e. aggregated count.", + "format": "int32", + "type": "integer" + }, + "translatedUserPrompts": { + "description": "Translated user-prompt used for RAI post processing. This is for internal processing only. We will translate in pre-processor and pass the translated text to the post processor using this field. It will be empty if non of the signals requested need translation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "vertexRaiResult": { + "$ref": "CloudAiNlLlmProtoServiceRaiResult", + "description": "The metadata from Vertex SafetyCat processors" + } + }, + "type": "object" + }, + "NlpSaftLangIdLocalesResult": { + "id": "NlpSaftLangIdLocalesResult", + "properties": { + "predictions": { + "description": "List of locales in which the text would be considered acceptable. Sorted in descending order according to each locale's respective likelihood. For example, if a Portuguese text is acceptable in both Brazil and Portugal, but is more strongly associated with Brazil, then the predictions would be [\"pt-BR\", \"pt-PT\"], in that order. May be empty, indicating that the model did not predict any acceptable locales.", + "items": { + "$ref": "NlpSaftLangIdLocalesResultLocale" + }, + "type": "array" + } + }, + "type": "object" + }, + "NlpSaftLangIdLocalesResultLocale": { + "id": "NlpSaftLangIdLocalesResultLocale", + "properties": { + "languageCode": { + "description": "A BCP 47 language code that includes region information. For example, \"pt-BR\" or \"pt-PT\". This field will always be populated.", + "type": "string" + } + }, + "type": "object" + }, + "NlpSaftLangIdResult": { + "id": "NlpSaftLangIdResult", + "properties": { + "modelVersion": { + "description": "The version of the model used to create these annotations.", + "enum": [ + "VERSION_UNSPECIFIED", + "INDEXING_20181017", + "INDEXING_20191206", + "INDEXING_20200313", + "INDEXING_20210618", + "STANDARD_20220516" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "predictions": { + "description": "This field stores the n-best list of possible BCP 47 language code strings for a given input sorted in descending order according to each code's respective probability.", + "items": { + "$ref": "NlpSaftLanguageSpan" + }, + "type": "array" + }, + "spanPredictions": { + "description": "This field stores language predictions of subspans of the input, when available. Each LanguageSpanSequence is a sequence of LanguageSpans. A particular sequence of LanguageSpans has an associated probability, and need not necessarily cover the entire input. If no language could be predicted for any span, then this field may be empty.", + "items": { + "$ref": "NlpSaftLanguageSpanSequence" + }, + "type": "array" + } + }, + "type": "object" + }, + "NlpSaftLanguageSpan": { + "id": "NlpSaftLanguageSpan", + "properties": { + "end": { + "format": "int32", + "type": "integer" + }, + "languageCode": { + "description": "A BCP 47 language code for this span.", + "type": "string" + }, + "locales": { + "$ref": "NlpSaftLangIdLocalesResult", + "description": "Optional field containing any information that was predicted about the specific locale(s) of the span." + }, + "probability": { + "description": "A probability associated with this prediction.", + "format": "float", + "type": "number" + }, + "start": { + "description": "Start and end byte offsets, inclusive, within the given input string. A value of -1 implies that this field is not set. Both fields must either be set with a nonnegative value or both are unset. If both are unset then this LanguageSpan applies to the entire input.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "NlpSaftLanguageSpanSequence": { + "id": "NlpSaftLanguageSpanSequence", + "properties": { + "languageSpans": { + "description": "A sequence of LanguageSpan objects, each assigning a language to a subspan of the input.", + "items": { + "$ref": "NlpSaftLanguageSpan" + }, + "type": "array" + }, + "probability": { + "description": "The probability of this sequence of LanguageSpans.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "Proto2BridgeMessageSet": { + "description": "This is proto2's version of MessageSet.", + "id": "Proto2BridgeMessageSet", + "properties": {}, + "type": "object" + }, + "UtilStatusProto": { + "description": "Wire-format for a Status object", + "id": "UtilStatusProto", + "properties": { + "canonicalCode": { + "description": "The canonical error code (see codes.proto) that most closely corresponds to this status. This may be missing, and in the common case of the generic space, it definitely will be.", + "format": "int32", + "type": "integer" + }, + "code": { + "description": "Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto", + "format": "int32", + "type": "integer" + }, + "message": { + "description": "Detail message", + "type": "string" + }, + "messageSet": { + "$ref": "Proto2BridgeMessageSet", + "description": "message_set associates an arbitrary proto message with the status." + }, + "space": { + "description": "The following are usually only present when code != 0 Space to which this status belongs", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 1cc251ed333..c7b0fe5aa52 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -728,6 +728,7 @@ func NewProjectsLocationsMetadataStoresService(s *Service) *ProjectsLocationsMet rs.Contexts = NewProjectsLocationsMetadataStoresContextsService(s) rs.Executions = NewProjectsLocationsMetadataStoresExecutionsService(s) rs.MetadataSchemas = NewProjectsLocationsMetadataStoresMetadataSchemasService(s) + rs.Operations = NewProjectsLocationsMetadataStoresOperationsService(s) return rs } @@ -741,33 +742,71 @@ type ProjectsLocationsMetadataStoresService struct { Executions *ProjectsLocationsMetadataStoresExecutionsService MetadataSchemas *ProjectsLocationsMetadataStoresMetadataSchemasService + + Operations *ProjectsLocationsMetadataStoresOperationsService } func NewProjectsLocationsMetadataStoresArtifactsService(s *Service) *ProjectsLocationsMetadataStoresArtifactsService { rs := &ProjectsLocationsMetadataStoresArtifactsService{s: s} + rs.Operations = NewProjectsLocationsMetadataStoresArtifactsOperationsService(s) return rs } type ProjectsLocationsMetadataStoresArtifactsService struct { s *Service + + Operations *ProjectsLocationsMetadataStoresArtifactsOperationsService +} + +func NewProjectsLocationsMetadataStoresArtifactsOperationsService(s *Service) *ProjectsLocationsMetadataStoresArtifactsOperationsService { + rs := &ProjectsLocationsMetadataStoresArtifactsOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresArtifactsOperationsService struct { + s *Service } func NewProjectsLocationsMetadataStoresContextsService(s *Service) *ProjectsLocationsMetadataStoresContextsService { rs := &ProjectsLocationsMetadataStoresContextsService{s: s} + rs.Operations = NewProjectsLocationsMetadataStoresContextsOperationsService(s) return rs } type ProjectsLocationsMetadataStoresContextsService struct { s *Service + + Operations *ProjectsLocationsMetadataStoresContextsOperationsService +} + +func NewProjectsLocationsMetadataStoresContextsOperationsService(s *Service) *ProjectsLocationsMetadataStoresContextsOperationsService { + rs := &ProjectsLocationsMetadataStoresContextsOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresContextsOperationsService struct { + s *Service } func NewProjectsLocationsMetadataStoresExecutionsService(s *Service) *ProjectsLocationsMetadataStoresExecutionsService { rs := &ProjectsLocationsMetadataStoresExecutionsService{s: s} + rs.Operations = NewProjectsLocationsMetadataStoresExecutionsOperationsService(s) return rs } type ProjectsLocationsMetadataStoresExecutionsService struct { s *Service + + Operations *ProjectsLocationsMetadataStoresExecutionsOperationsService +} + +func NewProjectsLocationsMetadataStoresExecutionsOperationsService(s *Service) *ProjectsLocationsMetadataStoresExecutionsOperationsService { + rs := &ProjectsLocationsMetadataStoresExecutionsOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresExecutionsOperationsService struct { + s *Service } func NewProjectsLocationsMetadataStoresMetadataSchemasService(s *Service) *ProjectsLocationsMetadataStoresMetadataSchemasService { @@ -779,6 +818,15 @@ type ProjectsLocationsMetadataStoresMetadataSchemasService struct { s *Service } +func NewProjectsLocationsMetadataStoresOperationsService(s *Service) *ProjectsLocationsMetadataStoresOperationsService { + rs := &ProjectsLocationsMetadataStoresOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresOperationsService struct { + s *Service +} + func NewProjectsLocationsMigratableResourcesService(s *Service) *ProjectsLocationsMigratableResourcesService { rs := &ProjectsLocationsMigratableResourcesService{s: s} rs.Operations = NewProjectsLocationsMigratableResourcesOperationsService(s) @@ -2010,6 +2058,11 @@ type CloudAiNlLlmProtoServiceGenerateMultiModalResponse struct { // this point. Candidates []*CloudAiNlLlmProtoServiceCandidate `json:"candidates,omitempty"` + // DebugMetadata: Debug information containing message metadata. Clients + // should not consume this field, and this is only populated for Flow + // Runner path. + DebugMetadata *CloudAiNlLlmProtoServiceMessageMetadata `json:"debugMetadata,omitempty"` + // PromptFeedback: Content filter results for a prompt sent in the // request. Note: Sent only in the first stream chunk. Only happens when // no candidates were generated due to content violations. @@ -2044,6 +2097,41 @@ func (s *CloudAiNlLlmProtoServiceGenerateMultiModalResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type CloudAiNlLlmProtoServiceMessageMetadata struct { + // InputFilterInfo: Filter metadata of the input messages. + InputFilterInfo *LearningServingLlmMessageMetadata `json:"inputFilterInfo,omitempty"` + + // ModelRoutingDecision: This score is generated by the router model to + // decide which model to use + ModelRoutingDecision *LearningGenaiRootRoutingDecision `json:"modelRoutingDecision,omitempty"` + + // OutputFilterInfo: Filter metadata of the output messages. + OutputFilterInfo []*LearningServingLlmMessageMetadata `json:"outputFilterInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputFilterInfo") 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. "InputFilterInfo") 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 *CloudAiNlLlmProtoServiceMessageMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceMessageMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudAiNlLlmProtoServicePart: A single part of a message. type CloudAiNlLlmProtoServicePart struct { // FileData: URI-based data. @@ -2226,6 +2314,167 @@ func (s *CloudAiNlLlmProtoServicePromptFeedback) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServiceRaiResult: The RAI results for a given text. +type CloudAiNlLlmProtoServiceRaiResult struct { + // AidaRecitationResult: Recitation result from Aida recitation checker. + AidaRecitationResult *LanguageLabsAidaTrustRecitationProtoRecitationResult `json:"aidaRecitationResult,omitempty"` + + // Blocked: Use `triggered_blocklist`. + Blocked bool `json:"blocked,omitempty"` + + // ErrorCodes: The error codes indicate which RAI filters block the + // response. + ErrorCodes []int64 `json:"errorCodes,omitempty"` + + // Filtered: Whether the text should be filtered and not shown to the + // end user. This is determined based on a combination of + // `triggered_recitation`, `triggered_blocklist`, + // `language_filter_result`, and `triggered_safety_filter`. + Filtered bool `json:"filtered,omitempty"` + + // LanguageFilterResult: Language filter result from SAFT LangId. + LanguageFilterResult *LearningServingLlmLanguageFilterResult `json:"languageFilterResult,omitempty"` + + // RaiSignals: The RAI signals for the text. + RaiSignals []*CloudAiNlLlmProtoServiceRaiSignal `json:"raiSignals,omitempty"` + + // TriggeredBlocklist: Whether the text triggered the blocklist. + TriggeredBlocklist bool `json:"triggeredBlocklist,omitempty"` + + // TriggeredRecitation: Whether the text should be blocked by the + // recitation result from Aida recitation checker. It is determined from + // aida_recitation_result. + TriggeredRecitation bool `json:"triggeredRecitation,omitempty"` + + // TriggeredSafetyFilter: Whether the text triggered the safety filter. + // Currently, this is due to CSAI triggering or one of four categories + // (derogatory, sexual, toxic, violent) having a score over the filter + // threshold. + TriggeredSafetyFilter bool `json:"triggeredSafetyFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AidaRecitationResult") 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. "AidaRecitationResult") 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 *CloudAiNlLlmProtoServiceRaiResult) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceRaiResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudAiNlLlmProtoServiceRaiSignal: An RAI signal for a single +// category. +type CloudAiNlLlmProtoServiceRaiSignal struct { + // Confidence: The confidence level for the RAI category. + // + // Possible values: + // "CONFIDENCE_UNSPECIFIED" + // "CONFIDENCE_NONE" + // "CONFIDENCE_LOW" + // "CONFIDENCE_MEDIUM" + // "CONFIDENCE_HIGH" + Confidence string `json:"confidence,omitempty"` + + // Flagged: Whether the category is flagged as being present. Currently, + // this is set to true if score >= 0.5. + Flagged bool `json:"flagged,omitempty"` + + // RaiCategory: The RAI category. + // + // Possible values: + // "RAI_CATEGORY_UNSPECIFIED" + // "TOXIC" - SafetyCat categories. + // "SEXUALLY_EXPLICIT" + // "HATE_SPEECH" + // "VIOLENT" + // "PROFANITY" + // "HARASSMENT" + // "DEATH_HARM_TRAGEDY" + // "FIREARMS_WEAPONS" + // "PUBLIC_SAFETY" + // "HEALTH" + // "RELIGIOUS_BELIEF" + // "ILLICIT_DRUGS" + // "WAR_CONFLICT" + // "POLITICS" + // "FINANCE" + // "LEGAL" + // "CSAI" - GRAIL categories that can't be exposed to end users. + // "FRINGE" + // "THREAT" - Unused categories. + // "SEVERE_TOXICITY" + // "TOXICITY" - Old category names. + // "SEXUAL" + // "INSULT" + // "DEROGATORY" + // "IDENTITY_ATTACK" + // "VIOLENCE_ABUSE" + // "OBSCENE" + // "DRUGS" + // "CSAM" - CSAM V2 + // "SPII" - SPII + // "DANGEROUS_CONTENT" - New SafetyCat v3 categories + // "DANGEROUS_CONTENT_SEVERITY" + // "INSULT_SEVERITY" + // "DEROGATORY_SEVERITY" + // "SEXUAL_SEVERITY" + RaiCategory string `json:"raiCategory,omitempty"` + + // Score: The score for the category, in the range [0.0, 1.0]. + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *CloudAiNlLlmProtoServiceRaiSignal) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceRaiSignal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServiceRaiSignal) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceRaiSignal + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + // CloudAiNlLlmProtoServiceSafetyRating: Safety rating corresponding to // the generated content. type CloudAiNlLlmProtoServiceSafetyRating struct { @@ -12427,11 +12676,6 @@ type GoogleCloudAiplatformV1GenerateContentRequest struct { // conversation history + latest request. Contents []*GoogleCloudAiplatformV1Content `json:"contents,omitempty"` - // Endpoint: Required. The name of the Endpoint requested to serve the - // prediction. Format: - // `projects/{project}/locations/{location}/endpoints/{endpoint}` - Endpoint string `json:"endpoint,omitempty"` - // GenerationConfig: Optional. Generation config. GenerationConfig *GoogleCloudAiplatformV1GenerationConfig `json:"generationConfig,omitempty"` @@ -21082,6 +21326,10 @@ type GoogleCloudAiplatformV1PublisherModelCallToAction struct { // PublisherModel. OpenFineTuningPipeline *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openFineTuningPipeline,omitempty"` + // OpenFineTuningPipelines: Optional. Open fine-tuning pipelines of the + // PublisherModel. + OpenFineTuningPipelines *GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines `json:"openFineTuningPipelines,omitempty"` + // OpenGenerationAiStudio: Optional. Open in Generation AI Studio. OpenGenerationAiStudio *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openGenerationAiStudio,omitempty"` @@ -21091,6 +21339,9 @@ type GoogleCloudAiplatformV1PublisherModelCallToAction struct { // OpenNotebook: Optional. Open notebook of the PublisherModel. OpenNotebook *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openNotebook,omitempty"` + // OpenNotebooks: Optional. Open notebooks of the PublisherModel. + OpenNotebooks *GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks `json:"openNotebooks,omitempty"` + // OpenPromptTuningPipeline: Optional. Open prompt-tuning pipeline of // the PublisherModel. OpenPromptTuningPipeline *GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"openPromptTuningPipeline,omitempty"` @@ -21191,6 +21442,66 @@ func (s *GoogleCloudAiplatformV1PublisherModelCallToActionDeploy) MarshalJSON() return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelin +// es: Open fine tuning pipelines. +type GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines struct { + // FineTuningPipelines: Required. Regional resource references to fine + // tuning pipelines. + FineTuningPipelines []*GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"fineTuningPipelines,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FineTuningPipelines") + // 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. "FineTuningPipelines") 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 *GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PublisherModelCallToActionOpenFineTuningPipelines + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks: Open +// notebooks. +type GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks struct { + // Notebooks: Required. Regional resource references to notebooks. + Notebooks []*GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences `json:"notebooks,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Notebooks") 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. "Notebooks") 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 *GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PublisherModelCallToActionOpenNotebooks + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceRefer // ences: The regional resource name or the URI. Key is region, e.g., // us-central1, europe-west2, global, etc.. @@ -21198,7 +21509,16 @@ type GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences // References: Required. References map[string]GoogleCloudAiplatformV1PublisherModelResourceReference `json:"references,omitempty"` - // Title: Required. The title of the regional resource reference. + // ResourceDescription: Optional. Description of the resource. + ResourceDescription string `json:"resourceDescription,omitempty"` + + // ResourceTitle: Optional. Title of the resource. + ResourceTitle string `json:"resourceTitle,omitempty"` + + // ResourceUseCase: Optional. Use case (CUJ) of the resource. + ResourceUseCase string `json:"resourceUseCase,omitempty"` + + // Title: Required. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "References") to @@ -25304,7 +25624,7 @@ type GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry struct EnterpriseDatastore string `json:"enterpriseDatastore,omitempty"` // InlineContext: The grounding text passed inline with the Predict API. - // It can support up to 1 million token context. + // It can support up to 1 million bytes. InlineContext string `json:"inlineContext,omitempty"` // Type: The type of the grounding checking source. @@ -35937,269 +36257,6676 @@ func (s *IntelligenceCloudAutomlXpsReportingMetrics) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "aiplatform.projects.locations.get": +// LanguageLabsAidaTrustRecitationProtoDocAttribution: The proto defines +// the attribution information for a document using whatever fields are +// most applicable for that document's datasource. For example, a +// Wikipedia article's attribution is in the form of its article title, +// a website is in the form of a URL, and a Github repo is in the form +// of a repo name. Next id:28 +type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { + AmarnaId string `json:"amarnaId,omitempty"` -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} + ArxivId string `json:"arxivId,omitempty"` -// Get: Gets information about a location. -// -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} + Author string `json:"author,omitempty"` -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} + Bibkey string `json:"bibkey,omitempty"` -// 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} + BookTitle string `json:"bookTitle,omitempty"` -// 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { - c.ctx_ = ctx - return c -} + // BookVolumeId: The Oceanographers full-view books dataset uses a + // 'volume id' as the unique ID of a book. There is a deterministic + // function from a volume id to a URL under the books.google.com domain. + // Marked as 'optional' since a volume ID of zero is potentially + // possible and we want to distinguish that from the volume ID not being + // set. + BookVolumeId int64 `json:"bookVolumeId,omitempty,string"` -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} + // Possible values: + // "CATEGORY_UNSPECIFIED" + // "CATEGORY_NEWS" - The doc has a url and the news classifier has + // classified this doc as news. + // "CATEGORY_NON_NEWS_WEBDOC" - The doc has a url and the news + // classifier classified this doc as non-news. + // "CATEGORY_UNKNOWN_MISSING_SIGNAL" - The doc has a url but the url + // was missing from the news classifier URL table. + Category string `json:"category,omitempty"` -func (c *ProjectsLocationsGetCall) 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) -} + ConversationId string `json:"conversationId,omitempty"` -// Do executes the "aiplatform.projects.locations.get" call. -// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudLocationLocation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleCloudLocationLocation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } + // Dataset: The dataset this document comes from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset. + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + Dataset string `json:"dataset,omitempty"` -} + Filepath string `json:"filepath,omitempty"` -// method id "aiplatform.projects.locations.list": + GeminiId string `json:"geminiId,omitempty"` -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} + GnewsArticleTitle string `json:"gnewsArticleTitle,omitempty"` -// List: Lists information about the supported locations for this -// service. -// -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} + GoodallExampleId string `json:"goodallExampleId,omitempty"` -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} + // IsOptOut: Whether the document is opted out. + IsOptOut bool `json:"isOptOut,omitempty"` -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} + IsPrompt bool `json:"isPrompt,omitempty"` -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} + LamdaExampleId string `json:"lamdaExampleId,omitempty"` -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} + License string `json:"license,omitempty"` -// 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} + MeenaConversationId string `json:"meenaConversationId,omitempty"` -// 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { - c.ctx_ = ctx - return c + // NaturalLanguageCode: Natural (not programming) language of the + // document. Language code as defined by + // http://www.unicode.org/reports/tr35/#Identifiers and + // https://tools.ietf.org/html/bcp47. Currently applicable to full-view + // books. Use docinfo-util.h to set & read language fields. See go/iii. + NaturalLanguageCode string `json:"naturalLanguageCode,omitempty"` + + // NoAttribution: True if this doc has no attribution information + // available. We use an explicit field for this instead of just + // implicitly leaving all the DocAttribution fields blank to distinguish + // a case where a bug/oversight has left the attribution information + // empty vs when we really have no attribution information available. + NoAttribution bool `json:"noAttribution,omitempty"` + + PodcastUtteranceId string `json:"podcastUtteranceId,omitempty"` + + PublicationDate *GoogleTypeDate `json:"publicationDate,omitempty"` + + // QualityScoreExperimentOnly: This field is for opt-out experiment + // only, MUST never be used during actual production/serving. + QualityScoreExperimentOnly float64 `json:"qualityScoreExperimentOnly,omitempty"` + + // Repo: Github repository + Repo string `json:"repo,omitempty"` + + // Url: URL of a webdoc + Url string `json:"url,omitempty"` + + VolumeId string `json:"volumeId,omitempty"` + + // WikipediaArticleTitle: Wikipedia article title. The Wikipedia TFDS + // dataset includes article titles but not URLs. While a URL is to the + // best of our knowledge a deterministic function of the title, we store + // the original title to reflect the information in the original + // dataset. + WikipediaArticleTitle string `json:"wikipediaArticleTitle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AmarnaId") 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. "AmarnaId") 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:"-"` } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ +func (s *LanguageLabsAidaTrustRecitationProtoDocAttribution) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoDocAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (c *ProjectsLocationsListCall) 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_) +func (s *LanguageLabsAidaTrustRecitationProtoDocAttribution) UnmarshalJSON(data []byte) error { + type NoMethod LanguageLabsAidaTrustRecitationProtoDocAttribution + var s1 struct { + QualityScoreExperimentOnly gensupport.JSONFloat64 `json:"qualityScoreExperimentOnly"` + *NoMethod } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) + s.QualityScoreExperimentOnly = float64(s1.QualityScoreExperimentOnly) + return nil } -// Do executes the "aiplatform.projects.locations.list" call. -// Exactly one of *GoogleCloudLocationListLocationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was +// LanguageLabsAidaTrustRecitationProtoRecitationResult: The recitation +// result for one input +type LanguageLabsAidaTrustRecitationProtoRecitationResult struct { + DynamicSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"dynamicSegmentResults,omitempty"` + + // RecitationAction: The recitation action for one given input. When its + // segments contain different actions, the overall action will be + // returned in the precedence of BLOCK > CITE > NO_ACTION. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + + TrainingSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"trainingSegmentResults,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DynamicSegmentResults") 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. "DynamicSegmentResults") 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 *LanguageLabsAidaTrustRecitationProtoRecitationResult) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoRecitationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LanguageLabsAidaTrustRecitationProtoSegmentResult: The recitation +// result for each segment in a given input. +type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { + // AttributionDataset: The dataset the segment came from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset. + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + AttributionDataset string `json:"attributionDataset,omitempty"` + + // DisplayAttributionMessage: human-friendly string that contains + // information from doc_attribution which could be shown by clients + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + + // DocAttribution: populated when recitation_action == CITE + DocAttribution *LanguageLabsAidaTrustRecitationProtoDocAttribution `json:"docAttribution,omitempty"` + + // DocOccurrences: number of documents that contained this segment + DocOccurrences int64 `json:"docOccurrences,omitempty"` + + EndIndex int64 `json:"endIndex,omitempty"` + + // RawText: The raw text in the given input that is corresponding to the + // segment. It will be available only when 'return_segment_raw_text' is + // enabled in the request options. + RawText string `json:"rawText,omitempty"` + + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + + // StartIndex: The segment boundary start (inclusive) and end index + // (exclusive) in the given text. In the streaming RPC, the indexes + // always start from the beginning of the first text in the entire + // stream. The indexes are measured in UTF-16 code units. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttributionDataset") + // 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. "AttributionDataset") 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 *LanguageLabsAidaTrustRecitationProtoSegmentResult) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoSegmentResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LanguageLabsAidaTrustRecitationProtoStreamRecitationResult: The +// recitation result for one stream input +type LanguageLabsAidaTrustRecitationProtoStreamRecitationResult struct { + // DynamicSegmentResults: The recitation result against the given + // dynamic data source. + DynamicSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"dynamicSegmentResults,omitempty"` + + // FullyCheckedTextIndex: Last index of input text fully checked for + // recitation in the entire streaming context. Would return `-1` if no + // Input was checked for recitation. + FullyCheckedTextIndex int64 `json:"fullyCheckedTextIndex,omitempty"` + + // RecitationAction: The recitation action for one given input. When its + // segments contain different actions, the overall action will be + // returned in the precedence of BLOCK > CITE > NO_ACTION. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + + // TrainingSegmentResults: The recitation result against model training + // data. + TrainingSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"trainingSegmentResults,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DynamicSegmentResults") 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. "DynamicSegmentResults") 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 *LanguageLabsAidaTrustRecitationProtoStreamRecitationResult) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoStreamRecitationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRecitationDocAttribution: The proto defines the +// attribution information for a document using whatever fields are most +// applicable for that document's datasource. For example, a Wikipedia +// article's attribution is in the form of its article title, a website +// is in the form of a URL, and a Github repo is in the form of a repo +// name. Next id: 28 +type LearningGenaiRecitationDocAttribution struct { + AmarnaId string `json:"amarnaId,omitempty"` + + ArxivId string `json:"arxivId,omitempty"` + + Author string `json:"author,omitempty"` + + Bibkey string `json:"bibkey,omitempty"` + + BookTitle string `json:"bookTitle,omitempty"` + + // BookVolumeId: The Oceanographers full-view books dataset uses a + // 'volume id' as the unique ID of a book. There is a deterministic + // function from a volume id to a URL under the books.google.com domain. + // Marked as 'optional' since a volume ID of zero is potentially + // possible and we want to distinguish that from the volume ID not being + // set. + BookVolumeId int64 `json:"bookVolumeId,omitempty,string"` + + ConversationId string `json:"conversationId,omitempty"` + + // Dataset: The dataset this document comes from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + Dataset string `json:"dataset,omitempty"` + + Filepath string `json:"filepath,omitempty"` + + GeminiId string `json:"geminiId,omitempty"` + + GnewsArticleTitle string `json:"gnewsArticleTitle,omitempty"` + + GoodallExampleId string `json:"goodallExampleId,omitempty"` + + // IsOptOut: Whether the document is opted out. + IsOptOut bool `json:"isOptOut,omitempty"` + + // IsPrompt: When true, this attribution came from the user's prompt. + IsPrompt bool `json:"isPrompt,omitempty"` + + LamdaExampleId string `json:"lamdaExampleId,omitempty"` + + License string `json:"license,omitempty"` + + MeenaConversationId string `json:"meenaConversationId,omitempty"` + + // NaturalLanguageCode: Natural (not programming) language of the + // document. Language code as defined by + // http://www.unicode.org/reports/tr35/#Identifiers and + // https://tools.ietf.org/html/bcp47. Currently applicable to full-view + // books. Use docinfo-util.h to set & read language fields. See go/iii. + NaturalLanguageCode string `json:"naturalLanguageCode,omitempty"` + + // NoAttribution: True if this doc has no attribution information + // available. We use an explicit field for this instead of just + // implicitly leaving all the DocAttribution fields blank to distinguish + // a case where a bug/oversight has left the attribution information + // empty vs when we really have no attribution information available. + NoAttribution bool `json:"noAttribution,omitempty"` + + PodcastUtteranceId string `json:"podcastUtteranceId,omitempty"` + + PublicationDate *GoogleTypeDate `json:"publicationDate,omitempty"` + + // QualityScoreExperimentOnly: This field is for opt-out experiment + // only, MUST never be used during actual production/serving. + QualityScoreExperimentOnly float64 `json:"qualityScoreExperimentOnly,omitempty"` + + // Repo: Github repository + Repo string `json:"repo,omitempty"` + + // Url: URL of a webdoc + Url string `json:"url,omitempty"` + + VolumeId string `json:"volumeId,omitempty"` + + // WikipediaArticleTitle: Wikipedia article title. The Wikipedia TFDS + // dataset includes article titles but not URLs. While a URL is to the + // best of our knowledge a deterministic function of the title, we store + // the original title to reflect the information in the original + // dataset. + WikipediaArticleTitle string `json:"wikipediaArticleTitle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AmarnaId") 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. "AmarnaId") 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 *LearningGenaiRecitationDocAttribution) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationDocAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRecitationDocAttribution) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRecitationDocAttribution + var s1 struct { + QualityScoreExperimentOnly gensupport.JSONFloat64 `json:"qualityScoreExperimentOnly"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.QualityScoreExperimentOnly = float64(s1.QualityScoreExperimentOnly) + return nil +} + +// LearningGenaiRecitationRecitationResult: The recitation result for +// one input +type LearningGenaiRecitationRecitationResult struct { + DynamicSegmentResults []*LearningGenaiRecitationSegmentResult `json:"dynamicSegmentResults,omitempty"` + + // RecitationAction: The recitation action for one given input. When its + // segments contain different actions, the overall action will be + // returned in the precedence of BLOCK > CITE > NO_ACTION. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + + TrainingSegmentResults []*LearningGenaiRecitationSegmentResult `json:"trainingSegmentResults,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DynamicSegmentResults") 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. "DynamicSegmentResults") 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 *LearningGenaiRecitationRecitationResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationRecitationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRecitationSegmentResult: The recitation result for each +// segment in a given input. +type LearningGenaiRecitationSegmentResult struct { + // AttributionDataset: The dataset the segment came from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + AttributionDataset string `json:"attributionDataset,omitempty"` + + // DisplayAttributionMessage: human-friendly string that contains + // information from doc_attribution which could be shown by clients + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + + // DocAttribution: populated when recitation_action == CITE + DocAttribution *LearningGenaiRecitationDocAttribution `json:"docAttribution,omitempty"` + + // DocOccurrences: number of documents that contained this segment + DocOccurrences int64 `json:"docOccurrences,omitempty"` + + EndIndex int64 `json:"endIndex,omitempty"` + + // RawText: The raw text in the given input that is corresponding to the + // segment. It will be available only when 'return_segment_raw_text' is + // enabled in the request options. + RawText string `json:"rawText,omitempty"` + + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + + // StartIndex: The segment boundary start (inclusive) and end index + // (exclusive) in the given text. In the streaming RPC, the indexes + // always start from the beginning of the first text in the entire + // stream. The indexes are measured in UTF-16 code units. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttributionDataset") + // 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. "AttributionDataset") 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 *LearningGenaiRecitationSegmentResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationSegmentResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCalculationType: The type used for final weights +// calculation. +type LearningGenaiRootCalculationType struct { + // Possible values: + // "TYPE_UNKNOWN" - Unknown scorer type. + // "TYPE_SAFE" - Safety scorer. + // "TYPE_POLICY" - Policy scorer. + // "TYPE_GENERATION" - Generation scorer. + ScoreType string `json:"scoreType,omitempty"` + + Weights float64 `json:"weights,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScoreType") 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. "ScoreType") 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 *LearningGenaiRootCalculationType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCalculationType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootCalculationType) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootCalculationType + var s1 struct { + Weights gensupport.JSONFloat64 `json:"weights"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Weights = float64(s1.Weights) + return nil +} + +type LearningGenaiRootClassifierOutput struct { + // RuleOutput: If set, this is the output of the first matching rule. + RuleOutput *LearningGenaiRootRuleOutput `json:"ruleOutput,omitempty"` + + // RuleOutputs: outputs of all matching rule. + RuleOutputs []*LearningGenaiRootRuleOutput `json:"ruleOutputs,omitempty"` + + // State: The results of data_providers and metrics. + State *LearningGenaiRootClassifierState `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RuleOutput") 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. "RuleOutput") 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 *LearningGenaiRootClassifierOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootClassifierOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootClassifierOutputSummary struct { + Metrics []*LearningGenaiRootMetricOutput `json:"metrics,omitempty"` + + // RuleOutput: Output of the first matching rule. + RuleOutput *LearningGenaiRootRuleOutput `json:"ruleOutput,omitempty"` + + // RuleOutputs: outputs of all matching rule. + RuleOutputs []*LearningGenaiRootRuleOutput `json:"ruleOutputs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Metrics") 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. "Metrics") 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 *LearningGenaiRootClassifierOutputSummary) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootClassifierOutputSummary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootClassifierState: DataProviderOutput and MetricOutput +// can be saved between calls to the Classifier framework. For instance, +// you can run the query classifier, get outputs from those metrics, +// then use them in a result classifier as well. Example rule based on +// this idea: and_rules { rule { metric_name: 'query_safesearch_v2' ... +// } rule { metric_name: 'response_safesearch_v2' ... } } +type LearningGenaiRootClassifierState struct { + DataProviderOutput []*LearningGenaiRootDataProviderOutput `json:"dataProviderOutput,omitempty"` + + MetricOutput []*LearningGenaiRootMetricOutput `json:"metricOutput,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataProviderOutput") + // 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. "DataProviderOutput") 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 *LearningGenaiRootClassifierState) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootClassifierState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootDataProviderOutput struct { + Name string `json:"name,omitempty"` + + // Status: If set, this DataProvider failed and this is the error + // message. + Status *UtilStatusProto `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootDataProviderOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootDataProviderOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootFilterMetadata struct { + // Confidence: Filter confidence. + // + // Possible values: + // "FILTER_CONFIDENCE_UNKNOWN" + // "FILTER_CONFIDENCE_VERY_LOW" + // "FILTER_CONFIDENCE_LOW" + // "FILTER_CONFIDENCE_MEDIUM" + // "FILTER_CONFIDENCE_HIGH" + // "FILTER_CONFIDENCE_VERY_HIGH" + Confidence string `json:"confidence,omitempty"` + + // DebugInfo: Debug info for the message. + DebugInfo *LearningGenaiRootFilterMetadataFilterDebugInfo `json:"debugInfo,omitempty"` + + // Fallback: A fallback message chosen by the applied filter. + Fallback string `json:"fallback,omitempty"` + + // Info: Additional info for the filter. + Info string `json:"info,omitempty"` + + // Name: Name of the filter that triggered. + Name string `json:"name,omitempty"` + + // Reason: Filter reason. + // + // Possible values: + // "FILTER_REASON_UNKNOWN" - Unknown filter reason. + // "FILTER_REASON_NOT_FILTERED" - Input not filtered. + // "FILTER_REASON_SENSITIVE" - Sensitive content. + // "FILTER_REASON_RECITATION" - Recited content. + // "FILTER_REASON_LANGUAGE" - Language filtering + // "FILTER_REASON_TAKEDOWN" - Takedown policy + // "FILTER_REASON_CLASSIFIER" - Classifier Module + // "FILTER_REASON_EMPTY_RESPONSE" - Empty response message. + // "FILTER_REASON_SIMILARITY_TAKEDOWN" - Similarity takedown. + // "FILTER_REASON_UNSAFE" - Unsafe responses from scorers. + // "FILTER_REASON_PAIRWISE_CLASSIFIER" - Pairwise classifier. + // "FILTER_REASON_CODEY" - Codey Filter. + // "FILTER_REASON_URL" - URLs Filter. + // "FILTER_REASON_EMAIL" - Emails Filter. + // "FILTER_REASON_SAFETY_CAT" - SafetyCat filter. + // "FILTER_REASON_REQUEST_RESPONSE_TAKEDOWN" - Request Response + // takedown. + // "FILTER_REASON_RAI_PQC" - RAI Filter. + // "FILTER_REASON_ATLAS" - Atlas specific topic filter + // "FILTER_REASON_RAI_CSAM" - RAI Filter. + // "FILTER_REASON_RAI_FRINGE" - RAI Filter. + // "FILTER_REASON_RAI_SPII" - RAI Filter. + // "FILTER_REASON_RAI_IMAGE_VIOLENCE" - RAI Filter + // "FILTER_REASON_RAI_IMAGE_PORN" - RAI Filter + // "FILTER_REASON_RAI_IMAGE_CSAM" - RAI Filter + // "FILTER_REASON_RAI_IMAGE_PEDO" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_VIOLENCE" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_PORN" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_CSAM" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_PEDO" - RAI Filter + // "FILTER_REASON_RAI_CONTEXTUAL_DANGEROUS" - RAI Filter + // "FILTER_REASON_RAI_SAFETYCAT" - SafetyCat. + // "FILTER_REASON_TOXICITY" - Toxic content. + // "FILTER_REASON_ATLAS_PRICING" - Atlas specific topic filter for + // pricing questions. + // "FILTER_REASON_ATLAS_BILLING" - Atlas specific topic filter for + // billing questions. + // "FILTER_REASON_ATLAS_NON_ENGLISH_QUESTION" - Atlas specific topic + // filter for non english questions. + // "FILTER_REASON_ATLAS_NOT_RELATED_TO_GCP" - Atlas specific topic + // filter for non GCP questions. + // "FILTER_REASON_ATLAS_AWS_AZURE_RELATED" - Atlas specific topic + // filter aws/azure related questions. + Reason string `json:"reason,omitempty"` + + // Text: The input query or generated response that is getting filtered. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *LearningGenaiRootFilterMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootFilterMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootFilterMetadataFilterDebugInfo struct { + ClassifierOutput *LearningGenaiRootClassifierOutput `json:"classifierOutput,omitempty"` + + DefaultMetadata string `json:"defaultMetadata,omitempty"` + + LanguageFilterResult *LearningServingLlmLanguageFilterResult `json:"languageFilterResult,omitempty"` + + // RaiOutput: Safety filter output information for LLM Root RAI harm + // check. + RaiOutput *LearningGenaiRootRAIOutput `json:"raiOutput,omitempty"` + + RaiResult *CloudAiNlLlmProtoServiceRaiResult `json:"raiResult,omitempty"` + + RaiSignal *CloudAiNlLlmProtoServiceRaiSignal `json:"raiSignal,omitempty"` + + StreamRecitationResult *LanguageLabsAidaTrustRecitationProtoStreamRecitationResult `json:"streamRecitationResult,omitempty"` + + TakedownResult *LearningGenaiRootTakedownResult `json:"takedownResult,omitempty"` + + ToxicityResult *LearningGenaiRootToxicityResult `json:"toxicityResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClassifierOutput") 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. "ClassifierOutput") 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 *LearningGenaiRootFilterMetadataFilterDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootFilterMetadataFilterDebugInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootHarm struct { + // ContextualDangerous: Please do not use, this is still under + // development. + ContextualDangerous bool `json:"contextualDangerous,omitempty"` + + Csam bool `json:"csam,omitempty"` + + Fringe bool `json:"fringe,omitempty"` + + GrailImageHarmType *LearningGenaiRootHarmGrailImageHarmType `json:"grailImageHarmType,omitempty"` + + GrailTextHarmType *LearningGenaiRootHarmGrailTextHarmType `json:"grailTextHarmType,omitempty"` + + ImageCsam bool `json:"imageCsam,omitempty"` + + ImagePedo bool `json:"imagePedo,omitempty"` + + // ImagePorn: Image signals + ImagePorn bool `json:"imagePorn,omitempty"` + + ImageViolence bool `json:"imageViolence,omitempty"` + + Pqc bool `json:"pqc,omitempty"` + + Safetycat *LearningGenaiRootHarmSafetyCatCategories `json:"safetycat,omitempty"` + + Spii *LearningGenaiRootHarmSpiiFilter `json:"spii,omitempty"` + + Threshold float64 `json:"threshold,omitempty"` + + VideoFrameCsam bool `json:"videoFrameCsam,omitempty"` + + VideoFramePedo bool `json:"videoFramePedo,omitempty"` + + // VideoFramePorn: Video frame signals + VideoFramePorn bool `json:"videoFramePorn,omitempty"` + + VideoFrameViolence bool `json:"videoFrameViolence,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContextualDangerous") + // 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. "ContextualDangerous") 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 *LearningGenaiRootHarm) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootHarm) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootHarm + var s1 struct { + Threshold gensupport.JSONFloat64 `json:"threshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Threshold = float64(s1.Threshold) + return nil +} + +// LearningGenaiRootHarmGrailImageHarmType: Harm type for images +type LearningGenaiRootHarmGrailImageHarmType struct { + // Possible values: + // "IMAGE_HARM_TYPE_UNSPECIFIED" + // "IMAGE_HARM_TYPE_PORN" + // "IMAGE_HARM_TYPE_VIOLENCE" + // "IMAGE_HARM_TYPE_CSAI" + // "IMAGE_HARM_TYPE_PEDO" + // "IMAGE_HARM_TYPE_MINORS" + // "IMAGE_HARM_TYPE_DANGEROUS" + // "IMAGE_HARM_TYPE_MEDICAL" + // "IMAGE_HARM_TYPE_RACY" + // "IMAGE_HARM_TYPE_OBSCENE" + // "IMAGE_HARM_TYPE_MINOR_PRESENCE" + // "IMAGE_HARM_TYPE_GENERATIVE_MINOR_PRESENCE" + // "IMAGE_HARM_TYPE_GENERATIVE_REALISTIC_VISIBLE_FACE" + ImageHarmType []string `json:"imageHarmType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImageHarmType") 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. "ImageHarmType") 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 *LearningGenaiRootHarmGrailImageHarmType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmGrailImageHarmType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootHarmGrailTextHarmType: Harm type for text +type LearningGenaiRootHarmGrailTextHarmType struct { + // Possible values: + // "HARM_TYPE_UNSPECIFIED" + // "HARM_TYPE_HATE" + // "HARM_TYPE_TOXICITY" + // "HARM_TYPE_VIOLENCE" + // "HARM_TYPE_CSAI" + // "HARM_TYPE_SEXUAL" + // "HARM_TYPE_FRINGE" + // "HARM_TYPE_POLITICAL" + // "HARM_TYPE_MEMORIZATION" + // "HARM_TYPE_SPII" + // "HARM_TYPE_NEW_DANGEROUS" - New definition of dangerous. + // "HARM_TYPE_MEDICAL" + // "HARM_TYPE_HARASSMENT" + HarmType []string `json:"harmType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HarmType") 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. "HarmType") 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 *LearningGenaiRootHarmGrailTextHarmType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmGrailTextHarmType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootHarmSafetyCatCategories struct { + // Possible values: + // "SAFETYCAT_CATEGORY_UNSPECIFIED" + // "TOXICITY" - SafetyCat categories. + // "OBSCENE" + // "SEXUAL" + // "INSULT" + // "IDENTITY_HATE" + // "DEATH_HARM_TRAGEDY" + // "VIOLENCE_ABUSE" + // "FIREARMS_WEAPONS" + // "PUBLIC_SAFETY" + // "HEALTH" + // "RELIGION_BELIEF" + // "DRUGS" + // "WAR_CONFLICT" + // "POLITICS" + // "FINANCE" + // "LEGAL" + // "DANGEROUS" - Following categories are only supported in + // SAFETY_CAT_TEXT_V3_PAX model + // "DANGEROUS_SEVERITY" + // "HARASSMENT_SEVERITY" + // "HATE_SEVERITY" + // "SEXUAL_SEVERITY" + Categories []string `json:"categories,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") 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. "Categories") 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 *LearningGenaiRootHarmSafetyCatCategories) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmSafetyCatCategories + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootHarmSpiiFilter struct { + UsBankRoutingMicr bool `json:"usBankRoutingMicr,omitempty"` + + UsEmployerIdentificationNumber bool `json:"usEmployerIdentificationNumber,omitempty"` + + UsSocialSecurityNumber bool `json:"usSocialSecurityNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UsBankRoutingMicr") + // 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. "UsBankRoutingMicr") 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 *LearningGenaiRootHarmSpiiFilter) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmSpiiFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootInternalMetadata struct { + ScoredTokens []*LearningGenaiRootScoredToken `json:"scoredTokens,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScoredTokens") 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. "ScoredTokens") 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 *LearningGenaiRootInternalMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootInternalMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootMetricOutput struct { + Debug string `json:"debug,omitempty"` + + // Name: Name of the metric. + Name string `json:"name,omitempty"` + + NumericValue float64 `json:"numericValue,omitempty"` + + Status *UtilStatusProto `json:"status,omitempty"` + + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Debug") 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. "Debug") 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 *LearningGenaiRootMetricOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootMetricOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootMetricOutput) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootMetricOutput + var s1 struct { + NumericValue gensupport.JSONFloat64 `json:"numericValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NumericValue = float64(s1.NumericValue) + return nil +} + +// LearningGenaiRootRAIOutput: This is per harm. +type LearningGenaiRootRAIOutput struct { + Allowed bool `json:"allowed,omitempty"` + + Harm *LearningGenaiRootHarm `json:"harm,omitempty"` + + Name string `json:"name,omitempty"` + + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootRAIOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRAIOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootRAIOutput) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootRAIOutput + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +type LearningGenaiRootRegexTakedownResult struct { + // Allowed: False when query or response should be taken down due to + // match with a blocked regex, true otherwise. + Allowed bool `json:"allowed,omitempty"` + + // TakedownRegex: Regex used to decide that query or response should be + // taken down. Empty when query or response is kept. + TakedownRegex string `json:"takedownRegex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootRegexTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRegexTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestResponseTakedownResult struct { + // Allowed: False when response has to be taken down per above config. + Allowed bool `json:"allowed,omitempty"` + + // RequestTakedownRegex: Regex used to match the request. + RequestTakedownRegex string `json:"requestTakedownRegex,omitempty"` + + // ResponseTakedownRegex: Regex used to decide that response should be + // taken down. Empty when response is kept. + ResponseTakedownRegex string `json:"responseTakedownRegex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootRequestResponseTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestResponseTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootRoutingDecision: Holds the final routing decision, +// by storing the model_config_id. And individual scores each model got. +type LearningGenaiRootRoutingDecision struct { + Metadata *LearningGenaiRootRoutingDecisionMetadata `json:"metadata,omitempty"` + + // ModelConfigId: The selected model to route traffic to. + ModelConfigId string `json:"modelConfigId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Metadata") 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. "Metadata") 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 *LearningGenaiRootRoutingDecision) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecision + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootRoutingDecisionMetadata: Debug metadata about the +// routing decision. +type LearningGenaiRootRoutingDecisionMetadata struct { + ScoreBasedRoutingMetadata *LearningGenaiRootRoutingDecisionMetadataScoreBased `json:"scoreBasedRoutingMetadata,omitempty"` + + TokenLengthBasedRoutingMetadata *LearningGenaiRootRoutingDecisionMetadataTokenLengthBased `json:"tokenLengthBasedRoutingMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ScoreBasedRoutingMetadata") 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. + // "ScoreBasedRoutingMetadata") 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 *LearningGenaiRootRoutingDecisionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootRoutingDecisionMetadataScoreBased: If we are routing +// using scored based configuration, then the metadata about that is +// available in this proto. +type LearningGenaiRootRoutingDecisionMetadataScoreBased struct { + // MatchedRule: The rule that was matched. + MatchedRule *LearningGenaiRootScoreBasedRoutingConfigRule `json:"matchedRule,omitempty"` + + // Score: The score that was generated by the router i.e. the model. + Score *LearningGenaiRootScore `json:"score,omitempty"` + + // UsedDefaultFallback: No rules were matched & therefore used the + // default fallback. + UsedDefaultFallback bool `json:"usedDefaultFallback,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchedRule") 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. "MatchedRule") 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 *LearningGenaiRootRoutingDecisionMetadataScoreBased) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataScoreBased + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRoutingDecisionMetadataTokenLengthBased struct { + ModelInputTokenMetadata []*LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata `json:"modelInputTokenMetadata,omitempty"` + + ModelMaxTokenMetadata []*LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata `json:"modelMaxTokenMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ModelInputTokenMetadata") 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. "ModelInputTokenMetadata") + // 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 *LearningGenaiRootRoutingDecisionMetadataTokenLengthBased) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataTokenLengthBased + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata struct { + // ComputedInputTokenLength: The length computed by backends using the + // formatter & tokenizer specific to the model + ComputedInputTokenLength int64 `json:"computedInputTokenLength,omitempty"` + + ModelId string `json:"modelId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ComputedInputTokenLength") 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. "ComputedInputTokenLength") + // 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 *LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata struct { + MaxNumInputTokens int64 `json:"maxNumInputTokens,omitempty"` + + MaxNumOutputTokens int64 `json:"maxNumOutputTokens,omitempty"` + + ModelId string `json:"modelId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaxNumInputTokens") + // 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. "MaxNumInputTokens") 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 *LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRuleOutput struct { + // Possible values: + // "NO_MATCH" - This rule was not matched. When used in a + // ClassifierOutput, this means that no rules were matched. + // "MATCH" - This is a generic "match" message, indicating that a rule + // was triggered. Usually you would use this for a categorization + // classifier. + Decision string `json:"decision,omitempty"` + + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Decision") 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. "Decision") 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 *LearningGenaiRootRuleOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRuleOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootScore struct { + CalculationType *LearningGenaiRootCalculationType `json:"calculationType,omitempty"` + + // InternalMetadata: The internal_metadata is intended to be used by + // internal processors and will be cleared before returns. + InternalMetadata *LearningGenaiRootInternalMetadata `json:"internalMetadata,omitempty"` + + ThresholdType *LearningGenaiRootThresholdType `json:"thresholdType,omitempty"` + + // TokensAndLogprobPerDecodingStep: Top candidate tokens and log + // probabilities at each decoding step. + TokensAndLogprobPerDecodingStep *LearningGenaiRootTokensAndLogProbPerDecodingStep `json:"tokensAndLogprobPerDecodingStep,omitempty"` + + Value float64 `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CalculationType") 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. "CalculationType") 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 *LearningGenaiRootScore) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScore + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootScore) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootScore + var s1 struct { + Value gensupport.JSONFloat64 `json:"value"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Value = float64(s1.Value) + return nil +} + +type LearningGenaiRootScoreBasedRoutingConfigRule struct { + // EqualOrGreaterThan: NOTE: Hardest examples have smaller values in + // their routing scores. + EqualOrGreaterThan *LearningGenaiRootScore `json:"equalOrGreaterThan,omitempty"` + + LessThan *LearningGenaiRootScore `json:"lessThan,omitempty"` + + // ModelConfigId: This model_config_id points to ModelConfig::id which + // allows us to find the ModelConfig to route to. This is part of the + // banks specified in the ModelBankConfig. + ModelConfigId string `json:"modelConfigId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EqualOrGreaterThan") + // 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. "EqualOrGreaterThan") 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 *LearningGenaiRootScoreBasedRoutingConfigRule) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScoreBasedRoutingConfigRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootScoredSimilarityTakedownPhrase: Proto containing the +// results from the Universal Sentence Encoder / Other models +type LearningGenaiRootScoredSimilarityTakedownPhrase struct { + Phrase *LearningGenaiRootSimilarityTakedownPhrase `json:"phrase,omitempty"` + + SimilarityScore float64 `json:"similarityScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Phrase") 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. "Phrase") 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 *LearningGenaiRootScoredSimilarityTakedownPhrase) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScoredSimilarityTakedownPhrase + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootScoredSimilarityTakedownPhrase) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootScoredSimilarityTakedownPhrase + var s1 struct { + SimilarityScore gensupport.JSONFloat64 `json:"similarityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SimilarityScore = float64(s1.SimilarityScore) + return nil +} + +// LearningGenaiRootScoredToken: A token with its own score. +type LearningGenaiRootScoredToken struct { + // EndTokenScore: Each end_token_score is a logprob for how well the + // completion would end at a particular token. See + // http://google3/labs/language/aida/config/proto/model_config.proto;l=376;rcl=573039459 + EndTokenScore float64 `json:"endTokenScore,omitempty"` + + // Score: Each score is the logprob for the token in model response. + Score float64 `json:"score,omitempty"` + + Token string `json:"token,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTokenScore") 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. "EndTokenScore") 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 *LearningGenaiRootScoredToken) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScoredToken + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootScoredToken) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootScoredToken + var s1 struct { + EndTokenScore gensupport.JSONFloat64 `json:"endTokenScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.EndTokenScore = float64(s1.EndTokenScore) + s.Score = float64(s1.Score) + return nil +} + +// LearningGenaiRootSimilarityTakedownPhrase: Each +// SimilarityTakedownPhrase treats a logical group of blocked and +// allowed phrases together along with a corresponding punt If the +// closest matching response is of the allowed type, we allow the +// response If the closest matching response is of the blocked type, we +// block the response. eg: Blocked phrase - "All lives matter" +type LearningGenaiRootSimilarityTakedownPhrase struct { + BlockedPhrase string `json:"blockedPhrase,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BlockedPhrase") 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. "BlockedPhrase") 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 *LearningGenaiRootSimilarityTakedownPhrase) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootSimilarityTakedownPhrase + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootSimilarityTakedownResult struct { + // Allowed: False when query or response should be taken down by any of + // the takedown rules, true otherwise. + Allowed bool `json:"allowed,omitempty"` + + // ScoredPhrases: List of similar phrases with score. Set only if + // allowed=false. + ScoredPhrases []*LearningGenaiRootScoredSimilarityTakedownPhrase `json:"scoredPhrases,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootSimilarityTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootSimilarityTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootTakedownResult struct { + // Allowed: False when query or response should be taken down by any of + // the takedown rules, true otherwise. + Allowed bool `json:"allowed,omitempty"` + + RegexTakedownResult *LearningGenaiRootRegexTakedownResult `json:"regexTakedownResult,omitempty"` + + RequestResponseTakedownResult *LearningGenaiRootRequestResponseTakedownResult `json:"requestResponseTakedownResult,omitempty"` + + SimilarityTakedownResult *LearningGenaiRootSimilarityTakedownResult `json:"similarityTakedownResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootThresholdType: The type of score that bundled with a +// threshold, and will not be attending the final score calculation. How +// each score type uses the threshold can be implementation details. +type LearningGenaiRootThresholdType struct { + // Possible values: + // "TYPE_UNKNOWN" - Unknown scorer type. + // "TYPE_SAFE" - Safety scorer. + // "TYPE_POLICY" - Policy scorer. + // "TYPE_GENERATION" - Generation scorer. + ScoreType string `json:"scoreType,omitempty"` + + Threshold float64 `json:"threshold,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScoreType") 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. "ScoreType") 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 *LearningGenaiRootThresholdType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootThresholdType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootThresholdType) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootThresholdType + var s1 struct { + Threshold gensupport.JSONFloat64 `json:"threshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Threshold = float64(s1.Threshold) + return nil +} + +// LearningGenaiRootTokensAndLogProbPerDecodingStep: Results of +// RandomSamplingParams::top_k_logprob_per_decoding_step. +type LearningGenaiRootTokensAndLogProbPerDecodingStep struct { + // ChosenCandidates: Length = total number of decoding steps. The chosen + // candidates may or may not be in top_candidates. + ChosenCandidates []*LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate `json:"chosenCandidates,omitempty"` + + // TopCandidates: Length = total number of decoding steps. + TopCandidates []*LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates `json:"topCandidates,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChosenCandidates") 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. "ChosenCandidates") 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 *LearningGenaiRootTokensAndLogProbPerDecodingStep) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStep + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate: A +// candidate at a decoding step. +type LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate struct { + // LogProbability: The candidate's log probability. + LogProbability float64 `json:"logProbability,omitempty"` + + // Token: The candidate’s token value. + Token string `json:"token,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LogProbability") 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. "LogProbability") 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 *LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate + var s1 struct { + LogProbability gensupport.JSONFloat64 `json:"logProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LogProbability = float64(s1.LogProbability) + return nil +} + +// LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates: +// Candidates with top log probabilities at each decoding step. +type LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates struct { + // Candidates: Sorted by log probability in descending order. + Candidates []*LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate `json:"candidates,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Candidates") 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. "Candidates") 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 *LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootToxicityResult: A model can generate multiple +// signals and this captures all the generated signals for a single +// message. +type LearningGenaiRootToxicityResult struct { + Signals []*LearningGenaiRootToxicitySignal `json:"signals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Signals") 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. "Signals") 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 *LearningGenaiRootToxicityResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootToxicityResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootToxicitySignal: Proto to capture a signal generated +// by the toxicity model. +type LearningGenaiRootToxicitySignal struct { + Allowed bool `json:"allowed,omitempty"` + + // Possible values: + // "LABEL_UNSPECIFIED" - Default label. + // "NOT_SENSITIVE" - Input is not sensitive. + // "SENSITIVE" - Input is sensitive. + // "ACCIDENTS_DISASTERS" - Input is related to accidents or disasters. + // "ADULT" - Input contains adult content. + // "COMPUTER_SECURITY" - Input is related to computer security. + // "CONTROVERSIAL_SOCIAL_ISSUES" - Input contains controversial social + // issues. + // "DEATH_TRAGEDY" - Input is related to death tragedy. + // "DRUGS" - Input is related to drugs. + // "IDENTITY_ETHNICITY" - Input is related to identity or ethnicity. + // "FINANCIAL_HARDSHIP" - Input is related to financial hardship. + // "FIREARMS_WEAPONS" - Input is related to firearms or weapons. + // "HEALTH" - Input contains health related information. + // "INSULT" - Input may be an insult. + // "LEGAL" - Input is related to legal content. + // "MENTAL_HEALTH" - Input contains mental health related information. + // "POLITICS" - Input is related to politics. + // "RELIGION_BELIEFS" - Input is related to religions or beliefs. + // "SAFETY" - Input is related to safety. + // "SELF_HARM" - Input is related to self-harm. + // "SPECIAL_NEEDS" - Input is related to special needs. + // "TERRORISM" - Input is related to terrorism. + // "TOXIC" - Input is toxic. + // "TROUBLED_RELATIONSHIP" - Input is related to troubled + // relationships. + // "VIOLENCE_ABUSE" - Input contains content about violence or abuse. + // "VULGAR" - Input is vulgar. + // "WAR_CONFLICT" - Input is related to war and conflict. + Label string `json:"label,omitempty"` + + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootToxicitySignal) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootToxicitySignal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootToxicitySignal) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootToxicitySignal + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +type LearningServingLlmLanguageFilterResult struct { + // Allowed: False when query or response should be filtered out due to + // unsupported language. + Allowed bool `json:"allowed,omitempty"` + + // DetectedLanguage: Language of the query or response. + DetectedLanguage string `json:"detectedLanguage,omitempty"` + + // DetectedLanguageProbability: Probability of the language predicted as + // returned by LangID. + DetectedLanguageProbability float64 `json:"detectedLanguageProbability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningServingLlmLanguageFilterResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningServingLlmLanguageFilterResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningServingLlmLanguageFilterResult) UnmarshalJSON(data []byte) error { + type NoMethod LearningServingLlmLanguageFilterResult + var s1 struct { + DetectedLanguageProbability gensupport.JSONFloat64 `json:"detectedLanguageProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DetectedLanguageProbability = float64(s1.DetectedLanguageProbability) + return nil +} + +// LearningServingLlmMessageMetadata: LINT.IfChange This metadata +// contains additional information required for debugging. +type LearningServingLlmMessageMetadata struct { + // ClassifierSummary: Summary of classifier output. We attach this to + // all messages regardless of whether classification rules triggered or + // not. + ClassifierSummary *LearningGenaiRootClassifierOutputSummary `json:"classifierSummary,omitempty"` + + CurrentStreamTextLength int64 `json:"currentStreamTextLength,omitempty"` + + // Deleted: Whether the corresponding message has been deleted. + Deleted bool `json:"deleted,omitempty"` + + // FilterMeta: Metadata for filters that triggered. + FilterMeta []*LearningGenaiRootFilterMetadata `json:"filterMeta,omitempty"` + + // FinalMessageScore: This score is finally used for ranking the + // message. This will be same as the score present in `Message.score` + // field. + FinalMessageScore *LearningGenaiRootScore `json:"finalMessageScore,omitempty"` + + // FinishReason: NOT YET IMPLEMENTED. + // + // Possible values: + // "UNSPECIFIED" + // "RETURN" - Return all the tokens back. This typically implies no + // filtering or stop sequence was triggered. + // "STOP" - Finished due to provided stop sequence. + // "MAX_TOKENS" - Model has emitted the maximum number of tokens as + // specified by max_decoding_steps. + // "FILTER" - Finished due to triggering some post-processing filter. + FinishReason string `json:"finishReason,omitempty"` + + // IsFallback: Applies to Response message only. Indicates whether the + // message is a fallback and the response would have otherwise been + // empty. + IsFallback bool `json:"isFallback,omitempty"` + + // LangidResult: Result from nlp_saft DetectLanguage method. Currently + // the predicted language code and language probability is used. + LangidResult *NlpSaftLangIdResult `json:"langidResult,omitempty"` + + // Language: Detected language. + Language string `json:"language,omitempty"` + + // LmPrefix: The LM prefix used to generate this response. + LmPrefix string `json:"lmPrefix,omitempty"` + + // OriginalText: The original text generated by LLM. This is the raw + // output for debugging purposes. + OriginalText string `json:"originalText,omitempty"` + + // PerStreamDecodedTokenCount: NOT YET IMPLEMENTED. Applies to streaming + // only. Number of tokens decoded / emitted by the model as part of this + // stream. This may be different from token_count, which contains number + // of tokens returned in this response after any response rewriting / + // truncation. + PerStreamDecodedTokenCount int64 `json:"perStreamDecodedTokenCount,omitempty"` + + // RaiOutputs: Results of running RAI on the query or this response + // candidate. One output per rai_config. It will be populated regardless + // of whether the threshold is exceeded or not. + RaiOutputs []*LearningGenaiRootRAIOutput `json:"raiOutputs,omitempty"` + + // RecitationResult: Recitation Results. It will be populated as long as + // Recitation processing is enabled, regardless of recitation outcome. + RecitationResult *LearningGenaiRecitationRecitationResult `json:"recitationResult,omitempty"` + + // ReturnTokenCount: NOT YET IMPLEMENTED. Number of tokens returned as + // part of this candidate. + ReturnTokenCount int64 `json:"returnTokenCount,omitempty"` + + // Scores: All the different scores for a message are logged here. + Scores []*LearningGenaiRootScore `json:"scores,omitempty"` + + // StreamTerminated: Whether the response is terminated during streaming + // return. Only used for streaming requests. + StreamTerminated bool `json:"streamTerminated,omitempty"` + + // TotalDecodedTokenCount: NOT YET IMPLEMENTED. Aggregated number of + // total tokens decoded so far. For streaming, this is sum of all the + // tokens decoded so far i.e. aggregated count. + TotalDecodedTokenCount int64 `json:"totalDecodedTokenCount,omitempty"` + + // TranslatedUserPrompts: Translated user-prompt used for RAI post + // processing. This is for internal processing only. We will translate + // in pre-processor and pass the translated text to the post processor + // using this field. It will be empty if non of the signals requested + // need translation. + TranslatedUserPrompts []string `json:"translatedUserPrompts,omitempty"` + + // VertexRaiResult: The metadata from Vertex SafetyCat processors + VertexRaiResult *CloudAiNlLlmProtoServiceRaiResult `json:"vertexRaiResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClassifierSummary") + // 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. "ClassifierSummary") 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 *LearningServingLlmMessageMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningServingLlmMessageMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLangIdLocalesResult struct { + // Predictions: List of locales in which the text would be considered + // acceptable. Sorted in descending order according to each locale's + // respective likelihood. For example, if a Portuguese text is + // acceptable in both Brazil and Portugal, but is more strongly + // associated with Brazil, then the predictions would be ["pt-BR", + // "pt-PT"], in that order. May be empty, indicating that the model did + // not predict any acceptable locales. + Predictions []*NlpSaftLangIdLocalesResultLocale `json:"predictions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Predictions") 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. "Predictions") 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 *NlpSaftLangIdLocalesResult) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLangIdLocalesResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLangIdLocalesResultLocale struct { + // LanguageCode: A BCP 47 language code that includes region + // information. For example, "pt-BR" or "pt-PT". This field will always + // be populated. + LanguageCode string `json:"languageCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LanguageCode") 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. "LanguageCode") 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 *NlpSaftLangIdLocalesResultLocale) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLangIdLocalesResultLocale + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLangIdResult struct { + // ModelVersion: The version of the model used to create these + // annotations. + // + // Possible values: + // "VERSION_UNSPECIFIED" + // "INDEXING_20181017" + // "INDEXING_20191206" + // "INDEXING_20200313" + // "INDEXING_20210618" + // "STANDARD_20220516" + ModelVersion string `json:"modelVersion,omitempty"` + + // Predictions: This field stores the n-best list of possible BCP 47 + // language code strings for a given input sorted in descending order + // according to each code's respective probability. + Predictions []*NlpSaftLanguageSpan `json:"predictions,omitempty"` + + // SpanPredictions: This field stores language predictions of subspans + // of the input, when available. Each LanguageSpanSequence is a sequence + // of LanguageSpans. A particular sequence of LanguageSpans has an + // associated probability, and need not necessarily cover the entire + // input. If no language could be predicted for any span, then this + // field may be empty. + SpanPredictions []*NlpSaftLanguageSpanSequence `json:"spanPredictions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ModelVersion") 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. "ModelVersion") 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 *NlpSaftLangIdResult) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLangIdResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLanguageSpan struct { + End int64 `json:"end,omitempty"` + + // LanguageCode: A BCP 47 language code for this span. + LanguageCode string `json:"languageCode,omitempty"` + + // Locales: Optional field containing any information that was predicted + // about the specific locale(s) of the span. + Locales *NlpSaftLangIdLocalesResult `json:"locales,omitempty"` + + // Probability: A probability associated with this prediction. + Probability float64 `json:"probability,omitempty"` + + // Start: Start and end byte offsets, inclusive, within the given input + // string. A value of -1 implies that this field is not set. Both fields + // must either be set with a nonnegative value or both are unset. If + // both are unset then this LanguageSpan applies to the entire input. + Start int64 `json:"start,omitempty"` + + // ForceSendFields is a list of field names (e.g. "End") 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. "End") 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 *NlpSaftLanguageSpan) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLanguageSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *NlpSaftLanguageSpan) UnmarshalJSON(data []byte) error { + type NoMethod NlpSaftLanguageSpan + var s1 struct { + Probability gensupport.JSONFloat64 `json:"probability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Probability = float64(s1.Probability) + return nil +} + +type NlpSaftLanguageSpanSequence struct { + // LanguageSpans: A sequence of LanguageSpan objects, each assigning a + // language to a subspan of the input. + LanguageSpans []*NlpSaftLanguageSpan `json:"languageSpans,omitempty"` + + // Probability: The probability of this sequence of LanguageSpans. + Probability float64 `json:"probability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LanguageSpans") 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. "LanguageSpans") 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 *NlpSaftLanguageSpanSequence) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLanguageSpanSequence + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *NlpSaftLanguageSpanSequence) UnmarshalJSON(data []byte) error { + type NoMethod NlpSaftLanguageSpanSequence + var s1 struct { + Probability gensupport.JSONFloat64 `json:"probability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Probability = float64(s1.Probability) + return nil +} + +// Proto2BridgeMessageSet: This is proto2's version of MessageSet. +type Proto2BridgeMessageSet struct { +} + +// UtilStatusProto: Wire-format for a Status object +type UtilStatusProto struct { + // CanonicalCode: The canonical error code (see codes.proto) that most + // closely corresponds to this status. This may be missing, and in the + // common case of the generic space, it definitely will be. + CanonicalCode int64 `json:"canonicalCode,omitempty"` + + // Code: Numeric code drawn from the space specified below. Often, this + // is the canonical error space, and code is drawn from + // google3/util/task/codes.proto + Code int64 `json:"code,omitempty"` + + // Message: Detail message + Message string `json:"message,omitempty"` + + // MessageSet: message_set associates an arbitrary proto message with + // the status. + MessageSet *Proto2BridgeMessageSet `json:"messageSet,omitempty"` + + // Space: The following are usually only present when code != 0 Space to + // which this status belongs + Space string `json:"space,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CanonicalCode") 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. "CanonicalCode") 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 *UtilStatusProto) MarshalJSON() ([]byte, error) { + type NoMethod UtilStatusProto + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "aiplatform.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := 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.get" call. +// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudLocationLocation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudLocationLocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) 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}/locations") + 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.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, 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 := &GoogleCloudLocationListLocationsResponse{ + 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 information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "GoogleCloudLocationListLocationsResponse" + // }, + // "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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) 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.batchPredictionJobs.cancel": + +type ProjectsLocationsBatchPredictionJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1CancelBatchPredictionJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a BatchPredictionJob. Starts asynchronous +// cancellation on the BatchPredictionJob. The server makes the best +// effort to cancel the job, but success is not guaranteed. Clients can +// use JobService.GetBatchPredictionJob or other methods to check +// whether the cancellation succeeded or whether the job completed +// despite cancellation. On a successful cancellation, the +// BatchPredictionJob is not deleted;instead its +// BatchPredictionJob.state is set to `CANCELLED`. Any files already +// outputted by the job are not deleted. +// +// - name: The name of the BatchPredictionJob to cancel. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ +// prediction_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Cancel(name string, googlecloudaiplatformv1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1CancelBatchPredictionJobRequest) *ProjectsLocationsBatchPredictionJobsCancelCall { + c := &ProjectsLocationsBatchPredictionJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cancelbatchpredictionjobrequest = googlecloudaiplatformv1cancelbatchpredictionjobrequest + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCancelCall { + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCancelCall { + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cancelbatchpredictionjobrequest) + 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 += "?" + 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.batchPredictionJobs.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 *ProjectsLocationsBatchPredictionJobsCancelCall) 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": "Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any files already outputted by the job are not deleted.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.batchPredictionJobs.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BatchPredictionJob to cancel. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1CancelBatchPredictionJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.create": + +type ProjectsLocationsBatchPredictionJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1batchpredictionjob *GoogleCloudAiplatformV1BatchPredictionJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a BatchPredictionJob. A BatchPredictionJob once +// created will right away be attempted to start. +// +// - parent: The resource name of the Location to create the +// BatchPredictionJob in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Create(parent string, googlecloudaiplatformv1batchpredictionjob *GoogleCloudAiplatformV1BatchPredictionJob) *ProjectsLocationsBatchPredictionJobsCreateCall { + c := &ProjectsLocationsBatchPredictionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1batchpredictionjob = googlecloudaiplatformv1batchpredictionjob + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCreateCall { + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCreateCall { + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchpredictionjob) + 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/{+parent}/batchPredictionJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.batchPredictionJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1BatchPredictionJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1BatchPredictionJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchPredictionJob, 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 := &GoogleCloudAiplatformV1BatchPredictionJob{ + 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": "Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.batchPredictionJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to create the BatchPredictionJob in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/batchPredictionJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.delete": + +type ProjectsLocationsBatchPredictionJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a BatchPredictionJob. Can only be called on jobs that +// already finished. +// +// - name: The name of the BatchPredictionJob resource to be deleted. +// Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ +// prediction_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Delete(name string) *ProjectsLocationsBatchPredictionJobsDeleteCall { + c := &ProjectsLocationsBatchPredictionJobsDeleteCall{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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsDeleteCall { + 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsDeleteCall { + 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) 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.batchPredictionJobs.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 *ProjectsLocationsBatchPredictionJobsDeleteCall) 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": "Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.batchPredictionJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BatchPredictionJob resource to be deleted. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.get": + +type ProjectsLocationsBatchPredictionJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a BatchPredictionJob +// +// - name: The name of the BatchPredictionJob resource. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ +// prediction_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *ProjectsLocationsBatchPredictionJobsGetCall { + c := &ProjectsLocationsBatchPredictionJobsGetCall{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 *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsGetCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsGetCall) 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.batchPredictionJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1BatchPredictionJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1BatchPredictionJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchPredictionJob, 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 := &GoogleCloudAiplatformV1BatchPredictionJob{ + 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 a BatchPredictionJob", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.batchPredictionJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BatchPredictionJob resource. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.list": + +type ProjectsLocationsBatchPredictionJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists BatchPredictionJobs in a Location. +// +// - parent: The resource name of the Location to list the +// BatchPredictionJobs from. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsBatchPredictionJobsService) List(parent string) *ProjectsLocationsBatchPredictionJobsListCall { + c := &ProjectsLocationsBatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `model_display_name` supports `=`, +// `!=` comparisons. * `state` supports `=`, `!=` comparisons. * +// `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. +// `create_time` must be in RFC 3339 format. * `labels` supports general +// map functions that is: `labels.key=value` - key:value equality +// `labels.key:* - key existence Some examples of using the filter are: +// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * +// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT +// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * +// `labels.keyA=valueA` * `labels.keyB:*` +func (c *ProjectsLocationsBatchPredictionJobsListCall) Filter(filter string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsBatchPredictionJobsListCall) PageSize(pageSize int64) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListBatchPredictionJobsResponse.next_page_token of the previous +// JobService.ListBatchPredictionJobs call. +func (c *ProjectsLocationsBatchPredictionJobsListCall) PageToken(pageToken string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsListCall { + 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 *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsListCall { + 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 *ProjectsLocationsBatchPredictionJobsListCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsListCall { + 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 *ProjectsLocationsBatchPredictionJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsListCall) 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/{+parent}/batchPredictionJobs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1ListBatchPredictionJobsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1ListBatchPredictionJobsResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, 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 := &GoogleCloudAiplatformV1ListBatchPredictionJobsResponse{ + 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 BatchPredictionJobs in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.batchPredictionJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the BatchPredictionJobs from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/batchPredictionJobs", + // "response": { + // "$ref": "GoogleCloudAiplatformV1ListBatchPredictionJobsResponse" + // }, + // "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 *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListBatchPredictionJobsResponse) 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.customJobs.cancel": + +type ProjectsLocationsCustomJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1cancelcustomjobrequest *GoogleCloudAiplatformV1CancelCustomJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a CustomJob. Starts asynchronous cancellation on the +// CustomJob. The server makes a best effort to cancel the job, but +// success is not guaranteed. Clients can use JobService.GetCustomJob or +// other methods to check whether the cancellation succeeded or whether +// the job completed despite cancellation. On successful cancellation, +// the CustomJob is not deleted; instead it becomes a job with a +// CustomJob.error value with a google.rpc.Status.code of 1, +// corresponding to `Code.CANCELLED`, and CustomJob.state is set to +// `CANCELLED`. +// +// - name: The name of the CustomJob to cancel. Format: +// `projects/{project}/locations/{location}/customJobs/{custom_job}`. +func (r *ProjectsLocationsCustomJobsService) Cancel(name string, googlecloudaiplatformv1cancelcustomjobrequest *GoogleCloudAiplatformV1CancelCustomJobRequest) *ProjectsLocationsCustomJobsCancelCall { + c := &ProjectsLocationsCustomJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cancelcustomjobrequest = googlecloudaiplatformv1cancelcustomjobrequest + 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 *ProjectsLocationsCustomJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCancelCall { + 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 *ProjectsLocationsCustomJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCancelCall { + 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 *ProjectsLocationsCustomJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cancelcustomjobrequest) + 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 += "?" + 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.customJobs.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 *ProjectsLocationsCustomJobsCancelCall) 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": "Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CustomJob to cancel. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1CancelCustomJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.create": + +type ProjectsLocationsCustomJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1customjob *GoogleCloudAiplatformV1CustomJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a CustomJob. A created CustomJob right away will be +// attempted to be run. +// +// - parent: The resource name of the Location to create the CustomJob +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsCustomJobsService) Create(parent string, googlecloudaiplatformv1customjob *GoogleCloudAiplatformV1CustomJob) *ProjectsLocationsCustomJobsCreateCall { + c := &ProjectsLocationsCustomJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1customjob = googlecloudaiplatformv1customjob + 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 *ProjectsLocationsCustomJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCreateCall { + 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 *ProjectsLocationsCustomJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCreateCall { + 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 *ProjectsLocationsCustomJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1customjob) + 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/{+parent}/customJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.customJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1CustomJob or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1CustomJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CustomJob, 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 := &GoogleCloudAiplatformV1CustomJob{ + 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": "Creates a CustomJob. A created CustomJob right away will be attempted to be run.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to create the CustomJob in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/customJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1CustomJob" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1CustomJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.delete": + +type ProjectsLocationsCustomJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a CustomJob. +// +// - name: The name of the CustomJob resource to be deleted. Format: +// `projects/{project}/locations/{location}/customJobs/{custom_job}`. +func (r *ProjectsLocationsCustomJobsService) Delete(name string) *ProjectsLocationsCustomJobsDeleteCall { + c := &ProjectsLocationsCustomJobsDeleteCall{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 *ProjectsLocationsCustomJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsDeleteCall { + 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 *ProjectsLocationsCustomJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsDeleteCall { + 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 *ProjectsLocationsCustomJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsDeleteCall) 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.customJobs.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 *ProjectsLocationsCustomJobsDeleteCall) 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": "Deletes a CustomJob.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.customJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CustomJob resource to be deleted. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.get": + +type ProjectsLocationsCustomJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a CustomJob. +// +// - name: The name of the CustomJob resource. Format: +// `projects/{project}/locations/{location}/customJobs/{custom_job}`. +func (r *ProjectsLocationsCustomJobsService) Get(name string) *ProjectsLocationsCustomJobsGetCall { + c := &ProjectsLocationsCustomJobsGetCall{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 *ProjectsLocationsCustomJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsGetCall { + 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 *ProjectsLocationsCustomJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsGetCall { + 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 *ProjectsLocationsCustomJobsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsGetCall { + 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 *ProjectsLocationsCustomJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsGetCall) 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.customJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1CustomJob or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1CustomJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CustomJob, 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 := &GoogleCloudAiplatformV1CustomJob{ + 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 a CustomJob.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CustomJob resource. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1CustomJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.list": + +type ProjectsLocationsCustomJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists CustomJobs in a Location. +// +// - parent: The resource name of the Location to list the CustomJobs +// from. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsCustomJobsService) List(parent string) *ProjectsLocationsCustomJobsListCall { + c := &ProjectsLocationsCustomJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsCustomJobsListCall) Filter(filter string) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsCustomJobsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListCustomJobsResponse.next_page_token of the previous +// JobService.ListCustomJobs call. +func (c *ProjectsLocationsCustomJobsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsCustomJobsListCall) ReadMask(readMask string) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCustomJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsListCall { + 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 *ProjectsLocationsCustomJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsListCall { + 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 *ProjectsLocationsCustomJobsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsListCall { + 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 *ProjectsLocationsCustomJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsListCall) 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/{+parent}/customJobs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.customJobs.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListCustomJobsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListCustomJobsResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { +func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListCustomJobsResponse, 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 := &GoogleCloudAiplatformV1ListCustomJobsResponse{ + 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 CustomJobs in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the CustomJobs from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/customJobs", + // "response": { + // "$ref": "GoogleCloudAiplatformV1ListCustomJobsResponse" + // }, + // "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 *ProjectsLocationsCustomJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListCustomJobsResponse) 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.customJobs.operations.cancel": + +type ProjectsLocationsCustomJobsOperationsCancelCall 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 *ProjectsLocationsCustomJobsOperationsService) Cancel(name string) *ProjectsLocationsCustomJobsOperationsCancelCall { + c := &ProjectsLocationsCustomJobsOperationsCancelCall{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 *ProjectsLocationsCustomJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsCancelCall { + 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsCancelCall { + 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsCancelCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsCancelCall) 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}/customJobs/{customJobsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/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.customJobs.operations.delete": + +type ProjectsLocationsCustomJobsOperationsDeleteCall 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 *ProjectsLocationsCustomJobsOperationsService) Delete(name string) *ProjectsLocationsCustomJobsOperationsDeleteCall { + c := &ProjectsLocationsCustomJobsOperationsDeleteCall{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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsDeleteCall { + 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsDeleteCall { + 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsDeleteCall) 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}/customJobs/{customJobsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.customJobs.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.operations.get": + +type ProjectsLocationsCustomJobsOperationsGetCall 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 *ProjectsLocationsCustomJobsOperationsService) Get(name string) *ProjectsLocationsCustomJobsOperationsGetCall { + c := &ProjectsLocationsCustomJobsOperationsGetCall{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 *ProjectsLocationsCustomJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsGetCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsGetCall) 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}/customJobs/{customJobsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.operations.list": + +type ProjectsLocationsCustomJobsOperationsListCall 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 *ProjectsLocationsCustomJobsOperationsService) List(name string) *ProjectsLocationsCustomJobsOperationsListCall { + c := &ProjectsLocationsCustomJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsCustomJobsOperationsListCall) Filter(filter string) *ProjectsLocationsCustomJobsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsCustomJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsCustomJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsListCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -36218,7 +42945,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationListLocationsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -36230,41 +42957,41 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1/projects/{projectsId}/locations", + // "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}/customJobs/{customJobsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.list", + // "id": "aiplatform.projects.locations.customJobs.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, // "name": { - // "description": "The resource that owns the locations collection, if applicable.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}/locations", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudLocationListLocationsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -36276,7 +43003,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo // 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { +func (c *ProjectsLocationsCustomJobsOperationsListCall) 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 { @@ -36294,41 +43021,47 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleClo } } -// method id "aiplatform.projects.locations.batchPredictionJobs.cancel": +// method id "aiplatform.projects.locations.customJobs.operations.wait": -type ProjectsLocationsBatchPredictionJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1CancelBatchPredictionJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsCustomJobsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a BatchPredictionJob. Starts asynchronous -// cancellation on the BatchPredictionJob. The server makes the best -// effort to cancel the job, but success is not guaranteed. Clients can -// use JobService.GetBatchPredictionJob or other methods to check -// whether the cancellation succeeded or whether the job completed -// despite cancellation. On a successful cancellation, the -// BatchPredictionJob is not deleted;instead its -// BatchPredictionJob.state is set to `CANCELLED`. Any files already -// outputted by the job are not deleted. +// 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 BatchPredictionJob to cancel. Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ -// prediction_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Cancel(name string, googlecloudaiplatformv1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1CancelBatchPredictionJobRequest) *ProjectsLocationsBatchPredictionJobsCancelCall { - c := &ProjectsLocationsBatchPredictionJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsCustomJobsOperationsService) Wait(name string) *ProjectsLocationsCustomJobsOperationsWaitCall { + c := &ProjectsLocationsCustomJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1cancelbatchpredictionjobrequest = googlecloudaiplatformv1cancelbatchpredictionjobrequest + 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsCustomJobsOperationsWaitCall { + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCancelCall { +func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -36336,21 +43069,21 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCancelCall { +func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsWaitCall { 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsCustomJobsOperationsWaitCall) 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_ { @@ -36358,7 +43091,150 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cancelbatchpredictionjobrequest) + 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsWaitCall) 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}/customJobs/{customJobsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.cancel": + +type ProjectsLocationsDataLabelingJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1canceldatalabelingjobrequest *GoogleCloudAiplatformV1CancelDataLabelingJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a DataLabelingJob. Success of cancellation is not +// guaranteed. +// +// - name: The name of the DataLabelingJob. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe +// ling_job}`. +func (r *ProjectsLocationsDataLabelingJobsService) Cancel(name string, googlecloudaiplatformv1canceldatalabelingjobrequest *GoogleCloudAiplatformV1CancelDataLabelingJobRequest) *ProjectsLocationsDataLabelingJobsCancelCall { + c := &ProjectsLocationsDataLabelingJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1canceldatalabelingjobrequest = googlecloudaiplatformv1canceldatalabelingjobrequest + 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 *ProjectsLocationsDataLabelingJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCancelCall { + 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 *ProjectsLocationsDataLabelingJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCancelCall { + 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 *ProjectsLocationsDataLabelingJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1canceldatalabelingjobrequest) if err != nil { return nil, err } @@ -36378,14 +43254,14 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.cancel" call. +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -36416,25 +43292,25 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any files already outputted by the job are not deleted.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}:cancel", + // "description": "Cancels a DataLabelingJob. Success of cancellation is not guaranteed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.batchPredictionJobs.cancel", + // "id": "aiplatform.projects.locations.dataLabelingJobs.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BatchPredictionJob to cancel. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}:cancel", // "request": { - // "$ref": "GoogleCloudAiplatformV1CancelBatchPredictionJobRequest" + // "$ref": "GoogleCloudAiplatformV1CancelDataLabelingJobRequest" // }, // "response": { // "$ref": "GoogleProtobufEmpty" @@ -36446,34 +43322,32 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.batchPredictionJobs.create": +// method id "aiplatform.projects.locations.dataLabelingJobs.create": -type ProjectsLocationsBatchPredictionJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1batchpredictionjob *GoogleCloudAiplatformV1BatchPredictionJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDataLabelingJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1datalabelingjob *GoogleCloudAiplatformV1DataLabelingJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a BatchPredictionJob. A BatchPredictionJob once -// created will right away be attempted to start. +// Create: Creates a DataLabelingJob. // -// - parent: The resource name of the Location to create the -// BatchPredictionJob in. Format: +// - parent: The parent of the DataLabelingJob. Format: // `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Create(parent string, googlecloudaiplatformv1batchpredictionjob *GoogleCloudAiplatformV1BatchPredictionJob) *ProjectsLocationsBatchPredictionJobsCreateCall { - c := &ProjectsLocationsBatchPredictionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDataLabelingJobsService) Create(parent string, googlecloudaiplatformv1datalabelingjob *GoogleCloudAiplatformV1DataLabelingJob) *ProjectsLocationsDataLabelingJobsCreateCall { + c := &ProjectsLocationsDataLabelingJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1batchpredictionjob = googlecloudaiplatformv1batchpredictionjob + c.googlecloudaiplatformv1datalabelingjob = googlecloudaiplatformv1datalabelingjob 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCreateCall { +func (c *ProjectsLocationsDataLabelingJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -36481,21 +43355,21 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCreateCall { +func (c *ProjectsLocationsDataLabelingJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCreateCall { 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsCreateCall) 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_ { @@ -36503,14 +43377,14 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchpredictionjob) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1datalabelingjob) 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/{+parent}/batchPredictionJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataLabelingJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -36523,16 +43397,15 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1BatchPredictionJob or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1BatchPredictionJob.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchPredictionJob, error) { +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1DataLabelingJob or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1DataLabelingJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DataLabelingJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -36551,7 +43424,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1BatchPredictionJob{ + ret := &GoogleCloudAiplatformV1DataLabelingJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -36563,28 +43436,28 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + // "description": "Creates a DataLabelingJob.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.batchPredictionJobs.create", + // "id": "aiplatform.projects.locations.dataLabelingJobs.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The resource name of the Location to create the BatchPredictionJob in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/batchPredictionJobs", + // "path": "v1/{+parent}/dataLabelingJobs", // "request": { - // "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + // "$ref": "GoogleCloudAiplatformV1DataLabelingJob" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + // "$ref": "GoogleCloudAiplatformV1DataLabelingJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -36593,9 +43466,9 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.batchPredictionJobs.delete": +// method id "aiplatform.projects.locations.dataLabelingJobs.delete": -type ProjectsLocationsBatchPredictionJobsDeleteCall struct { +type ProjectsLocationsDataLabelingJobsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -36603,15 +43476,13 @@ type ProjectsLocationsBatchPredictionJobsDeleteCall struct { header_ http.Header } -// Delete: Deletes a BatchPredictionJob. Can only be called on jobs that -// already finished. +// Delete: Deletes a DataLabelingJob. // -// - name: The name of the BatchPredictionJob resource to be deleted. -// Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ -// prediction_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Delete(name string) *ProjectsLocationsBatchPredictionJobsDeleteCall { - c := &ProjectsLocationsBatchPredictionJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DataLabelingJob to be deleted. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe +// ling_job}`. +func (r *ProjectsLocationsDataLabelingJobsService) Delete(name string) *ProjectsLocationsDataLabelingJobsDeleteCall { + c := &ProjectsLocationsDataLabelingJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -36619,7 +43490,7 @@ func (r *ProjectsLocationsBatchPredictionJobsService) Delete(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsDeleteCall { +func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -36627,21 +43498,21 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsDeleteCall { +func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsDeleteCall { 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsDeleteCall) 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_ { @@ -36664,14 +43535,14 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.delete" call. +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -36702,18 +43573,18 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + // "description": "Deletes a DataLabelingJob.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.batchPredictionJobs.delete", + // "id": "aiplatform.projects.locations.dataLabelingJobs.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BatchPredictionJob resource to be deleted. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "description": "Required. The name of the DataLabelingJob to be deleted. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", // "required": true, // "type": "string" // } @@ -36729,9 +43600,9 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.batchPredictionJobs.get": +// method id "aiplatform.projects.locations.dataLabelingJobs.get": -type ProjectsLocationsBatchPredictionJobsGetCall struct { +type ProjectsLocationsDataLabelingJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -36740,13 +43611,13 @@ type ProjectsLocationsBatchPredictionJobsGetCall struct { header_ http.Header } -// Get: Gets a BatchPredictionJob +// Get: Gets a DataLabelingJob. // -// - name: The name of the BatchPredictionJob resource. Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ -// prediction_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *ProjectsLocationsBatchPredictionJobsGetCall { - c := &ProjectsLocationsBatchPredictionJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DataLabelingJob. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe +// ling_job}`. +func (r *ProjectsLocationsDataLabelingJobsService) Get(name string) *ProjectsLocationsDataLabelingJobsGetCall { + c := &ProjectsLocationsDataLabelingJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -36754,7 +43625,7 @@ func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsDataLabelingJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -36764,7 +43635,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsDataLabelingJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -36772,21 +43643,21 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsDataLabelingJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsGetCall { 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 *ProjectsLocationsBatchPredictionJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsGetCall) 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_ { @@ -36812,16 +43683,15 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1BatchPredictionJob or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1BatchPredictionJob.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1BatchPredictionJob, error) { +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1DataLabelingJob or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1DataLabelingJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DataLabelingJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -36840,7 +43710,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1BatchPredictionJob{ + ret := &GoogleCloudAiplatformV1DataLabelingJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -36852,25 +43722,25 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets a BatchPredictionJob", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + // "description": "Gets a DataLabelingJob.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.batchPredictionJobs.get", + // "id": "aiplatform.projects.locations.dataLabelingJobs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BatchPredictionJob resource. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1BatchPredictionJob" + // "$ref": "GoogleCloudAiplatformV1DataLabelingJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -36879,9 +43749,9 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.batchPredictionJobs.list": +// method id "aiplatform.projects.locations.dataLabelingJobs.list": -type ProjectsLocationsBatchPredictionJobsListCall struct { +type ProjectsLocationsDataLabelingJobsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -36890,53 +43760,61 @@ type ProjectsLocationsBatchPredictionJobsListCall struct { header_ http.Header } -// List: Lists BatchPredictionJobs in a Location. +// List: Lists DataLabelingJobs in a Location. // -// - parent: The resource name of the Location to list the -// BatchPredictionJobs from. Format: +// - parent: The parent of the DataLabelingJob. Format: // `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsBatchPredictionJobsService) List(parent string) *ProjectsLocationsBatchPredictionJobsListCall { - c := &ProjectsLocationsBatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDataLabelingJobsService) List(parent string) *ProjectsLocationsDataLabelingJobsListCall { + c := &ProjectsLocationsDataLabelingJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list // filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `model_display_name` supports `=`, -// `!=` comparisons. * `state` supports `=`, `!=` comparisons. * -// `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. -// `create_time` must be in RFC 3339 format. * `labels` supports general -// map functions that is: `labels.key=value` - key:value equality -// `labels.key:* - key existence Some examples of using the filter are: -// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * -// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT -// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * -// `labels.keyA=valueA` * `labels.keyB:*` -func (c *ProjectsLocationsBatchPredictionJobsListCall) Filter(filter string) *ProjectsLocationsBatchPredictionJobsListCall { +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsDataLabelingJobsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsListCall { c.urlParams_.Set("filter", filter) return c } +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order by default. Use +// `desc` after a field name for descending. +func (c *ProjectsLocationsDataLabelingJobsListCall) OrderBy(orderBy string) *ProjectsLocationsDataLabelingJobsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsBatchPredictionJobsListCall) PageSize(pageSize int64) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListBatchPredictionJobsResponse.next_page_token of the previous -// JobService.ListBatchPredictionJobs call. -func (c *ProjectsLocationsBatchPredictionJobsListCall) PageToken(pageToken string) *ProjectsLocationsBatchPredictionJobsListCall { +// page token. +func (c *ProjectsLocationsDataLabelingJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) *ProjectsLocationsBatchPredictionJobsListCall { +// which fields to read. FieldMask represents a set of symbolic field +// paths. For example, the mask can be `paths: "name". The "name" here +// is a field in DataLabelingJob. If this field is not set, all fields +// of the DataLabelingJob are returned. +func (c *ProjectsLocationsDataLabelingJobsListCall) ReadMask(readMask string) *ProjectsLocationsDataLabelingJobsListCall { c.urlParams_.Set("readMask", readMask) return c } @@ -36944,7 +43822,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -36954,7 +43832,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsListCall { c.ifNoneMatch_ = entityTag return c } @@ -36962,21 +43840,21 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsListCall { 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 *ProjectsLocationsBatchPredictionJobsListCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsListCall) 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_ { @@ -36989,7 +43867,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/batchPredictionJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataLabelingJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37002,17 +43880,16 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1ListBatchPredictionJobsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1ListBatchPredictionJobsResponse.ServerResponse -// .Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListDataLabelingJobsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1ListDataLabelingJobsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListBatchPredictionJobsResponse, error) { +func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDataLabelingJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -37031,7 +43908,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListBatchPredictionJobsResponse{ + ret := &GoogleCloudAiplatformV1ListDataLabelingJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -37043,16 +43920,21 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists BatchPredictionJobs in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + // "description": "Lists DataLabelingJobs in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.batchPredictionJobs.list", + // "id": "aiplatform.projects.locations.dataLabelingJobs.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", // "location": "query", // "type": "string" // }, @@ -37063,27 +43945,27 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list the BatchPredictionJobs from. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, // "readMask": { - // "description": "Mask specifying which fields to read.", + // "description": "Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For example, the mask can be `paths: \"name\"`. The \"name\" here is a field in DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are returned.", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/batchPredictionJobs", + // "path": "v1/{+parent}/dataLabelingJobs", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListBatchPredictionJobsResponse" + // "$ref": "GoogleCloudAiplatformV1ListDataLabelingJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -37095,7 +43977,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListBatchPredictionJobsResponse) error) error { +func (c *ProjectsLocationsDataLabelingJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDataLabelingJobsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -37113,40 +43995,38 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.customJobs.cancel": +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.cancel": -type ProjectsLocationsCustomJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1cancelcustomjobrequest *GoogleCloudAiplatformV1CancelCustomJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDataLabelingJobsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a CustomJob. Starts asynchronous cancellation on the -// CustomJob. The server makes a best effort to cancel the job, but -// success is not guaranteed. Clients can use JobService.GetCustomJob or -// other methods to check whether the cancellation succeeded or whether -// the job completed despite cancellation. On successful cancellation, -// the CustomJob is not deleted; instead it becomes a job with a -// CustomJob.error value with a google.rpc.Status.code of 1, -// corresponding to `Code.CANCELLED`, and CustomJob.state is set to -// `CANCELLED`. +// 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 CustomJob to cancel. Format: -// `projects/{project}/locations/{location}/customJobs/{custom_job}`. -func (r *ProjectsLocationsCustomJobsService) Cancel(name string, googlecloudaiplatformv1cancelcustomjobrequest *GoogleCloudAiplatformV1CancelCustomJobRequest) *ProjectsLocationsCustomJobsCancelCall { - c := &ProjectsLocationsCustomJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsDataLabelingJobsOperationsService) Cancel(name string) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { + c := &ProjectsLocationsDataLabelingJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1cancelcustomjobrequest = googlecloudaiplatformv1cancelcustomjobrequest 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 *ProjectsLocationsCustomJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCancelCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -37154,21 +44034,21 @@ func (c *ProjectsLocationsCustomJobsCancelCall) 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 *ProjectsLocationsCustomJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCancelCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { 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 *ProjectsLocationsCustomJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) 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_ { @@ -37176,11 +44056,6 @@ func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cancelcustomjobrequest) - 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") @@ -37196,14 +44071,14 @@ func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.cancel" call. +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsCustomJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -37234,26 +44109,23 @@ func (c *ProjectsLocationsCustomJobsCancelCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}:cancel", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.cancel", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the CustomJob to cancel. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1CancelCustomJobRequest" - // }, // "response": { // "$ref": "GoogleProtobufEmpty" // }, @@ -37264,153 +44136,9 @@ func (c *ProjectsLocationsCustomJobsCancelCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.customJobs.create": - -type ProjectsLocationsCustomJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1customjob *GoogleCloudAiplatformV1CustomJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a CustomJob. A created CustomJob right away will be -// attempted to be run. -// -// - parent: The resource name of the Location to create the CustomJob -// in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsCustomJobsService) Create(parent string, googlecloudaiplatformv1customjob *GoogleCloudAiplatformV1CustomJob) *ProjectsLocationsCustomJobsCreateCall { - c := &ProjectsLocationsCustomJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1customjob = googlecloudaiplatformv1customjob - 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 *ProjectsLocationsCustomJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCreateCall { - 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 *ProjectsLocationsCustomJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCreateCall { - 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 *ProjectsLocationsCustomJobsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsCustomJobsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1customjob) - 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/{+parent}/customJobs") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.customJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1CustomJob or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1CustomJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CustomJob, 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 := &GoogleCloudAiplatformV1CustomJob{ - 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": "Creates a CustomJob. A created CustomJob right away will be attempted to be run.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the CustomJob in. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+parent}/customJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1CustomJob" - // }, - // "response": { - // "$ref": "GoogleCloudAiplatformV1CustomJob" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.customJobs.delete": +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.delete": -type ProjectsLocationsCustomJobsDeleteCall struct { +type ProjectsLocationsDataLabelingJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -37418,12 +44146,14 @@ type ProjectsLocationsCustomJobsDeleteCall struct { header_ http.Header } -// Delete: Deletes a CustomJob. +// 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 CustomJob resource to be deleted. Format: -// `projects/{project}/locations/{location}/customJobs/{custom_job}`. -func (r *ProjectsLocationsCustomJobsService) Delete(name string) *ProjectsLocationsCustomJobsDeleteCall { - c := &ProjectsLocationsCustomJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsDataLabelingJobsOperationsService) Delete(name string) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { + c := &ProjectsLocationsDataLabelingJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -37431,7 +44161,7 @@ func (r *ProjectsLocationsCustomJobsService) 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 *ProjectsLocationsCustomJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsDeleteCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -37439,21 +44169,21 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) 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 *ProjectsLocationsCustomJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsDeleteCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { 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 *ProjectsLocationsCustomJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) 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_ { @@ -37476,14 +44206,14 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.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 +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -37502,7 +44232,7 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -37514,25 +44244,25 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes a CustomJob.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.customJobs.delete", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the CustomJob resource to be deleted. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -37541,9 +44271,9 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.customJobs.get": +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.get": -type ProjectsLocationsCustomJobsGetCall struct { +type ProjectsLocationsDataLabelingJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -37552,12 +44282,13 @@ type ProjectsLocationsCustomJobsGetCall struct { header_ http.Header } -// Get: Gets a CustomJob. +// 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 CustomJob resource. Format: -// `projects/{project}/locations/{location}/customJobs/{custom_job}`. -func (r *ProjectsLocationsCustomJobsService) Get(name string) *ProjectsLocationsCustomJobsGetCall { - c := &ProjectsLocationsCustomJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsDataLabelingJobsOperationsService) Get(name string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { + c := &ProjectsLocationsDataLabelingJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -37565,7 +44296,7 @@ func (r *ProjectsLocationsCustomJobsService) 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 *ProjectsLocationsCustomJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsGetCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -37575,7 +44306,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) 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 *ProjectsLocationsCustomJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsGetCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -37583,21 +44314,21 @@ func (c *ProjectsLocationsCustomJobsGetCall) 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 *ProjectsLocationsCustomJobsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsGetCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsGetCall { 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 *ProjectsLocationsCustomJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) 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_ { @@ -37623,14 +44354,14 @@ func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1CustomJob or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1CustomJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CustomJob, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -37649,7 +44380,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1CustomJob{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -37661,25 +44392,25 @@ func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Gets a CustomJob.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.get", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the CustomJob resource. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1CustomJob" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -37688,71 +44419,53 @@ func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.customJobs.list": +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.list": -type ProjectsLocationsCustomJobsListCall struct { +type ProjectsLocationsDataLabelingJobsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists CustomJobs in a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list the CustomJobs -// from. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsCustomJobsService) List(parent string) *ProjectsLocationsCustomJobsListCall { - c := &ProjectsLocationsCustomJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsDataLabelingJobsOperationsService) List(name string) *ProjectsLocationsDataLabelingJobsOperationsListCall { + c := &ProjectsLocationsDataLabelingJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsCustomJobsListCall) Filter(filter string) *ProjectsLocationsCustomJobsListCall { +// filter. +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsCustomJobsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListCustomJobsResponse.next_page_token of the previous -// JobService.ListCustomJobs call. -func (c *ProjectsLocationsCustomJobsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsListCall { +// page token. +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsCustomJobsListCall) ReadMask(readMask string) *ProjectsLocationsCustomJobsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -37762,7 +44475,7 @@ func (c *ProjectsLocationsCustomJobsListCall) 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 *ProjectsLocationsCustomJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -37770,21 +44483,21 @@ func (c *ProjectsLocationsCustomJobsListCall) 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 *ProjectsLocationsCustomJobsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsListCall { 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 *ProjectsLocationsCustomJobsListCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) 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_ { @@ -37797,7 +44510,7 @@ func (c *ProjectsLocationsCustomJobsListCall) 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/{+parent}/customJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -37805,21 +44518,20 @@ func (c *ProjectsLocationsCustomJobsListCall) doRequest(alt string) (*http.Respo } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListCustomJobsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListCustomJobsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListCustomJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -37838,7 +44550,7 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListCustomJobsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -37850,19 +44562,26 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists CustomJobs in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs", + // "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}/dataLabelingJobs/{dataLabelingJobsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.list", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "required": true, + // "type": "string" + // }, // "pageSize": { // "description": "The standard list page size.", // "format": "int32", @@ -37870,27 +44589,14 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list the CustomJobs from. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/customJobs", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListCustomJobsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -37902,7 +44608,7 @@ func (c *ProjectsLocationsCustomJobsListCall) 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 *ProjectsLocationsCustomJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListCustomJobsResponse) error) error { +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) 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 { @@ -37920,9 +44626,9 @@ func (c *ProjectsLocationsCustomJobsListCall) Pages(ctx context.Context, f func( } } -// method id "aiplatform.projects.locations.customJobs.operations.cancel": +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.wait": -type ProjectsLocationsCustomJobsOperationsCancelCall struct { +type ProjectsLocationsDataLabelingJobsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -37930,28 +44636,37 @@ type ProjectsLocationsCustomJobsOperationsCancelCall struct { 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`. +// 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 be cancelled. -func (r *ProjectsLocationsCustomJobsOperationsService) Cancel(name string) *ProjectsLocationsCustomJobsOperationsCancelCall { - c := &ProjectsLocationsCustomJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsDataLabelingJobsOperationsService) Wait(name string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { + c := &ProjectsLocationsDataLabelingJobsOperationsWaitCall{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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { + 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsCancelCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -37959,21 +44674,21 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsCancelCall { +func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) 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_ { @@ -37983,7 +44698,7 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -37996,14 +44711,14 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.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.dataLabelingJobs.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 *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38022,7 +44737,7 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.C 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, @@ -38034,25 +44749,31 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.C } 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}/customJobs/{customJobsId}/operations/{operationsId}:cancel", + // "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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.operations.cancel", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/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}:cancel", + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38061,32 +44782,32 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.customJobs.operations.delete": +// method id "aiplatform.projects.locations.datasets.create": -type ProjectsLocationsCustomJobsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset + 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`. +// Create: Creates a Dataset. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsCustomJobsOperationsService) Delete(name string) *ProjectsLocationsCustomJobsOperationsDeleteCall { - c := &ProjectsLocationsCustomJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the Dataset in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDatasetsService) Create(parent string, googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *ProjectsLocationsDatasetsCreateCall { + c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -38094,21 +44815,21 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall { 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsCreateCall) 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_ { @@ -38116,29 +44837,34 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1dataset) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.customJobs.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.datasets.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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38157,7 +44883,7 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.C 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, @@ -38169,25 +44895,28 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.customJobs.operations.delete", + // "description": "Creates a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "parent": { + // "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/datasets", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Dataset" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38196,24 +44925,22 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.customJobs.operations.get": +// method id "aiplatform.projects.locations.datasets.delete": -type ProjectsLocationsCustomJobsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDeleteCall struct { + s *Service + name string + 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. +// Delete: Deletes a Dataset. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsCustomJobsOperationsService) Get(name string) *ProjectsLocationsCustomJobsOperationsGetCall { - c := &ProjectsLocationsCustomJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Dataset to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall { + c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -38221,54 +44948,41 @@ func (r *ProjectsLocationsCustomJobsOperationsService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall { 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 *ProjectsLocationsCustomJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsGetCall { - 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 *ProjectsLocationsCustomJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall { 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 *ProjectsLocationsCustomJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -38279,14 +44993,14 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38317,18 +45031,18 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.operations.get", + // "description": "Deletes a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // } @@ -38344,100 +45058,71 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.customJobs.operations.list": +// method id "aiplatform.projects.locations.datasets.export": -type ProjectsLocationsCustomJobsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsExportCall struct { + s *Service + name string + googlecloudaiplatformv1exportdatarequest *GoogleCloudAiplatformV1ExportDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// Export: Exports data from a Dataset. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsCustomJobsOperationsService) List(name string) *ProjectsLocationsCustomJobsOperationsListCall { - c := &ProjectsLocationsCustomJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) Export(name string, googlecloudaiplatformv1exportdatarequest *GoogleCloudAiplatformV1ExportDataRequest) *ProjectsLocationsDatasetsExportCall { + c := &ProjectsLocationsDatasetsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsCustomJobsOperationsListCall) Filter(filter string) *ProjectsLocationsCustomJobsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsCustomJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsCustomJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) + c.googlecloudaiplatformv1exportdatarequest = googlecloudaiplatformv1exportdatarequest 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 *ProjectsLocationsCustomJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsExportCall { 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 *ProjectsLocationsCustomJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsListCall { - 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 *ProjectsLocationsCustomJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsExportCall { 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 *ProjectsLocationsCustomJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsExportCall) 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.googlecloudaiplatformv1exportdatarequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:export") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -38448,15 +45133,14 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.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 +// Do executes the "aiplatform.projects.locations.datasets.export" 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 *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38475,7 +45159,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38487,41 +45171,28 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.operations.list", + // "description": "Exports data from a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:export", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.export", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "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", + // "path": "v1/{+name}:export", + // "request": { + // "$ref": "GoogleCloudAiplatformV1ExportDataRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38530,102 +45201,84 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.Cal } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsCustomJobsOperationsListCall) 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.customJobs.operations.wait": +// method id "aiplatform.projects.locations.datasets.get": -type ProjectsLocationsCustomJobsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets a Dataset. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsCustomJobsOperationsService) Wait(name string) *ProjectsLocationsCustomJobsOperationsWaitCall { - c := &ProjectsLocationsCustomJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Dataset resource. +func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall { + c := &ProjectsLocationsDatasetsGetCall{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 *ProjectsLocationsCustomJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsCustomJobsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsGetCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall { 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 *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall { 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -38636,14 +45289,14 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.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.datasets.get" call. +// Exactly one of *GoogleCloudAiplatformV1Dataset or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Dataset.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38662,7 +45315,7 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Dataset{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38674,31 +45327,31 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.operations.wait", + // "description": "Gets a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the Dataset resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "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", + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1Dataset" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38707,34 +45360,32 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.dataLabelingJobs.cancel": +// method id "aiplatform.projects.locations.datasets.import": -type ProjectsLocationsDataLabelingJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1canceldatalabelingjobrequest *GoogleCloudAiplatformV1CancelDataLabelingJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsImportCall struct { + s *Service + name string + googlecloudaiplatformv1importdatarequest *GoogleCloudAiplatformV1ImportDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a DataLabelingJob. Success of cancellation is not -// guaranteed. +// Import: Imports data into a Dataset. // -// - name: The name of the DataLabelingJob. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe -// ling_job}`. -func (r *ProjectsLocationsDataLabelingJobsService) Cancel(name string, googlecloudaiplatformv1canceldatalabelingjobrequest *GoogleCloudAiplatformV1CancelDataLabelingJobRequest) *ProjectsLocationsDataLabelingJobsCancelCall { - c := &ProjectsLocationsDataLabelingJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) Import(name string, googlecloudaiplatformv1importdatarequest *GoogleCloudAiplatformV1ImportDataRequest) *ProjectsLocationsDatasetsImportCall { + c := &ProjectsLocationsDatasetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1canceldatalabelingjobrequest = googlecloudaiplatformv1canceldatalabelingjobrequest + c.googlecloudaiplatformv1importdatarequest = googlecloudaiplatformv1importdatarequest 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 *ProjectsLocationsDataLabelingJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCancelCall { +func (c *ProjectsLocationsDatasetsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -38742,21 +45393,21 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsDataLabelingJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCancelCall { +func (c *ProjectsLocationsDatasetsImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsImportCall { 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 *ProjectsLocationsDataLabelingJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsImportCall) 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_ { @@ -38764,14 +45415,14 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1canceldatalabelingjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1importdatarequest) 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/{+name}:import") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -38784,14 +45435,14 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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.datasets.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 *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38810,7 +45461,7 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallO 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, @@ -38822,28 +45473,28 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Cancels a DataLabelingJob. Success of cancellation is not guaranteed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}:cancel", + // "description": "Imports data into a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.cancel", + // "id": "aiplatform.projects.locations.datasets.import", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+name}:import", // "request": { - // "$ref": "GoogleCloudAiplatformV1CancelDataLabelingJobRequest" + // "$ref": "GoogleCloudAiplatformV1ImportDataRequest" // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38852,71 +45503,121 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.dataLabelingJobs.create": +// method id "aiplatform.projects.locations.datasets.list": -type ProjectsLocationsDataLabelingJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1datalabelingjob *GoogleCloudAiplatformV1DataLabelingJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a DataLabelingJob. +// List: Lists Datasets in a Location. // -// - parent: The parent of the DataLabelingJob. Format: +// - parent: The name of the Dataset's parent resource. Format: // `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDataLabelingJobsService) Create(parent string, googlecloudaiplatformv1datalabelingjob *GoogleCloudAiplatformV1DataLabelingJob) *ProjectsLocationsDataLabelingJobsCreateCall { - c := &ProjectsLocationsDataLabelingJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall { + c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1datalabelingjob = googlecloudaiplatformv1datalabelingjob + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `display_name`: supports = and != * +// `metadata_schema_uri`: supports = and != * `labels` supports general +// map functions that is: * `labels.key=value` - key:value equality * +// `labels.key:* or labels:key - key existence * A key including a space +// must be quoted. `labels."a key". Some examples: * +// `displayName="myDisplayName" * `labels.myKey="myValue" +func (c *ProjectsLocationsDatasetsListCall) Filter(filter string) *ProjectsLocationsDatasetsListCall { + 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` +func (c *ProjectsLocationsDatasetsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCreateCall { +func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall { 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 *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall { + 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 *ProjectsLocationsDataLabelingJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCreateCall { +func (c *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall { 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 *ProjectsLocationsDataLabelingJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1datalabelingjob) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataLabelingJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasets") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -38927,15 +45628,16 @@ func (c *ProjectsLocationsDataLabelingJobsCreateCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1DataLabelingJob or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1DataLabelingJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DataLabelingJob, error) { +// Do executes the "aiplatform.projects.locations.datasets.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListDatasetsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListDatasetsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDatasetsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38954,7 +45656,7 @@ func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1DataLabelingJob{ + ret := &GoogleCloudAiplatformV1ListDatasetsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38966,28 +45668,52 @@ func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Creates a DataLabelingJob.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.create", + // "description": "Lists Datasets in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "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`", + // "location": "query", + // "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" + // }, // "parent": { - // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/dataLabelingJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1DataLabelingJob" - // }, + // "path": "v1/{+parent}/datasets", // "response": { - // "$ref": "GoogleCloudAiplatformV1DataLabelingJob" + // "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38996,31 +45722,61 @@ func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.dataLabelingJobs.delete": +// 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 *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDatasetsResponse) 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) + } +} -type ProjectsLocationsDataLabelingJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.datasets.patch": + +type ProjectsLocationsDatasetsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a DataLabelingJob. +// Patch: Updates a Dataset. // -// - name: The name of the DataLabelingJob to be deleted. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe -// ling_job}`. -func (r *ProjectsLocationsDataLabelingJobsService) Delete(name string) *ProjectsLocationsDataLabelingJobsDeleteCall { - c := &ProjectsLocationsDataLabelingJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Dataset. +func (r *ProjectsLocationsDatasetsService) Patch(name string, googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *ProjectsLocationsDatasetsPatchCall { + c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. For the `FieldMask` definition, +// see google.protobuf.FieldMask. Updatable fields: * `display_name` * +// `description` * `labels` +func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall { + 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsDeleteCall { +func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39028,21 +45784,21 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsDeleteCall { +func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall { 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsPatchCall) 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_ { @@ -39050,11 +45806,16 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1dataset) + 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -39065,14 +45826,14 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 +// Do executes the "aiplatform.projects.locations.datasets.patch" call. +// Exactly one of *GoogleCloudAiplatformV1Dataset or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Dataset.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39091,7 +45852,7 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Dataset{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39103,25 +45864,34 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Deletes a DataLabelingJob.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.dataLabelingJobs.delete", + // "description": "Updates a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.datasets.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DataLabelingJob to be deleted. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "description": "Output only. The resource name of the Dataset.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Dataset" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1Dataset" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39130,32 +45900,149 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.dataLabelingJobs.get": +// method id "aiplatform.projects.locations.datasets.searchDataItems": -type ProjectsLocationsDataLabelingJobsGetCall struct { +type ProjectsLocationsDatasetsSearchDataItemsCall struct { s *Service - name string + dataset string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets a DataLabelingJob. +// SearchDataItems: Searches DataItems in a Dataset. // -// - name: The name of the DataLabelingJob. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe -// ling_job}`. -func (r *ProjectsLocationsDataLabelingJobsService) Get(name string) *ProjectsLocationsDataLabelingJobsGetCall { - c := &ProjectsLocationsDataLabelingJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - dataset: The resource name of the Dataset from which to search +// DataItems. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) SearchDataItems(dataset string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c := &ProjectsLocationsDatasetsSearchDataItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.dataset = dataset + return c +} + +// AnnotationFilters sets the optional parameter "annotationFilters": An +// expression that specifies what Annotations will be returned per +// DataItem. Annotations satisfied either of the conditions will be +// returned. * `annotation_spec_id` - for = or !=. Must specify +// `saved_query_id=` - saved query id that annotations should belong to. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationFilters(annotationFilters ...string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.SetMulti("annotationFilters", append([]string{}, annotationFilters...)) + return c +} + +// AnnotationsFilter sets the optional parameter "annotationsFilter": An +// expression for filtering the Annotations that will be returned per +// DataItem. * `annotation_spec_id` - for = or !=. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsFilter(annotationsFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("annotationsFilter", annotationsFilter) + return c +} + +// AnnotationsLimit sets the optional parameter "annotationsLimit": If +// set, only up to this many of Annotations will be returned per +// DataItemView. The maximum value is 1000. If not set, the maximum +// value will be used. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsLimit(annotationsLimit int64) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("annotationsLimit", fmt.Sprint(annotationsLimit)) + return c +} + +// DataItemFilter sets the optional parameter "dataItemFilter": An +// expression for filtering the DataItem that will be returned. * +// `data_item_id` - for = or !=. * `labeled` - for = or !=. * +// `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that +// have at least one annotation with annotation_spec_id = +// `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. +// For example: * `data_item=1` * `has_annotation(5)` +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataItemFilter(dataItemFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("dataItemFilter", dataItemFilter) + return c +} + +// DataLabelingJob sets the optional parameter "dataLabelingJob": The +// resource name of a DataLabelingJob. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeli +// ng_job}` If this field is set, all of the search will be done in the +// context of this DataLabelingJob. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataLabelingJob(dataLabelingJob string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("dataLabelingJob", dataLabelingJob) + return c +} + +// FieldMask sets the optional parameter "fieldMask": Mask specifying +// which fields of DataItemView to read. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) FieldMask(fieldMask string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("fieldMask", fieldMask) + 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. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// OrderByAnnotationOrderBy sets the optional parameter +// "orderByAnnotation.orderBy": A comma-separated list of annotation +// fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Must also specify saved_query. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationOrderBy(orderByAnnotationOrderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderByAnnotation.orderBy", orderByAnnotationOrderBy) + return c +} + +// OrderByAnnotationSavedQuery sets the optional parameter +// "orderByAnnotation.savedQuery": Required. Saved query of the +// Annotation. Only Annotations belong to this saved query will be +// considered for ordering. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationSavedQuery(orderByAnnotationSavedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderByAnnotation.savedQuery", orderByAnnotationSavedQuery) + return c +} + +// OrderByDataItem sets the optional parameter "orderByDataItem": A +// comma-separated list of data item fields to order by, sorted in +// ascending order. Use "desc" after a field name for descending. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByDataItem(orderByDataItem string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderByDataItem", orderByDataItem) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default and maximum +// page size is 100. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return Typically +// obtained via SearchDataItemsResponse.next_page_token of the previous +// DatasetService.SearchDataItems call. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// SavedQuery sets the optional parameter "savedQuery": The resource +// name of a SavedQuery(annotation set in UI). Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueri +// es/{saved_query}` All of the search will be done in the context of +// this SavedQuery. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) SavedQuery(savedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("savedQuery", savedQuery) 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 *ProjectsLocationsDataLabelingJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsGetCall { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSearchDataItemsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39165,7 +46052,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsDataLabelingJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsGetCall { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSearchDataItemsCall { c.ifNoneMatch_ = entityTag return c } @@ -39173,21 +46060,21 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) IfNoneMatch(entityTag string) // 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 *ProjectsLocationsDataLabelingJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsGetCall { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSearchDataItemsCall { 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 *ProjectsLocationsDataLabelingJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) 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_ { @@ -39200,7 +46087,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http. var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataset}:searchDataItems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39208,20 +46095,21 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http. } 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.dataLabelingJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1DataLabelingJob or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1DataLabelingJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DataLabelingJob, error) { + "dataset": c.dataset, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.searchDataItems" call. +// Exactly one of *GoogleCloudAiplatformV1SearchDataItemsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1SearchDataItemsResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1SearchDataItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39240,7 +46128,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1DataLabelingJob{ + ret := &GoogleCloudAiplatformV1SearchDataItemsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39252,25 +46140,97 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Gets a DataLabelingJob.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", + // "description": "Searches DataItems in a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:searchDataItems", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.get", + // "id": "aiplatform.projects.locations.datasets.searchDataItems", // "parameterOrder": [ - // "name" + // "dataset" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "annotationFilters": { + // "description": "An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should belong to.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "annotationsFilter": { + // "deprecated": true, + // "description": "An expression for filtering the Annotations that will be returned per DataItem. * `annotation_spec_id` - for = or !=.", + // "location": "query", + // "type": "string" + // }, + // "annotationsLimit": { + // "description": "If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is 1000. If not set, the maximum value will be used.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "dataItemFilter": { + // "description": "An expression for filtering the DataItem that will be returned. * `data_item_id` - for = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * `data_item=1` * `has_annotation(5)`", + // "location": "query", + // "type": "string" + // }, + // "dataLabelingJob": { + // "description": "The resource name of a DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this field is set, all of the search will be done in the context of this DataLabelingJob.", + // "location": "query", + // "type": "string" + // }, + // "dataset": { + // "description": "Required. The resource name of the Dataset from which to search DataItems. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "fieldMask": { + // "description": "Mask specifying which fields of DataItemView to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "deprecated": true, + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "type": "string" + // }, + // "orderByAnnotation.orderBy": { + // "description": "A comma-separated list of annotation fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Must also specify saved_query.", + // "location": "query", + // "type": "string" + // }, + // "orderByAnnotation.savedQuery": { + // "description": "Required. Saved query of the Annotation. Only Annotations belong to this saved query will be considered for ordering.", + // "location": "query", + // "type": "string" + // }, + // "orderByDataItem": { + // "description": "A comma-separated list of data item fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Server may return fewer results than requested. Default and maximum page size is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results for the server to return Typically obtained via SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call.", + // "location": "query", + // "type": "string" + // }, + // "savedQuery": { + // "deprecated": true, + // "description": "The resource name of a SavedQuery(annotation set in UI). Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the search will be done in the context of this SavedQuery.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+dataset}:searchDataItems", // "response": { - // "$ref": "GoogleCloudAiplatformV1DataLabelingJob" + // "$ref": "GoogleCloudAiplatformV1SearchDataItemsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39279,72 +46239,52 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.dataLabelingJobs.list": +// 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 *ProjectsLocationsDatasetsSearchDataItemsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1SearchDataItemsResponse) 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) + } +} -type ProjectsLocationsDataLabelingJobsListCall struct { +// method id "aiplatform.projects.locations.datasets.annotationSpecs.get": + +type ProjectsLocationsDatasetsAnnotationSpecsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists DataLabelingJobs in a Location. +// Get: Gets an AnnotationSpec. // -// - parent: The parent of the DataLabelingJob. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDataLabelingJobsService) List(parent string) *ProjectsLocationsDataLabelingJobsListCall { - c := &ProjectsLocationsDataLabelingJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsDataLabelingJobsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": A comma-separated list -// of fields to order by, sorted in ascending order by default. Use -// `desc` after a field name for descending. -func (c *ProjectsLocationsDataLabelingJobsListCall) OrderBy(orderBy string) *ProjectsLocationsDataLabelingJobsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDataLabelingJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDataLabelingJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the AnnotationSpec resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/annotati +// onSpecs/{annotation_spec}`. +func (r *ProjectsLocationsDatasetsAnnotationSpecsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. FieldMask represents a set of symbolic field -// paths. For example, the mask can be `paths: "name". The "name" here -// is a field in DataLabelingJob. If this field is not set, all fields -// of the DataLabelingJob are returned. -func (c *ProjectsLocationsDataLabelingJobsListCall) ReadMask(readMask string) *ProjectsLocationsDataLabelingJobsListCall { +// which fields to read. +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { c.urlParams_.Set("readMask", readMask) return c } @@ -39352,7 +46292,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) ReadMask(readMask 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 *ProjectsLocationsDataLabelingJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39362,7 +46302,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsDataLabelingJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -39370,21 +46310,21 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) IfNoneMatch(entityTag string // 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 *ProjectsLocationsDataLabelingJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { 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 *ProjectsLocationsDataLabelingJobsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) 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_ { @@ -39397,7 +46337,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataLabelingJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39405,21 +46345,20 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListDataLabelingJobsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1ListDataLabelingJobsResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDataLabelingJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.get" call. +// Exactly one of *GoogleCloudAiplatformV1AnnotationSpec or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1AnnotationSpec.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AnnotationSpec, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39438,7 +46377,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListDataLabelingJobsResponse{ + ret := &GoogleCloudAiplatformV1AnnotationSpec{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39450,52 +46389,31 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists DataLabelingJobs in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", + // "description": "Gets an AnnotationSpec.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.list", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", // "required": true, // "type": "string" // }, // "readMask": { - // "description": "Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For example, the mask can be `paths: \"name\"`. The \"name\" here is a field in DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are returned.", + // "description": "Mask specifying which fields to read.", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/dataLabelingJobs", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListDataLabelingJobsResponse" + // "$ref": "GoogleCloudAiplatformV1AnnotationSpec" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39504,30 +46422,9 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt } -// 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 *ProjectsLocationsDataLabelingJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDataLabelingJobsResponse) 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.dataLabelingJobs.operations.cancel": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel": -type ProjectsLocationsDataLabelingJobsOperationsCancelCall struct { +type ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -39547,8 +46444,8 @@ type ProjectsLocationsDataLabelingJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Cancel(name string) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { - c := &ProjectsLocationsDataLabelingJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -39556,7 +46453,7 @@ func (r *ProjectsLocationsDataLabelingJobsOperationsService) Cancel(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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39564,21 +46461,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Fields(s ...goog // 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) 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_ { @@ -39601,14 +46498,14 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39640,9 +46537,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googl 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.cancel", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -39650,7 +46547,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googl // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -39666,9 +46563,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.delete": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete": -type ProjectsLocationsDataLabelingJobsOperationsDeleteCall struct { +type ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -39682,8 +46579,8 @@ type ProjectsLocationsDataLabelingJobsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Delete(name string) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { - c := &ProjectsLocationsDataLabelingJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -39691,7 +46588,7 @@ func (r *ProjectsLocationsDataLabelingJobsOperationsService) 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39699,21 +46596,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Fields(s ...goog // 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) 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_ { @@ -39736,14 +46633,14 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39775,9 +46672,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Do(opts ...googl 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.delete", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete", // "parameterOrder": [ // "name" // ], @@ -39785,7 +46682,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Do(opts ...googl // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -39801,9 +46698,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.get": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.get": -type ProjectsLocationsDataLabelingJobsOperationsGetCall struct { +type ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -39817,8 +46714,8 @@ type ProjectsLocationsDataLabelingJobsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Get(name string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { - c := &ProjectsLocationsDataLabelingJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -39826,7 +46723,7 @@ func (r *ProjectsLocationsDataLabelingJobsOperationsService) Get(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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39836,7 +46733,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -39844,21 +46741,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) 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_ { @@ -39884,14 +46781,14 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39923,9 +46820,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleap 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.get", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.get", // "parameterOrder": [ // "name" // ], @@ -39933,7 +46830,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -39949,9 +46846,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.list": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.list": -type ProjectsLocationsDataLabelingJobsOperationsListCall struct { +type ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -39965,29 +46862,29 @@ type ProjectsLocationsDataLabelingJobsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) List(name string) *ProjectsLocationsDataLabelingJobsOperationsListCall { - c := &ProjectsLocationsDataLabelingJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) List(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -39995,7 +46892,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageToken(pageToke // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40005,7 +46902,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Fields(s ...google // 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -40013,21 +46910,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) IfNoneMatch(entity // 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) 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_ { @@ -40053,7 +46950,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.list" call. +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 @@ -40061,7 +46958,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt stri // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40093,9 +46990,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googlea 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}/dataLabelingJobs/{dataLabelingJobsId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.list", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.list", // "parameterOrder": [ // "name" // ], @@ -40108,7 +47005,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googlea // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", // "required": true, // "type": "string" // }, @@ -40138,7 +47035,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googlea // 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) 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 { @@ -40156,9 +47053,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Pages(ctx context. } } -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.wait": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait": -type ProjectsLocationsDataLabelingJobsOperationsWaitCall struct { +type ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40178,8 +47075,8 @@ type ProjectsLocationsDataLabelingJobsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Wait(name string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { - c := &ProjectsLocationsDataLabelingJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Wait(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -40188,7 +47085,7 @@ func (r *ProjectsLocationsDataLabelingJobsOperationsService) Wait(name string) * // 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -40196,7 +47093,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Timeout(timeout st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40204,21 +47101,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Fields(s ...google // 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) 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_ { @@ -40241,14 +47138,14 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.operations.wait" call. +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40280,9 +47177,9 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googlea 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.wait", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait", // "parameterOrder": [ // "name" // ], @@ -40290,7 +47187,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googlea // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -40312,71 +47209,115 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.datasets.create": +// method id "aiplatform.projects.locations.datasets.dataItems.list": -type ProjectsLocationsDatasetsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a Dataset. +// List: Lists DataItems in a Dataset. // -// - parent: The resource name of the Location to create the Dataset in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDatasetsService) Create(parent string, googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *ProjectsLocationsDatasetsCreateCall { - c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Dataset to list DataItems from. +// Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsDataItemsService) List(parent string) *ProjectsLocationsDatasetsDataItemsListCall { + c := &ProjectsLocationsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsDataItemsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsListCall { + 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. +func (c *ProjectsLocationsDatasetsDataItemsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsDataItemsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall { +func (c *ProjectsLocationsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsListCall { 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 *ProjectsLocationsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsListCall { + 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 *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall { +func (c *ProjectsLocationsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsListCall { 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 *ProjectsLocationsDatasetsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1dataset) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataItems") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -40387,14 +47328,16 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListDataItemsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListDataItemsResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDataItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40413,7 +47356,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ListDataItemsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40425,28 +47368,52 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Creates a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.create", + // "description": "Lists DataItems in a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.dataItems.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "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" + // }, // "parent": { - // "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Dataset to list DataItems from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/datasets", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Dataset" - // }, + // "path": "v1/{+parent}/dataItems", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListDataItemsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -40455,82 +47422,157 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.delete": +// 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 *ProjectsLocationsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDataItemsResponse) 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) + } +} -type ProjectsLocationsDatasetsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.list": + +type ProjectsLocationsDatasetsDataItemsAnnotationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a Dataset. +// List: Lists Annotations belongs to a dataitem // -// - name: The resource name of the Dataset to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall { - c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the DataItem to list Annotations from. +// Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/dataItem +// s/{data_item}`. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsService) List(parent string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + 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. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + 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 *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { 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 *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/annotations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListAnnotationsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListAnnotationsResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListAnnotationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40549,7 +47591,7 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ListAnnotationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40561,25 +47603,52 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Deletes a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.delete", + // "description": "Lists Annotations belongs to a dataitem", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "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" + // }, + // "parent": { + // "description": "Required. The resource name of the DataItem to list Annotations from. Format: `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/annotations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListAnnotationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -40588,32 +47657,59 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.export": +// 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListAnnotationsResponse) 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) + } +} -type ProjectsLocationsDatasetsExportCall struct { - s *Service - name string - googlecloudaiplatformv1exportdatarequest *GoogleCloudAiplatformV1ExportDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel": + +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Export: Exports data from a Dataset. +// 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 Dataset resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) Export(name string, googlecloudaiplatformv1exportdatarequest *GoogleCloudAiplatformV1ExportDataRequest) *ProjectsLocationsDatasetsExportCall { - c := &ProjectsLocationsDatasetsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1exportdatarequest = googlecloudaiplatformv1exportdatarequest 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 *ProjectsLocationsDatasetsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsExportCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40621,21 +47717,21 @@ func (c *ProjectsLocationsDatasetsExportCall) 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 *ProjectsLocationsDatasetsExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsExportCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { 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 *ProjectsLocationsDatasetsExportCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) 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_ { @@ -40643,14 +47739,9 @@ func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Respo } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1exportdatarequest) - 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}:export") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -40663,14 +47754,14 @@ func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.export" 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.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40689,7 +47780,7 @@ func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40701,28 +47792,25 @@ func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Exports data from a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:export", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.export", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:export", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ExportDataRequest" - // }, + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -40731,84 +47819,66 @@ func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.get": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete": -type ProjectsLocationsDatasetsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a Dataset. +// 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 Dataset resource. -func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall { - c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsGetCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall { - 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 *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -40819,14 +47889,14 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.get" call. -// Exactly one of *GoogleCloudAiplatformV1Dataset or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Dataset.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40845,7 +47915,7 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Dataset{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -40857,31 +47927,25 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Gets a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.get", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Dataset resource.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Dataset" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -40890,71 +47954,79 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "aiplatform.projects.locations.datasets.import": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get": -type ProjectsLocationsDatasetsImportCall struct { - s *Service - name string - googlecloudaiplatformv1importdatarequest *GoogleCloudAiplatformV1ImportDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Import: Imports data into a Dataset. +// 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 Dataset resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) Import(name string, googlecloudaiplatformv1importdatarequest *GoogleCloudAiplatformV1ImportDataRequest) *ProjectsLocationsDatasetsImportCall { - c := &ProjectsLocationsDatasetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1importdatarequest = googlecloudaiplatformv1importdatarequest 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 *ProjectsLocationsDatasetsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsImportCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { + 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 *ProjectsLocationsDatasetsImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsImportCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { 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 *ProjectsLocationsDatasetsImportCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1importdatarequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:import") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -40965,14 +48037,14 @@ func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.import" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41003,26 +48075,23 @@ func (c *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Imports data into a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.import", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:import", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ImportDataRequest" - // }, + // "path": "v1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -41033,74 +48102,53 @@ func (c *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.list": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list": -type ProjectsLocationsDatasetsListCall struct { +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Datasets in a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The name of the Dataset's parent resource. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall { - c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `display_name`: supports = and != * -// `metadata_schema_uri`: supports = and != * `labels` supports general -// map functions that is: * `labels.key=value` - key:value equality * -// `labels.key:* or labels:key - key existence * A key including a space -// must be quoted. `labels."a key". Some examples: * -// `displayName="myDisplayName" * `labels.myKey="myValue" -func (c *ProjectsLocationsDatasetsListCall) Filter(filter string) *ProjectsLocationsDatasetsListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { 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` -func (c *ProjectsLocationsDatasetsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41110,7 +48158,7 @@ func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -41118,21 +48166,21 @@ func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *Proje // 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 *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { 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 *ProjectsLocationsDatasetsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) 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_ { @@ -41145,7 +48193,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -41153,21 +48201,20 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListDatasetsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListDatasetsResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDatasetsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41186,7 +48233,7 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListDatasetsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41198,22 +48245,24 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Lists Datasets in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.list", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "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`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { @@ -41226,24 +48275,11 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/datasets", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListDatasetsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41255,7 +48291,7 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G // 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 *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDatasetsResponse) error) error { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) 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 { @@ -41273,40 +48309,47 @@ func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*G } } -// method id "aiplatform.projects.locations.datasets.patch": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait": -type ProjectsLocationsDatasetsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a Dataset. +// 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: Output only. The resource name of the Dataset. -func (r *ProjectsLocationsDatasetsService) Patch(name string, googlecloudaiplatformv1dataset *GoogleCloudAiplatformV1Dataset) *ProjectsLocationsDatasetsPatchCall { - c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1dataset = googlecloudaiplatformv1dataset return c } -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. For the `FieldMask` definition, -// see google.protobuf.FieldMask. Updatable fields: * `display_name` * -// `description` * `labels` -func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { + 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 *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41314,21 +48357,21 @@ func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { 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 *ProjectsLocationsDatasetsPatchCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) 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_ { @@ -41336,16 +48379,11 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1dataset) - 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -41356,14 +48394,14 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.patch" call. -// Exactly one of *GoogleCloudAiplatformV1Dataset or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Dataset.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Dataset, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41382,7 +48420,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Dataset{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41394,34 +48432,31 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Updates a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.datasets.patch", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of the Dataset.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels`", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Dataset" - // }, + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1Dataset" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41430,216 +48465,225 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.datasets.searchDataItems": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.cancel": -type ProjectsLocationsDatasetsSearchDataItemsCall struct { - s *Service - dataset string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SearchDataItems: Searches DataItems in a Dataset. +// 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`. // -// - dataset: The resource name of the Dataset from which to search -// DataItems. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) SearchDataItems(dataset string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c := &ProjectsLocationsDatasetsSearchDataItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.dataset = dataset - return c -} - -// AnnotationFilters sets the optional parameter "annotationFilters": An -// expression that specifies what Annotations will be returned per -// DataItem. Annotations satisfied either of the conditions will be -// returned. * `annotation_spec_id` - for = or !=. Must specify -// `saved_query_id=` - saved query id that annotations should belong to. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationFilters(annotationFilters ...string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.SetMulti("annotationFilters", append([]string{}, annotationFilters...)) - return c -} - -// AnnotationsFilter sets the optional parameter "annotationsFilter": An -// expression for filtering the Annotations that will be returned per -// DataItem. * `annotation_spec_id` - for = or !=. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsFilter(annotationsFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("annotationsFilter", annotationsFilter) - return c -} - -// AnnotationsLimit sets the optional parameter "annotationsLimit": If -// set, only up to this many of Annotations will be returned per -// DataItemView. The maximum value is 1000. If not set, the maximum -// value will be used. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsLimit(annotationsLimit int64) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("annotationsLimit", fmt.Sprint(annotationsLimit)) - return c -} - -// DataItemFilter sets the optional parameter "dataItemFilter": An -// expression for filtering the DataItem that will be returned. * -// `data_item_id` - for = or !=. * `labeled` - for = or !=. * -// `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that -// have at least one annotation with annotation_spec_id = -// `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. -// For example: * `data_item=1` * `has_annotation(5)` -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataItemFilter(dataItemFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("dataItemFilter", dataItemFilter) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// DataLabelingJob sets the optional parameter "dataLabelingJob": The -// resource name of a DataLabelingJob. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeli -// ng_job}` If this field is set, all of the search will be done in the -// context of this DataLabelingJob. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataLabelingJob(dataLabelingJob string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("dataLabelingJob", dataLabelingJob) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// FieldMask sets the optional parameter "fieldMask": Mask specifying -// which fields of DataItemView to read. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) FieldMask(fieldMask string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("fieldMask", fieldMask) +// 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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { + c.ctx_ = ctx 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. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderBy", orderBy) - return c +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// OrderByAnnotationOrderBy sets the optional parameter -// "orderByAnnotation.orderBy": A comma-separated list of annotation -// fields to order by, sorted in ascending order. Use "desc" after a -// field name for descending. Must also specify saved_query. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationOrderBy(orderByAnnotationOrderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderByAnnotation.orderBy", orderByAnnotationOrderBy) - return c +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) 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) } -// OrderByAnnotationSavedQuery sets the optional parameter -// "orderByAnnotation.savedQuery": Required. Saved query of the -// Annotation. Only Annotations belong to this saved query will be -// considered for ordering. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationSavedQuery(orderByAnnotationSavedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderByAnnotation.savedQuery", orderByAnnotationSavedQuery) - return c -} +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } -// OrderByDataItem sets the optional parameter "orderByDataItem": A -// comma-separated list of data item fields to order by, sorted in -// ascending order. Use "desc" after a field name for descending. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByDataItem(orderByDataItem string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderByDataItem", orderByDataItem) - return c } -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer results than requested. Default and maximum -// page size is 100. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} +// method id "aiplatform.projects.locations.datasets.dataItems.operations.delete": -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results for the server to return Typically -// obtained via SearchDataItemsResponse.next_page_token of the previous -// DatasetService.SearchDataItems call. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("pageToken", pageToken) - return c +type ProjectsLocationsDatasetsDataItemsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SavedQuery sets the optional parameter "savedQuery": The resource -// name of a SavedQuery(annotation set in UI). Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueri -// es/{saved_query}` All of the search will be done in the context of -// this SavedQuery. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) SavedQuery(savedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("savedQuery", savedQuery) +// 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 *ProjectsLocationsDatasetsDataItemsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsDeleteCall{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 *ProjectsLocationsDatasetsSearchDataItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSearchDataItemsCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsSearchDataItemsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSearchDataItemsCall { - 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 *ProjectsLocationsDatasetsSearchDataItemsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSearchDataItemsCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsSearchDataItemsCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) 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/{+dataset}:searchDataItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "dataset": c.dataset, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.searchDataItems" call. -// Exactly one of *GoogleCloudAiplatformV1SearchDataItemsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1SearchDataItemsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1SearchDataItemsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41658,7 +48702,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1SearchDataItemsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41670,97 +48714,25 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Searches DataItems in a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:searchDataItems", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.searchDataItems", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.delete", // "parameterOrder": [ - // "dataset" + // "name" // ], // "parameters": { - // "annotationFilters": { - // "description": "An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should belong to.", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "annotationsFilter": { - // "deprecated": true, - // "description": "An expression for filtering the Annotations that will be returned per DataItem. * `annotation_spec_id` - for = or !=.", - // "location": "query", - // "type": "string" - // }, - // "annotationsLimit": { - // "description": "If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is 1000. If not set, the maximum value will be used.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "dataItemFilter": { - // "description": "An expression for filtering the DataItem that will be returned. * `data_item_id` - for = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * `data_item=1` * `has_annotation(5)`", - // "location": "query", - // "type": "string" - // }, - // "dataLabelingJob": { - // "description": "The resource name of a DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this field is set, all of the search will be done in the context of this DataLabelingJob.", - // "location": "query", - // "type": "string" - // }, - // "dataset": { - // "description": "Required. The resource name of the Dataset from which to search DataItems. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "fieldMask": { - // "description": "Mask specifying which fields of DataItemView to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "deprecated": true, - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "type": "string" - // }, - // "orderByAnnotation.orderBy": { - // "description": "A comma-separated list of annotation fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Must also specify saved_query.", - // "location": "query", - // "type": "string" - // }, - // "orderByAnnotation.savedQuery": { - // "description": "Required. Saved query of the Annotation. Only Annotations belong to this saved query will be considered for ordering.", - // "location": "query", - // "type": "string" - // }, - // "orderByDataItem": { - // "description": "A comma-separated list of data item fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Server may return fewer results than requested. Default and maximum page size is 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results for the server to return Typically obtained via SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call.", - // "location": "query", - // "type": "string" - // }, - // "savedQuery": { - // "deprecated": true, - // "description": "The resource name of a SavedQuery(annotation set in UI). Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the search will be done in the context of this SavedQuery.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+dataset}:searchDataItems", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1SearchDataItemsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41769,30 +48741,9 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.Call } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1SearchDataItemsResponse) 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.datasets.annotationSpecs.get": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.get": -type ProjectsLocationsDatasetsAnnotationSpecsGetCall struct { +type ProjectsLocationsDatasetsDataItemsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -41801,28 +48752,21 @@ type ProjectsLocationsDatasetsAnnotationSpecsGetCall struct { header_ http.Header } -// Get: Gets an AnnotationSpec. +// 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 AnnotationSpec resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/annotati -// onSpecs/{annotation_spec}`. -func (r *ProjectsLocationsDatasetsAnnotationSpecsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41832,7 +48776,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -41840,21 +48784,21 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) 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_ { @@ -41880,15 +48824,14 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.get" call. -// Exactly one of *GoogleCloudAiplatformV1AnnotationSpec or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1AnnotationSpec.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AnnotationSpec, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41907,7 +48850,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1AnnotationSpec{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41919,31 +48862,25 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets an AnnotationSpec.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.get", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1AnnotationSpec" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41952,72 +48889,100 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.list": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// 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 resource to be cancelled. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { + 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsListCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { + 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsListCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) 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}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -42028,14 +48993,15 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) doRequest return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42054,7 +49020,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42066,25 +49032,41 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts . } 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", // "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}:cancel", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42093,9 +49075,30 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts . } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete": +// 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) 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) + } +} -type ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall struct { +// method id "aiplatform.projects.locations.datasets.dataItems.operations.wait": + +type ProjectsLocationsDatasetsDataItemsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -42103,22 +49106,37 @@ type ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall 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`. +// 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 be deleted. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsWaitCall{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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { + 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -42126,21 +49144,21 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) 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_ { @@ -42150,9 +49168,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -42163,14 +49181,14 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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.datasets.dataItems.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42189,7 +49207,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts . 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, @@ -42201,25 +49219,31 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts . } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/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}", + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42228,97 +49252,89 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts . } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.get": +// method id "aiplatform.projects.locations.datasets.datasetVersions.create": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion + 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. +// Create: Create a version from a Dataset. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { + c := &ProjectsLocationsDatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1datasetversion = googlecloudaiplatformv1datasetversion 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) 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.googlecloudaiplatformv1datasetversion) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasetVersions") 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.datasets.annotationSpecs.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42349,23 +49365,26 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...g } 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.get", + // "description": "Create a version from a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "parent": { + // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/datasetVersions", + // "request": { + // "$ref": "GoogleCloudAiplatformV1DatasetVersion" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -42376,100 +49395,65 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...g } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.list": +// method id "aiplatform.projects.locations.datasets.datasetVersions.delete": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// Delete: Deletes a Dataset version. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) List(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Dataset version to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV +// ersions/{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Delete(name string) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { + c := &ProjectsLocationsDatasetsDatasetVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -42480,15 +49464,14 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42507,7 +49490,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42519,41 +49502,25 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ... } 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.list", + // "description": "Deletes a Dataset version.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", // "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", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42562,102 +49529,86 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ... } -// 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) 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.datasets.annotationSpecs.operations.wait": +// method id "aiplatform.projects.locations.datasets.datasetVersions.get": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets a Dataset version. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Wait(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Dataset version to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV +// ersions/{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Get(name string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { + c := &ProjectsLocationsDatasetsDatasetVersionsGetCall{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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsGetCall { 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { + 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsGetCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -42668,14 +49619,15 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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.datasets.datasetVersions.get" call. +// Exactly one of *GoogleCloudAiplatformV1DatasetVersion or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1DatasetVersion.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DatasetVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42694,7 +49646,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1DatasetVersion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42706,31 +49658,31 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Do(opts ... } 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait", + // "description": "Gets a Dataset version.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", // "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", + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1DatasetVersion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42739,9 +49691,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Do(opts ... } -// method id "aiplatform.projects.locations.datasets.dataItems.list": +// method id "aiplatform.projects.locations.datasets.datasetVersions.list": -type ProjectsLocationsDatasetsDataItemsListCall struct { +type ProjectsLocationsDatasetsDatasetVersionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -42750,20 +49702,20 @@ type ProjectsLocationsDatasetsDataItemsListCall struct { header_ http.Header } -// List: Lists DataItems in a Dataset. +// List: Lists DatasetVersions in a Dataset. // -// - parent: The resource name of the Dataset to list DataItems from. -// Format: +// - parent: The resource name of the Dataset to list DatasetVersions +// from. Format: // `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsDataItemsService) List(parent string) *ProjectsLocationsDatasetsDataItemsListCall { - c := &ProjectsLocationsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsDatasetVersionsService) List(parent string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + c := &ProjectsLocationsDatasetsDatasetVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDatasetsDataItemsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Filter(filter string) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.urlParams_.Set("filter", filter) return c } @@ -42771,28 +49723,28 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) Filter(filter string) *Proj // 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. -func (c *ProjectsLocationsDatasetsDataItemsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // ReadMask sets the optional parameter "readMask": Mask specifying // which fields to read. -func (c *ProjectsLocationsDatasetsDataItemsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.urlParams_.Set("readMask", readMask) return c } @@ -42800,7 +49752,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) ReadMask(readMask string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -42810,7 +49762,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -42818,21 +49770,21 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) IfNoneMatch(entityTag strin // 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 *ProjectsLocationsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsListCall { 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 *ProjectsLocationsDatasetsDataItemsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) 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_ { @@ -42845,7 +49797,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) doRequest(alt string) (*htt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasetVersions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -42858,16 +49810,16 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListDataItemsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListDatasetVersionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListDataItemsResponse.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListDatasetVersionsResponse.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 *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDataItemsResponse, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDatasetVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42886,7 +49838,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListDataItemsResponse{ + ret := &GoogleCloudAiplatformV1ListDatasetVersionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42898,52 +49850,52 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Lists DataItems in a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems", + // "description": "Lists DatasetVersions in a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.list", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Optional. The standard list filter.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", // "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 Dataset to list DataItems from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // }, // "readMask": { - // "description": "Mask specifying which fields to read.", + // "description": "Optional. Mask specifying which fields to read.", // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/dataItems", + // "path": "v1/{+parent}/datasetVersions", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListDataItemsResponse" + // "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42955,7 +49907,7 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOp // 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 *ProjectsLocationsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDataItemsResponse) error) error { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDatasetVersionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -42973,69 +49925,32 @@ func (c *ProjectsLocationsDatasetsDataItemsListCall) Pages(ctx context.Context, } } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.list": +// method id "aiplatform.projects.locations.datasets.datasetVersions.restore": -type ProjectsLocationsDatasetsDataItemsAnnotationsListCall struct { +type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Annotations belongs to a dataitem +// Restore: Restores a dataset version. // -// - parent: The resource name of the DataItem to list Annotations from. -// Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/dataItem -// s/{data_item}`. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsService) List(parent string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - 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. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the DatasetVersion resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV +// ersions/{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(name string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { + c := &ProjectsLocationsDatasetsDatasetVersionsRestoreCall{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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43045,7 +49960,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Fields(s ...goog // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { c.ifNoneMatch_ = entityTag return c } @@ -43053,21 +49968,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) IfNoneMatch(enti // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) 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_ { @@ -43080,7 +49995,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) doRequest(alt st var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/annotations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restore") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43088,21 +50003,19 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) doRequest(alt st } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListAnnotationsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListAnnotationsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListAnnotationsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43121,7 +50034,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListAnnotationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -43133,52 +50046,25 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googl } return ret, nil // { - // "description": "Lists Annotations belongs to a dataitem", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations", + // "description": "Restores a dataset version.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.list", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.restore", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "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" - // }, - // "parent": { - // "description": "Required. The resource name of the DataItem to list Annotations from. Format: `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`", + // "name": { + // "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/annotations", + // "path": "v1/{+name}:restore", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListAnnotationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -43187,30 +50073,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googl } -// 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListAnnotationsResponse) 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.datasets.dataItems.annotations.operations.cancel": +// method id "aiplatform.projects.locations.datasets.operations.cancel": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall struct { +type ProjectsLocationsDatasetsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -43230,8 +50095,8 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsOperationsCancelCall { + c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -43239,7 +50104,7 @@ func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Cancel( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43247,21 +50112,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Fiel // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) 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_ { @@ -43284,14 +50149,14 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRe return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43323,9 +50188,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(o 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel", + // "id": "aiplatform.projects.locations.datasets.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -43333,7 +50198,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(o // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -43349,9 +50214,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(o } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete": +// method id "aiplatform.projects.locations.datasets.operations.delete": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall struct { +type ProjectsLocationsDatasetsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -43365,8 +50230,8 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *ProjectsLocationsDatasetsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -43374,7 +50239,7 @@ func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Delete( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43382,21 +50247,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Fiel // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) 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_ { @@ -43419,14 +50284,14 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) doRe return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43458,9 +50323,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(o 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete", + // "id": "aiplatform.projects.locations.datasets.operations.delete", // "parameterOrder": [ // "name" // ], @@ -43468,7 +50333,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(o // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -43484,9 +50349,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(o } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get": +// method id "aiplatform.projects.locations.datasets.operations.get": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall struct { +type ProjectsLocationsDatasetsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -43500,8 +50365,8 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall { + c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -43509,7 +50374,7 @@ func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Get(nam // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43519,7 +50384,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Fields( // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { +func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -43527,21 +50392,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) IfNoneM // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsGetCall) 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_ { @@ -43567,14 +50432,14 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doReque return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43606,9 +50471,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get", + // "id": "aiplatform.projects.locations.datasets.operations.get", // "parameterOrder": [ // "name" // ], @@ -43616,7 +50481,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -43632,9 +50497,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list": +// method id "aiplatform.projects.locations.datasets.operations.list": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall struct { +type ProjectsLocationsDatasetsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -43648,29 +50513,29 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { + c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -43678,7 +50543,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43688,7 +50553,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Fields // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -43696,21 +50561,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) IfNone // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsListCall) 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_ { @@ -43736,7 +50601,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequ return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list" call. +// Do executes the "aiplatform.projects.locations.datasets.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 @@ -43744,7 +50609,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequ // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43776,9 +50641,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opt 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list", + // "id": "aiplatform.projects.locations.datasets.operations.list", // "parameterOrder": [ // "name" // ], @@ -43791,7 +50656,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opt // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // }, @@ -43821,7 +50686,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opt // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDatasetsOperationsListCall) 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 { @@ -43839,9 +50704,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Pages( } } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait": +// method id "aiplatform.projects.locations.datasets.operations.wait": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall struct { +type ProjectsLocationsDatasetsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -43861,8 +50726,8 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsOperationsService) Wait(name string) *ProjectsLocationsDatasetsOperationsWaitCall { + c := &ProjectsLocationsDatasetsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -43871,7 +50736,7 @@ func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Wait(na // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -43879,7 +50744,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Timeou // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43887,21 +50752,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Fields // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsWaitCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsWaitCall) 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_ { @@ -43924,14 +50789,14 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) doRequ return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait" call. +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43963,9 +50828,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opt 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait", + // "id": "aiplatform.projects.locations.datasets.operations.wait", // "parameterOrder": [ // "name" // ], @@ -43973,7 +50838,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opt // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -43995,9 +50860,379 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opt } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.cancel": +// method id "aiplatform.projects.locations.datasets.savedQueries.delete": -type ProjectsLocationsDatasetsDataItemsOperationsCancelCall struct { +type ProjectsLocationsDatasetsSavedQueriesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a SavedQuery. +// +// - name: The resource name of the SavedQuery to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/savedQue +// ries/{saved_query}`. +func (r *ProjectsLocationsDatasetsSavedQueriesService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { + c := &ProjectsLocationsDatasetsSavedQueriesDeleteCall{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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { + 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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { + 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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) 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.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) 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": "Deletes a SavedQuery.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.savedQueries.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.datasets.savedQueries.list": + +type ProjectsLocationsDatasetsSavedQueriesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists SavedQueries in a Dataset. +// +// - parent: The resource name of the Dataset to list SavedQueries from. +// Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsSavedQueriesService) List(parent string) *ProjectsLocationsDatasetsSavedQueriesListCall { + c := &ProjectsLocationsDatasetsSavedQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesListCall { + 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. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSavedQueriesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsSavedQueriesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesListCall { + 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 *ProjectsLocationsDatasetsSavedQueriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesListCall { + 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesListCall { + 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) 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/{+parent}/savedQueries") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListSavedQueriesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListSavedQueriesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListSavedQueriesResponse, 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 := &GoogleCloudAiplatformV1ListSavedQueriesResponse{ + 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 SavedQueries in a Dataset.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.savedQueries.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "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" + // }, + // "parent": { + // "description": "Required. The resource name of the Dataset to list SavedQueries from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/savedQueries", + // "response": { + // "$ref": "GoogleCloudAiplatformV1ListSavedQueriesResponse" + // }, + // "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 *ProjectsLocationsDatasetsSavedQueriesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListSavedQueriesResponse) 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.datasets.savedQueries.operations.cancel": + +type ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44017,8 +51252,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Cancel(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44026,7 +51261,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Cancel(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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44034,21 +51269,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Fields(s ...goo // 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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) 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_ { @@ -44071,14 +51306,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44110,9 +51345,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...goog 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.cancel", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -44120,7 +51355,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -44136,9 +51371,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.delete": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.delete": -type ProjectsLocationsDatasetsDataItemsOperationsDeleteCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44152,8 +51387,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44161,7 +51396,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) 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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44169,21 +51404,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Fields(s ...goo // 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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) 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_ { @@ -44206,14 +51441,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44245,9 +51480,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...goog 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.delete", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.delete", // "parameterOrder": [ // "name" // ], @@ -44255,7 +51490,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -44271,9 +51506,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.get": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.get": -type ProjectsLocationsDatasetsDataItemsOperationsGetCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44287,8 +51522,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Get(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44296,7 +51531,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Get(name string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44306,7 +51541,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Fields(s ...google // 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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -44314,21 +51549,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) IfNoneMatch(entity // 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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) 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_ { @@ -44354,14 +51589,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44393,9 +51628,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googlea 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.get", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.get", // "parameterOrder": [ // "name" // ], @@ -44403,7 +51638,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googlea // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -44419,9 +51654,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.list": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.list": -type ProjectsLocationsDatasetsDataItemsOperationsListCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44435,29 +51670,29 @@ type ProjectsLocationsDatasetsDataItemsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) List(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -44465,7 +51700,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageToken(pageTok // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44475,7 +51710,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Fields(s ...googl // 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -44483,21 +51718,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) IfNoneMatch(entit // 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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_ { @@ -44523,7 +51758,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.list" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 @@ -44531,7 +51766,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt str // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44563,9 +51798,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...google 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.list", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.list", // "parameterOrder": [ // "name" // ], @@ -44578,7 +51813,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...google // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", // "required": true, // "type": "string" // }, @@ -44608,7 +51843,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...google // 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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 { @@ -44626,9 +51861,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Pages(ctx context } } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.wait": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.wait": -type ProjectsLocationsDatasetsDataItemsOperationsWaitCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44648,8 +51883,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Wait(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44658,7 +51893,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Wait(name string) // 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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -44666,7 +51901,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Timeout(timeout s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44674,21 +51909,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) 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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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_ { @@ -44711,14 +51946,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.wait" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44750,9 +51985,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...google 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.wait", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.wait", // "parameterOrder": [ // "name" // ], @@ -44760,7 +51995,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...google // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -44782,32 +52017,33 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...google } -// method id "aiplatform.projects.locations.datasets.datasetVersions.create": +// method id "aiplatform.projects.locations.deploymentResourcePools.create": -type ProjectsLocationsDatasetsDatasetVersionsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeploymentResourcePoolsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Create a version from a Dataset. +// Create: Create a DeploymentResourcePool. // -// - parent: The name of the Dataset resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1datasetversion *GoogleCloudAiplatformV1DatasetVersion) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { - c := &ProjectsLocationsDatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent location resource where this +// DeploymentResourcePool will be created. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) Create(parent string, googlecloudaiplatformv1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest) *ProjectsLocationsDeploymentResourcePoolsCreateCall { + c := &ProjectsLocationsDeploymentResourcePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1datasetversion = googlecloudaiplatformv1datasetversion + c.googlecloudaiplatformv1createdeploymentresourcepoolrequest = googlecloudaiplatformv1createdeploymentresourcepoolrequest 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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44815,21 +52051,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) 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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsCreateCall { 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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) 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_ { @@ -44837,14 +52073,14 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1datasetversion) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1createdeploymentresourcepoolrequest) 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/{+parent}/datasetVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deploymentResourcePools") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -44857,14 +52093,14 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.create" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44895,25 +52131,25 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Do(opts ...googleap } return ret, nil // { - // "description": "Create a version from a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", + // "description": "Create a DeploymentResourcePool.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.create", + // "id": "aiplatform.projects.locations.deploymentResourcePools.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/datasetVersions", + // "path": "v1/{+parent}/deploymentResourcePools", // "request": { - // "$ref": "GoogleCloudAiplatformV1DatasetVersion" + // "$ref": "GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -44925,9 +52161,9 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.datasets.datasetVersions.delete": +// method id "aiplatform.projects.locations.deploymentResourcePools.delete": -type ProjectsLocationsDatasetsDatasetVersionsDeleteCall struct { +type ProjectsLocationsDeploymentResourcePoolsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44935,13 +52171,13 @@ type ProjectsLocationsDatasetsDatasetVersionsDeleteCall struct { header_ http.Header } -// Delete: Deletes a Dataset version. +// Delete: Delete a DeploymentResourcePool. // -// - name: The resource name of the Dataset version to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV -// ersions/{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Delete(name string) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { - c := &ProjectsLocationsDatasetsDatasetVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DeploymentResourcePool to delete. Format: +// `projects/{project}/locations/{location}/deploymentResourcePools/{de +// ployment_resource_pool}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { + c := &ProjectsLocationsDeploymentResourcePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44949,7 +52185,7 @@ func (r *ProjectsLocationsDatasetsDatasetVersionsService) 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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44957,21 +52193,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) 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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { 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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) 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_ { @@ -44994,14 +52230,14 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.delete" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45032,18 +52268,18 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Deletes a Dataset version.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + // "description": "Delete a DeploymentResourcePool.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.delete", + // "id": "aiplatform.projects.locations.deploymentResourcePools.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + // "description": "Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" // } @@ -45059,9 +52295,9 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.datasets.datasetVersions.get": +// method id "aiplatform.projects.locations.deploymentResourcePools.get": -type ProjectsLocationsDatasetsDatasetVersionsGetCall struct { +type ProjectsLocationsDeploymentResourcePoolsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -45070,28 +52306,21 @@ type ProjectsLocationsDatasetsDatasetVersionsGetCall struct { header_ http.Header } -// Get: Gets a Dataset version. +// Get: Get a DeploymentResourcePool. // -// - name: The resource name of the Dataset version to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV -// ersions/{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Get(name string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { - c := &ProjectsLocationsDatasetsDatasetVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DeploymentResourcePool to retrieve. Format: +// `projects/{project}/locations/{location}/deploymentResourcePools/{de +// ployment_resource_pool}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsGetCall { + c := &ProjectsLocationsDeploymentResourcePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45101,7 +52330,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -45109,21 +52338,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsGetCall { 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) 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_ { @@ -45149,15 +52378,16 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.get" call. -// Exactly one of *GoogleCloudAiplatformV1DatasetVersion or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1DatasetVersion.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DatasetVersion, error) { +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.get" call. +// Exactly one of *GoogleCloudAiplatformV1DeploymentResourcePool or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1DeploymentResourcePool.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DeploymentResourcePool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45176,7 +52406,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1DatasetVersion{ + ret := &GoogleCloudAiplatformV1DeploymentResourcePool{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -45188,31 +52418,25 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets a Dataset version.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + // "description": "Get a DeploymentResourcePool.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.get", + // "id": "aiplatform.projects.locations.deploymentResourcePools.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + // "description": "Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1DatasetVersion" + // "$ref": "GoogleCloudAiplatformV1DeploymentResourcePool" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45221,9 +52445,9 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.datasets.datasetVersions.list": +// method id "aiplatform.projects.locations.deploymentResourcePools.list": -type ProjectsLocationsDatasetsDatasetVersionsListCall struct { +type ProjectsLocationsDeploymentResourcePoolsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -45232,57 +52456,39 @@ type ProjectsLocationsDatasetsDatasetVersionsListCall struct { header_ http.Header } -// List: Lists DatasetVersions in a Dataset. +// List: List DeploymentResourcePools in a location. // -// - parent: The resource name of the Dataset to list DatasetVersions -// from. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) List(parent string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c := &ProjectsLocationsDatasetsDatasetVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent Location which owns this collection of +// DeploymentResourcePools. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) List(parent string) *ProjectsLocationsDeploymentResourcePoolsListCall { + c := &ProjectsLocationsDeploymentResourcePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Filter(filter string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - 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. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDatasetVersionsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number +// of DeploymentResourcePools to return. The service may return fewer +// than this value. +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDatasetVersionsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDeploymentResourcePools` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListDeploymentResourcePools` must match the +// call that provided the page token. +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45292,7 +52498,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsListCall { c.ifNoneMatch_ = entityTag return c } @@ -45300,21 +52506,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsListCall { 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) 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_ { @@ -45327,7 +52533,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/datasetVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deploymentResourcePools") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45340,16 +52546,17 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListDatasetVersionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListDatasetVersionsResponse.ServerResponse.Hea -// der or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse.ServerResp +// onse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDatasetVersionsResponse, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45368,7 +52575,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListDatasetVersionsResponse{ + ret := &GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -45380,52 +52587,36 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists DatasetVersions in a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", + // "description": "List DeploymentResourcePools in a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.list", + // "id": "aiplatform.projects.locations.deploymentResourcePools.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. The standard list filter.", - // "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.", - // "location": "query", - // "type": "string" - // }, // "pageSize": { - // "description": "Optional. The standard list page size.", + // "description": "The maximum number of DeploymentResourcePools to return. The service may return fewer than this value.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. The standard list page token.", + // "description": "A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeploymentResourcePools` must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "Required. The parent Location which owns this collection of DeploymentResourcePools. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/datasetVersions", + // "path": "v1/{+parent}/deploymentResourcePools", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListDatasetVersionsResponse" + // "$ref": "GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45437,7 +52628,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDatasetVersionsResponse) error) error { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -45455,32 +52646,52 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.datasets.datasetVersions.restore": +// method id "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels": -type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall struct { + s *Service + deploymentResourcePool string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Restore: Restores a dataset version. +// QueryDeployedModels: List DeployedModels that have been deployed on +// this DeploymentResourcePool. // -// - name: The name of the DatasetVersion resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV -// ersions/{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(name string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { - c := &ProjectsLocationsDatasetsDatasetVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - deploymentResourcePool: The name of the target +// DeploymentResourcePool to query. Format: +// `projects/{project}/locations/{location}/deploymentResourcePools/{de +// ployment_resource_pool}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) QueryDeployedModels(deploymentResourcePool string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + c := &ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.deploymentResourcePool = deploymentResourcePool + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of DeployedModels to return. The service may return fewer than this +// value. +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `QueryDeployedModels` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `QueryDeployedModels` must match the call that provided +// the page token. +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45490,7 +52701,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...google // 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { c.ifNoneMatch_ = entityTag return c } @@ -45498,21 +52709,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entity // 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) 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_ { @@ -45525,7 +52736,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:restore") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+deploymentResourcePool}:queryDeployedModels") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45533,19 +52744,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "deploymentResourcePool": c.deploymentResourcePool, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels" call. +// Exactly one of *GoogleCloudAiplatformV1QueryDeployedModelsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1QueryDeployedModelsResponse.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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1QueryDeployedModelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45564,7 +52777,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1QueryDeployedModelsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -45576,25 +52789,36 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea } return ret, nil // { - // "description": "Restores a dataset version.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + // "description": "List DeployedModels that have been deployed on this DeploymentResourcePool.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}:queryDeployedModels", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.restore", + // "id": "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels", // "parameterOrder": [ - // "name" + // "deploymentResourcePool" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + // "deploymentResourcePool": { + // "description": "Required. The name of the target DeploymentResourcePool to query. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of DeployedModels to return. The service may return fewer than this value.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match the call that provided the page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:restore", + // "path": "v1/{+deploymentResourcePool}:queryDeployedModels", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1QueryDeployedModelsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45603,9 +52827,30 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.datasets.operations.cancel": +// 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1QueryDeployedModelsResponse) 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) + } +} -type ProjectsLocationsDatasetsOperationsCancelCall struct { +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.cancel": + +type ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -45625,8 +52870,8 @@ type ProjectsLocationsDatasetsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsOperationsCancelCall { - c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Cancel(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -45634,7 +52879,7 @@ func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45642,21 +52887,21 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { 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 *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) 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_ { @@ -45679,14 +52924,14 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45718,9 +52963,9 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal 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}/datasets/{datasetsId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.operations.cancel", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -45728,7 +52973,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -45744,9 +52989,9 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.datasets.operations.delete": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.delete": -type ProjectsLocationsDatasetsOperationsDeleteCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -45760,8 +53005,8 @@ type ProjectsLocationsDatasetsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *ProjectsLocationsDatasetsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -45769,7 +53014,7 @@ func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45777,21 +53022,21 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) 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_ { @@ -45814,14 +53059,14 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.delete" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45853,9 +53098,9 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.Cal 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}/datasets/{datasetsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.operations.delete", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.delete", // "parameterOrder": [ // "name" // ], @@ -45863,7 +53108,7 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -45879,9 +53124,9 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.datasets.operations.get": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.get": -type ProjectsLocationsDatasetsOperationsGetCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -45895,8 +53140,8 @@ type ProjectsLocationsDatasetsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall { - c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -45904,7 +53149,7 @@ func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsL // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45914,7 +53159,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -45922,21 +53167,21 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag strin // 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 *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { 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 *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) 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_ { @@ -45962,14 +53207,14 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.get" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46001,9 +53246,9 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp 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}/datasets/{datasetsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.operations.get", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.get", // "parameterOrder": [ // "name" // ], @@ -46011,7 +53256,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -46027,9 +53272,9 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.datasets.operations.list": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.list": -type ProjectsLocationsDatasetsOperationsListCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46043,29 +53288,29 @@ type ProjectsLocationsDatasetsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { - c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) List(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Filter(filter string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -46073,7 +53318,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46083,7 +53328,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -46091,21 +53336,21 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { 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 *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) 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_ { @@ -46131,7 +53376,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.list" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 @@ -46139,7 +53384,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*ht // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46171,9 +53416,9 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO 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}/datasets/{datasetsId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.operations.list", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.list", // "parameterOrder": [ // "name" // ], @@ -46186,7 +53431,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" // }, @@ -46216,7 +53461,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO // 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 *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) 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 { @@ -46234,9 +53479,9 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Pages(ctx context.Context, } } -// method id "aiplatform.projects.locations.datasets.operations.wait": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.wait": -type ProjectsLocationsDatasetsOperationsWaitCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46256,8 +53501,8 @@ type ProjectsLocationsDatasetsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsOperationsService) Wait(name string) *ProjectsLocationsDatasetsOperationsWaitCall { - c := &ProjectsLocationsDatasetsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Wait(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -46266,7 +53511,7 @@ func (r *ProjectsLocationsDatasetsOperationsService) Wait(name string) *Projects // 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 *ProjectsLocationsDatasetsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -46274,7 +53519,7 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Timeout(timeout 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 *ProjectsLocationsDatasetsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46282,21 +53527,21 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsDatasetsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { 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 *ProjectsLocationsDatasetsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) 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_ { @@ -46319,14 +53564,14 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.operations.wait" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46358,9 +53603,9 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallO 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}/datasets/{datasetsId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.operations.wait", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.wait", // "parameterOrder": [ // "name" // ], @@ -46368,7 +53613,7 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallO // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -46387,274 +53632,94 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallO // "https://www.googleapis.com/auth/cloud-platform" // ] // } - -} - -// method id "aiplatform.projects.locations.datasets.savedQueries.delete": - -type ProjectsLocationsDatasetsSavedQueriesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a SavedQuery. -// -// - name: The resource name of the SavedQuery to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/savedQue -// ries/{saved_query}`. -func (r *ProjectsLocationsDatasetsSavedQueriesService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { - c := &ProjectsLocationsDatasetsSavedQueriesDeleteCall{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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { - 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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { - 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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) 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.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) 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": "Deletes a SavedQuery.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.savedQueries.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.datasets.savedQueries.list": - -type ProjectsLocationsDatasetsSavedQueriesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists SavedQueries in a Dataset. -// -// - parent: The resource name of the Dataset to list SavedQueries from. -// Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsSavedQueriesService) List(parent string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c := &ProjectsLocationsDatasetsSavedQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesListCall { - 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. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c + } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +// method id "aiplatform.projects.locations.endpoints.computeTokens": + +type ProjectsLocationsEndpointsComputeTokensCall struct { + s *Service + endpoint string + googlecloudaiplatformv1computetokensrequest *GoogleCloudAiplatformV1ComputeTokensRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("readMask", readMask) +// ComputeTokens: Return a list of tokens based on the input text. +// +// - endpoint: The name of the Endpoint requested to get lists of tokens +// and token ids. +func (r *ProjectsLocationsEndpointsService) ComputeTokens(endpoint string, googlecloudaiplatformv1computetokensrequest *GoogleCloudAiplatformV1ComputeTokensRequest) *ProjectsLocationsEndpointsComputeTokensCall { + c := &ProjectsLocationsEndpointsComputeTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1computetokensrequest = googlecloudaiplatformv1computetokensrequest 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesListCall { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsComputeTokensCall { 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 *ProjectsLocationsDatasetsSavedQueriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesListCall { - 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesListCall { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsComputeTokensCall { 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsComputeTokensCall) 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.googlecloudaiplatformv1computetokensrequest) + 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/{+parent}/savedQueries") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:computeTokens") 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{ - "parent": c.parent, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListSavedQueriesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.endpoints.computeTokens" call. +// Exactly one of *GoogleCloudAiplatformV1ComputeTokensResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListSavedQueriesResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// +// *GoogleCloudAiplatformV1ComputeTokensResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListSavedQueriesResponse, error) { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ComputeTokensResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46673,7 +53738,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListSavedQueriesResponse{ + ret := &GoogleCloudAiplatformV1ComputeTokensResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -46685,52 +53750,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Lists SavedQueries in a Dataset.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.savedQueries.list", + // "description": "Return a list of tokens based on the input text.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:computeTokens", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.computeTokens", // "parameterOrder": [ - // "parent" + // "endpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "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" - // }, - // "parent": { - // "description": "Required. The resource name of the Dataset to list SavedQueries from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/savedQueries", + // "path": "v1/{+endpoint}:computeTokens", + // "request": { + // "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1ListSavedQueriesResponse" + // "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -46739,59 +53780,33 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.Cal } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListSavedQueriesResponse) 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.datasets.savedQueries.operations.cancel": +// method id "aiplatform.projects.locations.endpoints.countTokens": -type ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsCountTokensCall struct { + s *Service + endpoint string + googlecloudaiplatformv1counttokensrequest *GoogleCloudAiplatformV1CountTokensRequest + 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`. +// CountTokens: Perform a token counting. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Cancel(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to perform token +// counting. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) CountTokens(endpoint string, googlecloudaiplatformv1counttokensrequest *GoogleCloudAiplatformV1CountTokensRequest) *ProjectsLocationsEndpointsCountTokensCall { + c := &ProjectsLocationsEndpointsCountTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1counttokensrequest = googlecloudaiplatformv1counttokensrequest 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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { +func (c *ProjectsLocationsEndpointsCountTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCountTokensCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46799,21 +53814,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { +func (c *ProjectsLocationsEndpointsCountTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCountTokensCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsCountTokensCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsCountTokensCall) 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_ { @@ -46821,9 +53836,14 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1counttokensrequest) + 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/{+endpoint}:countTokens") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -46831,19 +53851,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.endpoints.countTokens" call. +// Exactly one of *GoogleCloudAiplatformV1CountTokensResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1CountTokensResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CountTokensResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46862,7 +53884,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1CountTokensResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -46874,25 +53896,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", + // "description": "Perform a token counting.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.cancel", + // "id": "aiplatform.projects.locations.endpoints.countTokens", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+endpoint}:countTokens", + // "request": { + // "$ref": "GoogleCloudAiplatformV1CountTokensRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1CountTokensResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -46901,32 +53926,48 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...g } -// method id "aiplatform.projects.locations.datasets.savedQueries.operations.delete": +// method id "aiplatform.projects.locations.endpoints.create": -type ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint + 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`. +// Create: Creates an Endpoint. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the Endpoint +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEndpointsService) Create(parent string, googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint) *ProjectsLocationsEndpointsCreateCall { + c := &ProjectsLocationsEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1endpoint = googlecloudaiplatformv1endpoint + return c +} + +// EndpointId sets the optional parameter "endpointId": Immutable. The +// ID to use for endpoint, which will become the final component of the +// endpoint resource name. If not provided, Vertex AI will generate a +// value for this ID. If the first character is a letter, this value may +// be up to 63 characters, and valid characters are `[a-z0-9-]`. The +// last character must be a letter or number. If the first character is +// a number, this value may be up to 9 characters, and valid characters +// are `[0-9]` with no leading zeros. When using HTTP/JSON, this field +// is populated based on a query string argument, such as +// `?endpoint_id=12345`. This is the fallback for fields that are not +// included in either the URI or the body. +func (c *ProjectsLocationsEndpointsCreateCall) EndpointId(endpointId string) *ProjectsLocationsEndpointsCreateCall { + c.urlParams_.Set("endpointId", endpointId) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46934,21 +53975,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCreateCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsCreateCall) 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_ { @@ -46956,29 +53997,34 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1endpoint) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.datasets.savedQueries.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.endpoints.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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46997,7 +54043,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...g 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, @@ -47009,25 +54055,33 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.delete", + // "description": "Creates an Endpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "endpointId": { + // "description": "Immutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID. If the first character is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last character must be a letter or number. If the first character is a number, this value may be up to 9 characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the fallback for fields that are not included in either the URI or the body.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create the Endpoint in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/endpoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Endpoint" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47036,24 +54090,22 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...g } -// method id "aiplatform.projects.locations.datasets.savedQueries.operations.get": +// method id "aiplatform.projects.locations.endpoints.delete": -type ProjectsLocationsDatasetsSavedQueriesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsDeleteCall struct { + s *Service + name string + 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. +// Delete: Deletes an Endpoint. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Get(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Endpoint resource to be deleted. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Delete(name string) *ProjectsLocationsEndpointsDeleteCall { + c := &ProjectsLocationsEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -47061,54 +54113,41 @@ func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Get(name string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { +func (c *ProjectsLocationsEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeleteCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { - 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { +func (c *ProjectsLocationsEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeleteCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -47119,14 +54158,14 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.operations.get" call. +// Do executes the "aiplatform.projects.locations.endpoints.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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47157,18 +54196,18 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.get", + // "description": "Deletes an Endpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.endpoints.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the Endpoint resource to be deleted. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } @@ -47184,119 +54223,91 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.datasets.savedQueries.operations.list": +// method id "aiplatform.projects.locations.endpoints.deployModel": -type ProjectsLocationsDatasetsSavedQueriesOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsDeployModelCall struct { + s *Service + endpoint string + googlecloudaiplatformv1deploymodelrequest *GoogleCloudAiplatformV1DeployModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// DeployModel: Deploys a Model into this Endpoint, creating a +// DeployedModel within it. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) List(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - endpoint: The name of the Endpoint resource into which to deploy a +// Model. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) DeployModel(endpoint string, googlecloudaiplatformv1deploymodelrequest *GoogleCloudAiplatformV1DeployModelRequest) *ProjectsLocationsEndpointsDeployModelCall { + c := &ProjectsLocationsEndpointsDeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1deploymodelrequest = googlecloudaiplatformv1deploymodelrequest 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { +func (c *ProjectsLocationsEndpointsDeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeployModelCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { +func (c *ProjectsLocationsEndpointsDeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeployModelCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDeployModelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDeployModelCall) 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.googlecloudaiplatformv1deploymodelrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:deployModel") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 +// Do executes the "aiplatform.projects.locations.endpoints.deployModel" 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47315,7 +54326,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47327,41 +54338,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.list", + // "description": "Deploys a Model into this Endpoint, creating a DeployedModel within it.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:deployModel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.deployModel", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint resource into which to deploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+endpoint}:deployModel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1DeployModelRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47370,68 +54368,34 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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.datasets.savedQueries.operations.wait": +// method id "aiplatform.projects.locations.endpoints.directPredict": -type ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsDirectPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1directpredictrequest *GoogleCloudAiplatformV1DirectPredictRequest + 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. +// DirectPredict: Perform an unary online prediction request for Vertex +// first-party products and frameworks. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Wait(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall{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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) DirectPredict(endpoint string, googlecloudaiplatformv1directpredictrequest *GoogleCloudAiplatformV1DirectPredictRequest) *ProjectsLocationsEndpointsDirectPredictCall { + c := &ProjectsLocationsEndpointsDirectPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1directpredictrequest = googlecloudaiplatformv1directpredictrequest 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsDirectPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -47439,21 +54403,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsDirectPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectPredictCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDirectPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDirectPredictCall) 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_ { @@ -47461,9 +54425,14 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1directpredictrequest) + 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/{+endpoint}:directPredict") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -47471,19 +54440,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.directPredict" call. +// Exactly one of *GoogleCloudAiplatformV1DirectPredictResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1DirectPredictResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DirectPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47502,7 +54473,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1DirectPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47514,31 +54485,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", + // "description": "Perform an unary online prediction request for Vertex first-party products and frameworks.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directPredict", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.wait", + // "id": "aiplatform.projects.locations.endpoints.directPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+endpoint}:directPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1DirectPredictRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1DirectPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47547,33 +54515,33 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.deploymentResourcePools.create": +// method id "aiplatform.projects.locations.endpoints.directRawPredict": -type ProjectsLocationsDeploymentResourcePoolsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsDirectRawPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1directrawpredictrequest *GoogleCloudAiplatformV1DirectRawPredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Create a DeploymentResourcePool. +// DirectRawPredict: Perform an online prediction request through gRPC. // -// - parent: The parent location resource where this -// DeploymentResourcePool will be created. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) Create(parent string, googlecloudaiplatformv1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest) *ProjectsLocationsDeploymentResourcePoolsCreateCall { - c := &ProjectsLocationsDeploymentResourcePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1createdeploymentresourcepoolrequest = googlecloudaiplatformv1createdeploymentresourcepoolrequest +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) DirectRawPredict(endpoint string, googlecloudaiplatformv1directrawpredictrequest *GoogleCloudAiplatformV1DirectRawPredictRequest) *ProjectsLocationsEndpointsDirectRawPredictCall { + c := &ProjectsLocationsEndpointsDirectRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1directrawpredictrequest = googlecloudaiplatformv1directrawpredictrequest 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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsCreateCall { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectRawPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -47581,21 +54549,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) 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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsCreateCall { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectRawPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) 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_ { @@ -47603,14 +54571,14 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1createdeploymentresourcepoolrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1directrawpredictrequest) 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/{+parent}/deploymentResourcePools") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:directRawPredict") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -47618,19 +54586,23 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt strin } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.directRawPredict" call. +// Exactly one of *GoogleCloudAiplatformV1DirectRawPredictResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1DirectRawPredictResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DirectRawPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47649,7 +54621,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1DirectRawPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47661,28 +54633,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleap } return ret, nil // { - // "description": "Create a DeploymentResourcePool.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", + // "description": "Perform an online prediction request through gRPC.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directRawPredict", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.deploymentResourcePools.create", + // "id": "aiplatform.projects.locations.endpoints.directRawPredict", // "parameterOrder": [ - // "parent" + // "endpoint" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/deploymentResourcePools", + // "path": "v1/{+endpoint}:directRawPredict", // "request": { - // "$ref": "GoogleCloudAiplatformV1CreateDeploymentResourcePoolRequest" + // "$ref": "GoogleCloudAiplatformV1DirectRawPredictRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1DirectRawPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47691,31 +54663,36 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.deploymentResourcePools.delete": +// method id "aiplatform.projects.locations.endpoints.explain": -type ProjectsLocationsDeploymentResourcePoolsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsExplainCall struct { + s *Service + endpoint string + googlecloudaiplatformv1explainrequest *GoogleCloudAiplatformV1ExplainRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Delete a DeploymentResourcePool. +// Explain: Perform an online explanation. If deployed_model_id is +// specified, the corresponding DeployModel must have explanation_spec +// populated. If deployed_model_id is not specified, all DeployedModels +// must have explanation_spec populated. // -// - name: The name of the DeploymentResourcePool to delete. Format: -// `projects/{project}/locations/{location}/deploymentResourcePools/{de -// ployment_resource_pool}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { - c := &ProjectsLocationsDeploymentResourcePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// explanation. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Explain(endpoint string, googlecloudaiplatformv1explainrequest *GoogleCloudAiplatformV1ExplainRequest) *ProjectsLocationsEndpointsExplainCall { + c := &ProjectsLocationsEndpointsExplainCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1explainrequest = googlecloudaiplatformv1explainrequest 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { +func (c *ProjectsLocationsEndpointsExplainCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsExplainCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -47723,21 +54700,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { +func (c *ProjectsLocationsEndpointsExplainCall) Context(ctx context.Context) *ProjectsLocationsEndpointsExplainCall { 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsExplainCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsExplainCall) 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_ { @@ -47745,29 +54722,35 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1explainrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:explain") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 +// Do executes the "aiplatform.projects.locations.endpoints.explain" call. +// Exactly one of *GoogleCloudAiplatformV1ExplainResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1ExplainResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ExplainResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47786,7 +54769,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ExplainResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47798,25 +54781,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Delete a DeploymentResourcePool.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.deploymentResourcePools.delete", + // "description": "Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels must have explanation_spec populated.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:explain", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.explain", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the explanation. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+endpoint}:explain", + // "request": { + // "$ref": "GoogleCloudAiplatformV1ExplainRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ExplainResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47825,9 +54811,9 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.deploymentResourcePools.get": +// method id "aiplatform.projects.locations.endpoints.get": -type ProjectsLocationsDeploymentResourcePoolsGetCall struct { +type ProjectsLocationsEndpointsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -47836,13 +54822,12 @@ type ProjectsLocationsDeploymentResourcePoolsGetCall struct { header_ http.Header } -// Get: Get a DeploymentResourcePool. +// Get: Gets an Endpoint. // -// - name: The name of the DeploymentResourcePool to retrieve. Format: -// `projects/{project}/locations/{location}/deploymentResourcePools/{de -// ployment_resource_pool}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsGetCall { - c := &ProjectsLocationsDeploymentResourcePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Endpoint resource. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Get(name string) *ProjectsLocationsEndpointsGetCall { + c := &ProjectsLocationsEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -47850,7 +54835,7 @@ func (r *ProjectsLocationsDeploymentResourcePoolsService) 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsGetCall { +func (c *ProjectsLocationsEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -47860,7 +54845,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsGetCall { +func (c *ProjectsLocationsEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -47868,21 +54853,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsGetCall { +func (c *ProjectsLocationsEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsGetCall { 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsGetCall) 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_ { @@ -47908,16 +54893,14 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.get" call. -// Exactly one of *GoogleCloudAiplatformV1DeploymentResourcePool or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1DeploymentResourcePool.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DeploymentResourcePool, error) { +// Do executes the "aiplatform.projects.locations.endpoints.get" call. +// Exactly one of *GoogleCloudAiplatformV1Endpoint or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Endpoint.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Endpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47936,7 +54919,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1DeploymentResourcePool{ + ret := &GoogleCloudAiplatformV1Endpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47948,25 +54931,25 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Get a DeploymentResourcePool.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", + // "description": "Gets an Endpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.get", + // "id": "aiplatform.projects.locations.endpoints.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + // "description": "Required. The name of the Endpoint resource. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1DeploymentResourcePool" + // "$ref": "GoogleCloudAiplatformV1Endpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47975,9 +54958,9 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.deploymentResourcePools.list": +// method id "aiplatform.projects.locations.endpoints.list": -type ProjectsLocationsDeploymentResourcePoolsListCall struct { +type ProjectsLocationsEndpointsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -47986,39 +54969,68 @@ type ProjectsLocationsDeploymentResourcePoolsListCall struct { header_ http.Header } -// List: List DeploymentResourcePools in a location. +// List: Lists Endpoints in a Location. // -// - parent: The parent Location which owns this collection of -// DeploymentResourcePools. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) List(parent string) *ProjectsLocationsDeploymentResourcePoolsListCall { - c := &ProjectsLocationsDeploymentResourcePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location from which to list the +// Endpoints. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEndpointsService) List(parent string) *ProjectsLocationsEndpointsListCall { + c := &ProjectsLocationsEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of DeploymentResourcePools to return. The service may return fewer -// than this value. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsListCall { +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `endpoint` supports = and !=. +// `endpoint` represents the Endpoint ID, i.e. the last segment of the +// Endpoint's resource name. * `display_name` supports = and, != * +// `labels` supports general map functions that is: * `labels.key=value` +// - key:value equality * `labels.key:* or labels:key - key existence * +// A key including a space must be quoted. `labels."a key". Some +// examples: * `endpoint=1` * `displayName="myDisplayName" * +// `labels.myKey="myValue" +func (c *ProjectsLocationsEndpointsListCall) Filter(filter string) *ProjectsLocationsEndpointsListCall { + 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 *ProjectsLocationsEndpointsListCall) OrderBy(orderBy string) *ProjectsLocationsEndpointsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListDeploymentResourcePools` call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListDeploymentResourcePools` must match the -// call that provided the page token. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListEndpointsResponse.next_page_token of the previous +// EndpointService.ListEndpoints call. +func (c *ProjectsLocationsEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsEndpointsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsListCall { +func (c *ProjectsLocationsEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48028,7 +55040,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) 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 *ProjectsLocationsDeploymentResourcePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsListCall { +func (c *ProjectsLocationsEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsListCall { c.ifNoneMatch_ = entityTag return c } @@ -48036,21 +55048,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsListCall { +func (c *ProjectsLocationsEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsListCall { 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsListCall) 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_ { @@ -48063,7 +55075,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deploymentResourcePools") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -48076,17 +55088,16 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse or error +// Do executes the "aiplatform.projects.locations.endpoints.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListEndpointsResponse or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse.ServerResp -// onse.Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListEndpointsResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse, error) { +func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEndpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48105,7 +55116,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse{ + ret := &GoogleCloudAiplatformV1ListEndpointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48117,36 +55128,52 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "List DeploymentResourcePools in a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", + // "description": "Lists Endpoints in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.list", + // "id": "aiplatform.projects.locations.endpoints.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "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 maximum number of DeploymentResourcePools to return. The service may return fewer than this value.", + // "description": "Optional. The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeploymentResourcePools` must match the call that provided the page token.", + // "description": "Optional. The standard list page token. Typically obtained via ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The parent Location which owns this collection of DeploymentResourcePools. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location from which to list the Endpoints. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/deploymentResourcePools", + // "path": "v1/{+parent}/endpoints", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse" + // "$ref": "GoogleCloudAiplatformV1ListEndpointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48158,7 +55185,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponse) error) error { +func (c *ProjectsLocationsEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEndpointsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -48176,119 +55203,93 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels": +// method id "aiplatform.projects.locations.endpoints.mutateDeployedModel": -type ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall struct { - s *Service - deploymentResourcePool string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsMutateDeployedModelCall struct { + s *Service + endpoint string + googlecloudaiplatformv1mutatedeployedmodelrequest *GoogleCloudAiplatformV1MutateDeployedModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryDeployedModels: List DeployedModels that have been deployed on -// this DeploymentResourcePool. +// MutateDeployedModel: Updates an existing deployed model. Updatable +// fields include `min_replica_count`, `max_replica_count`, +// `autoscaling_metric_specs`, `disable_container_logging` (v1 only), +// and `enable_container_logging` (v1beta1 only). // -// - deploymentResourcePool: The name of the target -// DeploymentResourcePool to query. Format: -// `projects/{project}/locations/{location}/deploymentResourcePools/{de -// ployment_resource_pool}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) QueryDeployedModels(deploymentResourcePool string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - c := &ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.deploymentResourcePool = deploymentResourcePool - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of DeployedModels to return. The service may return fewer than this -// value. -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `QueryDeployedModels` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `QueryDeployedModels` must match the call that provided -// the page token. -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - c.urlParams_.Set("pageToken", pageToken) +// - endpoint: The name of the Endpoint resource into which to mutate a +// DeployedModel. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) MutateDeployedModel(endpoint string, googlecloudaiplatformv1mutatedeployedmodelrequest *GoogleCloudAiplatformV1MutateDeployedModelRequest) *ProjectsLocationsEndpointsMutateDeployedModelCall { + c := &ProjectsLocationsEndpointsMutateDeployedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1mutatedeployedmodelrequest = googlecloudaiplatformv1mutatedeployedmodelrequest 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsMutateDeployedModelCall { 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsMutateDeployedModelCall { 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) 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.googlecloudaiplatformv1mutatedeployedmodelrequest) + 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/{+deploymentResourcePool}:queryDeployedModels") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:mutateDeployedModel") 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{ - "deploymentResourcePool": c.deploymentResourcePool, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels" call. -// Exactly one of *GoogleCloudAiplatformV1QueryDeployedModelsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1QueryDeployedModelsResponse.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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1QueryDeployedModelsResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.mutateDeployedModel" 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48307,7 +55308,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1QueryDeployedModelsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48319,36 +55320,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opt } return ret, nil // { - // "description": "List DeployedModels that have been deployed on this DeploymentResourcePool.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}:queryDeployedModels", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels", + // "description": "Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only).", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:mutateDeployedModel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.mutateDeployedModel", // "parameterOrder": [ - // "deploymentResourcePool" + // "endpoint" // ], // "parameters": { - // "deploymentResourcePool": { - // "description": "Required. The name of the target DeploymentResourcePool to query. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of DeployedModels to return. The service may return fewer than this value.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match the call that provided the page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+deploymentResourcePool}:queryDeployedModels", + // "path": "v1/{+endpoint}:mutateDeployedModel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1MutateDeployedModelRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1QueryDeployedModelsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48357,59 +55350,38 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opt } -// 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1QueryDeployedModelsResponse) 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.deploymentResourcePools.operations.cancel": +// method id "aiplatform.projects.locations.endpoints.patch": -type ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint + 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`. +// Patch: Updates an Endpoint. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Cancel(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Endpoint. +func (r *ProjectsLocationsEndpointsService) Patch(name string, googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint) *ProjectsLocationsEndpointsPatchCall { + c := &ProjectsLocationsEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1endpoint = googlecloudaiplatformv1endpoint + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. See google.protobuf.FieldMask. +func (c *ProjectsLocationsEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointsPatchCall { + 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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { +func (c *ProjectsLocationsEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48417,21 +55389,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { +func (c *ProjectsLocationsEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPatchCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsPatchCall) 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_ { @@ -48439,11 +55411,16 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1endpoint) + 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/{+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 } @@ -48454,14 +55431,14 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 +// Do executes the "aiplatform.projects.locations.endpoints.patch" call. +// Exactly one of *GoogleCloudAiplatformV1Endpoint or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Endpoint.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Endpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48480,7 +55457,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1Endpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48492,25 +55469,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts . } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.cancel", + // "description": "Updates an Endpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.endpoints.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "Output only. The resource name of the Endpoint.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Endpoint" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1Endpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48519,32 +55505,33 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts . } -// method id "aiplatform.projects.locations.deploymentResourcePools.operations.delete": +// method id "aiplatform.projects.locations.endpoints.predict": -type ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1predictrequest *GoogleCloudAiplatformV1PredictRequest + 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`. +// Predict: Perform an online prediction. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Predict(endpoint string, googlecloudaiplatformv1predictrequest *GoogleCloudAiplatformV1PredictRequest) *ProjectsLocationsEndpointsPredictCall { + c := &ProjectsLocationsEndpointsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1predictrequest = googlecloudaiplatformv1predictrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48552,21 +55539,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsPredictCall) 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_ { @@ -48574,29 +55561,35 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) doRequest } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1predictrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:predict") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 +// Do executes the "aiplatform.projects.locations.endpoints.predict" call. +// Exactly one of *GoogleCloudAiplatformV1PredictResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1PredictResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1PredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48615,7 +55608,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1PredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48627,25 +55620,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts . } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.delete", + // "description": "Perform an online prediction.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.predict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+endpoint}:predict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1PredictRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1PredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48654,97 +55650,94 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts . } -// method id "aiplatform.projects.locations.deploymentResourcePools.operations.get": +// method id "aiplatform.projects.locations.endpoints.rawPredict": -type ProjectsLocationsDeploymentResourcePoolsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsRawPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1rawpredictrequest *GoogleCloudAiplatformV1RawPredictRequest + 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. +// RawPredict: Perform an online prediction with an arbitrary HTTP +// payload. The response includes the following HTTP headers: * +// `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this +// prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's +// DeployedModel that served this prediction. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) RawPredict(endpoint string, googlecloudaiplatformv1rawpredictrequest *GoogleCloudAiplatformV1RawPredictRequest) *ProjectsLocationsEndpointsRawPredictCall { + c := &ProjectsLocationsEndpointsRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1rawpredictrequest = googlecloudaiplatformv1rawpredictrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { +func (c *ProjectsLocationsEndpointsRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsRawPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { - 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { +func (c *ProjectsLocationsEndpointsRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsRawPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsRawPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsRawPredictCall) 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.googlecloudaiplatformv1rawpredictrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:rawPredict") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 +// Do executes the "aiplatform.projects.locations.endpoints.rawPredict" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48763,7 +55756,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48775,25 +55768,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...g } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.get", + // "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:rawPredict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.rawPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+endpoint}:rawPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1RawPredictRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48802,119 +55798,95 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...g } -// method id "aiplatform.projects.locations.deploymentResourcePools.operations.list": - -type ProjectsLocationsDeploymentResourcePoolsOperationsListCall 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 *ProjectsLocationsDeploymentResourcePoolsOperationsService) List(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Filter(filter string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} +// method id "aiplatform.projects.locations.endpoints.serverStreamingPredict": -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type ProjectsLocationsEndpointsServerStreamingPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1streamingpredictrequest *GoogleCloudAiplatformV1StreamingPredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// ServerStreamingPredict: Perform a server-side streaming online +// prediction request for Vertex LLM streaming. +// +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) ServerStreamingPredict(endpoint string, googlecloudaiplatformv1streamingpredictrequest *GoogleCloudAiplatformV1StreamingPredictRequest) *ProjectsLocationsEndpointsServerStreamingPredictCall { + c := &ProjectsLocationsEndpointsServerStreamingPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1streamingpredictrequest = googlecloudaiplatformv1streamingpredictrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsServerStreamingPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsServerStreamingPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) 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.googlecloudaiplatformv1streamingpredictrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:serverStreamingPredict") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.serverStreamingPredict" call. +// Exactly one of *GoogleCloudAiplatformV1StreamingPredictResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1StreamingPredictResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1StreamingPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48933,7 +55905,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1StreamingPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48945,41 +55917,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ... } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.list", + // "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:serverStreamingPredict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.serverStreamingPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+endpoint}:serverStreamingPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1StreamingPredictRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1StreamingPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48988,68 +55947,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ... } -// 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) 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.deploymentResourcePools.operations.wait": +// method id "aiplatform.projects.locations.endpoints.streamGenerateContent": -type ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsStreamGenerateContentCall struct { + s *Service + model string + googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest + 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. +// StreamGenerateContent: Generate content with multimodal inputs with +// streaming support. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Wait(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall{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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - model: The name of the publisher model requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/publishers/*/models/*`. +func (r *ProjectsLocationsEndpointsService) StreamGenerateContent(model string, googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest) *ProjectsLocationsEndpointsStreamGenerateContentCall { + c := &ProjectsLocationsEndpointsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1generatecontentrequest = googlecloudaiplatformv1generatecontentrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsStreamGenerateContentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49057,21 +55982,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsEndpointsStreamGenerateContentCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) 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_ { @@ -49079,9 +56004,14 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1generatecontentrequest) + 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/{+model}:streamGenerateContent") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49089,19 +56019,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "model": c.model, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. +// Exactly one of *GoogleCloudAiplatformV1GenerateContentResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1GenerateContentResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateContentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49120,7 +56052,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1GenerateContentResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49132,31 +56064,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ... } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", + // "description": "Generate content with multimodal inputs with streaming support.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamGenerateContent", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.wait", + // "id": "aiplatform.projects.locations.endpoints.streamGenerateContent", // "parameterOrder": [ - // "name" + // "model" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "model": { + // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+model}:streamGenerateContent", + // "request": { + // "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49165,32 +56094,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ... } -// method id "aiplatform.projects.locations.endpoints.computeTokens": +// method id "aiplatform.projects.locations.endpoints.undeployModel": -type ProjectsLocationsEndpointsComputeTokensCall struct { +type ProjectsLocationsEndpointsUndeployModelCall struct { s *Service endpoint string - googlecloudaiplatformv1computetokensrequest *GoogleCloudAiplatformV1ComputeTokensRequest + googlecloudaiplatformv1undeploymodelrequest *GoogleCloudAiplatformV1UndeployModelRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// ComputeTokens: Return a list of tokens based on the input text. +// UndeployModel: Undeploys a Model from an Endpoint, removing a +// DeployedModel from it, and freeing all resources it's using. // -// - endpoint: The name of the Endpoint requested to get lists of tokens -// and token ids. -func (r *ProjectsLocationsEndpointsService) ComputeTokens(endpoint string, googlecloudaiplatformv1computetokensrequest *GoogleCloudAiplatformV1ComputeTokensRequest) *ProjectsLocationsEndpointsComputeTokensCall { - c := &ProjectsLocationsEndpointsComputeTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - endpoint: The name of the Endpoint resource from which to undeploy +// a Model. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) UndeployModel(endpoint string, googlecloudaiplatformv1undeploymodelrequest *GoogleCloudAiplatformV1UndeployModelRequest) *ProjectsLocationsEndpointsUndeployModelCall { + c := &ProjectsLocationsEndpointsUndeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.endpoint = endpoint - c.googlecloudaiplatformv1computetokensrequest = googlecloudaiplatformv1computetokensrequest + c.googlecloudaiplatformv1undeploymodelrequest = googlecloudaiplatformv1undeploymodelrequest 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 *ProjectsLocationsEndpointsComputeTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsComputeTokensCall { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsUndeployModelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49198,21 +56129,21 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsEndpointsComputeTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsComputeTokensCall { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsUndeployModelCall { 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 *ProjectsLocationsEndpointsComputeTokensCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsUndeployModelCall) 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_ { @@ -49220,14 +56151,14 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1computetokensrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1undeploymodelrequest) 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/{+endpoint}:computeTokens") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:undeployModel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49240,16 +56171,14 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.computeTokens" call. -// Exactly one of *GoogleCloudAiplatformV1ComputeTokensResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ComputeTokensResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ComputeTokensResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.undeployModel" 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 *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49268,7 +56197,7 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ComputeTokensResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49280,28 +56209,28 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Return a list of tokens based on the input text.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:computeTokens", + // "description": "Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:undeployModel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.computeTokens", + // "id": "aiplatform.projects.locations.endpoints.undeployModel", // "parameterOrder": [ // "endpoint" // ], // "parameters": { // "endpoint": { - // "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + // "description": "Required. The name of the Endpoint resource from which to undeploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+endpoint}:computeTokens", + // "path": "v1/{+endpoint}:undeployModel", // "request": { - // "$ref": "GoogleCloudAiplatformV1ComputeTokensRequest" + // "$ref": "GoogleCloudAiplatformV1UndeployModelRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1ComputeTokensResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49310,33 +56239,38 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.countTokens": +// method id "aiplatform.projects.locations.endpoints.operations.cancel": -type ProjectsLocationsEndpointsCountTokensCall struct { - s *Service - endpoint string - googlecloudaiplatformv1counttokensrequest *GoogleCloudAiplatformV1CountTokensRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CountTokens: Perform a token counting. +// 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`. // -// - endpoint: The name of the Endpoint requested to perform token -// counting. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) CountTokens(endpoint string, googlecloudaiplatformv1counttokensrequest *GoogleCloudAiplatformV1CountTokensRequest) *ProjectsLocationsEndpointsCountTokensCall { - c := &ProjectsLocationsEndpointsCountTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1counttokensrequest = googlecloudaiplatformv1counttokensrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsEndpointsOperationsService) Cancel(name string) *ProjectsLocationsEndpointsOperationsCancelCall { + c := &ProjectsLocationsEndpointsOperationsCancelCall{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 *ProjectsLocationsEndpointsCountTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCountTokensCall { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49344,21 +56278,21 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsEndpointsCountTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCountTokensCall { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsCancelCall { 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 *ProjectsLocationsEndpointsCountTokensCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsCountTokensCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) 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_ { @@ -49366,14 +56300,9 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1counttokensrequest) - 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/{+endpoint}:countTokens") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49381,21 +56310,19 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.countTokens" call. -// Exactly one of *GoogleCloudAiplatformV1CountTokensResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1CountTokensResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1CountTokensResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.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 *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49414,7 +56341,7 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1CountTokensResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49426,28 +56353,25 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Perform a token counting.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens", + // "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}/endpoints/{endpointsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.countTokens", + // "id": "aiplatform.projects.locations.endpoints.operations.cancel", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+endpoint}:countTokens", - // "request": { - // "$ref": "GoogleCloudAiplatformV1CountTokensRequest" - // }, + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1CountTokensResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49456,48 +56380,32 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.endpoints.create": +// method id "aiplatform.projects.locations.endpoints.operations.delete": -type ProjectsLocationsEndpointsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an Endpoint. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - parent: The resource name of the Location to create the Endpoint -// in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEndpointsService) Create(parent string, googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint) *ProjectsLocationsEndpointsCreateCall { - c := &ProjectsLocationsEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1endpoint = googlecloudaiplatformv1endpoint - return c -} - -// EndpointId sets the optional parameter "endpointId": Immutable. The -// ID to use for endpoint, which will become the final component of the -// endpoint resource name. If not provided, Vertex AI will generate a -// value for this ID. If the first character is a letter, this value may -// be up to 63 characters, and valid characters are `[a-z0-9-]`. The -// last character must be a letter or number. If the first character is -// a number, this value may be up to 9 characters, and valid characters -// are `[0-9]` with no leading zeros. When using HTTP/JSON, this field -// is populated based on a query string argument, such as -// `?endpoint_id=12345`. This is the fallback for fields that are not -// included in either the URI or the body. -func (c *ProjectsLocationsEndpointsCreateCall) EndpointId(endpointId string) *ProjectsLocationsEndpointsCreateCall { - c.urlParams_.Set("endpointId", endpointId) +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { + c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCreateCall { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49505,21 +56413,21 @@ func (c *ProjectsLocationsEndpointsCreateCall) Fields(s ...googleapi.Field) *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 *ProjectsLocationsEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCreateCall { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsCreateCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49527,34 +56435,29 @@ func (c *ProjectsLocationsEndpointsCreateCall) doRequest(alt string) (*http.Resp } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1endpoint) - 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/{+parent}/endpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.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 +// Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49573,7 +56476,7 @@ func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49585,33 +56488,25 @@ func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates an Endpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.create", + // "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}/endpoints/{endpointsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.endpoints.operations.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "endpointId": { - // "description": "Immutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID. If the first character is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last character must be a letter or number. If the first character is a number, this value may be up to 9 characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the fallback for fields that are not included in either the URI or the body.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create the Endpoint in. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/endpoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Endpoint" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49620,22 +56515,24 @@ func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.delete": +// method id "aiplatform.projects.locations.endpoints.operations.get": -type ProjectsLocationsEndpointsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an Endpoint. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - name: The name of the Endpoint resource to be deleted. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Delete(name string) *ProjectsLocationsEndpointsDeleteCall { - c := &ProjectsLocationsEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { + c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -49643,41 +56540,54 @@ func (r *ProjectsLocationsEndpointsService) Delete(name string) *ProjectsLocatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeleteCall { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeleteCall { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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 } @@ -49688,14 +56598,14 @@ func (c *ProjectsLocationsEndpointsDeleteCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.delete" call. +// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49726,18 +56636,18 @@ func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes an Endpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.endpoints.delete", + // "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}/endpoints/{endpointsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.endpoints.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Endpoint resource to be deleted. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -49753,91 +56663,119 @@ func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.deployModel": +// method id "aiplatform.projects.locations.endpoints.operations.list": -type ProjectsLocationsEndpointsDeployModelCall struct { - s *Service - endpoint string - googlecloudaiplatformv1deploymodelrequest *GoogleCloudAiplatformV1DeployModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// DeployModel: Deploys a Model into this Endpoint, creating a -// DeployedModel within it. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - endpoint: The name of the Endpoint resource into which to deploy a -// Model. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) DeployModel(endpoint string, googlecloudaiplatformv1deploymodelrequest *GoogleCloudAiplatformV1DeployModelRequest) *ProjectsLocationsEndpointsDeployModelCall { - c := &ProjectsLocationsEndpointsDeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1deploymodelrequest = googlecloudaiplatformv1deploymodelrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsEndpointsOperationsService) List(name string) *ProjectsLocationsEndpointsOperationsListCall { + c := &ProjectsLocationsEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsEndpointsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsDeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeployModelCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsDeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeployModelCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsDeployModelCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDeployModelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1deploymodelrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:deployModel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.deployModel" 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 +// Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49856,7 +56794,7 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49868,28 +56806,41 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deploys a Model into this Endpoint, creating a DeployedModel within it.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:deployModel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.deployModel", + // "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}/endpoints/{endpointsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.endpoints.operations.list", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint resource into which to deploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+endpoint}:deployModel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1DeployModelRequest" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49898,34 +56849,68 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.endpoints.directPredict": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsEndpointsDirectPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1directpredictrequest *GoogleCloudAiplatformV1DirectPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.endpoints.operations.wait": + +type ProjectsLocationsEndpointsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DirectPredict: Perform an unary online prediction request for Vertex -// first-party products and frameworks. +// 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. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) DirectPredict(endpoint string, googlecloudaiplatformv1directpredictrequest *GoogleCloudAiplatformV1DirectPredictRequest) *ProjectsLocationsEndpointsDirectPredictCall { - c := &ProjectsLocationsEndpointsDirectPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1directpredictrequest = googlecloudaiplatformv1directpredictrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsEndpointsOperationsService) Wait(name string) *ProjectsLocationsEndpointsOperationsWaitCall { + c := &ProjectsLocationsEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEndpointsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsDirectPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectPredictCall { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49933,21 +56918,21 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsEndpointsDirectPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectPredictCall { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsDirectPredictCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -49955,14 +56940,9 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1directpredictrequest) - 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/{+endpoint}:directPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49970,21 +56950,19 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.directPredict" call. -// Exactly one of *GoogleCloudAiplatformV1DirectPredictResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1DirectPredictResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DirectPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50003,7 +56981,7 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1DirectPredictResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50015,28 +56993,31 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Perform an unary online prediction request for Vertex first-party products and frameworks.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directPredict", + // "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}/endpoints/{endpointsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.directPredict", + // "id": "aiplatform.projects.locations.endpoints.operations.wait", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "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": "v1/{+endpoint}:directPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1DirectPredictRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1DirectPredictResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50045,33 +57026,43 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.directRawPredict": +// method id "aiplatform.projects.locations.featureGroups.create": -type ProjectsLocationsEndpointsDirectRawPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1directrawpredictrequest *GoogleCloudAiplatformV1DirectRawPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DirectRawPredict: Perform an online prediction request through gRPC. +// Create: Creates a new FeatureGroup in a given project and location. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) DirectRawPredict(endpoint string, googlecloudaiplatformv1directrawpredictrequest *GoogleCloudAiplatformV1DirectRawPredictRequest) *ProjectsLocationsEndpointsDirectRawPredictCall { - c := &ProjectsLocationsEndpointsDirectRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1directrawpredictrequest = googlecloudaiplatformv1directrawpredictrequest +// - parent: The resource name of the Location to create FeatureGroups. +// Format: `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { + c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1featuregroup = googlecloudaiplatformv1featuregroup + return c +} + +// FeatureGroupId sets the optional parameter "featureGroupId": +// Required. The ID to use for this FeatureGroup, which will become the +// final component of the FeatureGroup's resource name. This value may +// be up to 60 characters, and valid characters are `[a-z0-9_]`. The +// first character cannot be a number. The value must be unique within +// the project and location. +func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { + c.urlParams_.Set("featureGroupId", featureGroupId) 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 *ProjectsLocationsEndpointsDirectRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectRawPredictCall { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50079,21 +57070,21 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectRawPredictCall { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { 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 *ProjectsLocationsEndpointsDirectRawPredictCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDirectRawPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsCreateCall) 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_ { @@ -50101,14 +57092,14 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1directrawpredictrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featuregroup) 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/{+endpoint}:directRawPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -50116,23 +57107,19 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.directRawPredict" call. -// Exactly one of *GoogleCloudAiplatformV1DirectRawPredictResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1DirectRawPredictResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1DirectRawPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.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 *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50151,7 +57138,7 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1DirectRawPredictResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50163,28 +57150,33 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Perform an online prediction request through gRPC.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directRawPredict", + // "description": "Creates a new FeatureGroup in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.directRawPredict", + // "id": "aiplatform.projects.locations.featureGroups.create", // "parameterOrder": [ - // "endpoint" + // "parent" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "featureGroupId": { + // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+endpoint}:directRawPredict", + // "path": "v1/{+parent}/featureGroups", // "request": { - // "$ref": "GoogleCloudAiplatformV1DirectRawPredictRequest" + // "$ref": "GoogleCloudAiplatformV1FeatureGroup" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1DirectRawPredictResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50193,36 +57185,39 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.explain": +// method id "aiplatform.projects.locations.featureGroups.delete": -type ProjectsLocationsEndpointsExplainCall struct { - s *Service - endpoint string - googlecloudaiplatformv1explainrequest *GoogleCloudAiplatformV1ExplainRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Explain: Perform an online explanation. If deployed_model_id is -// specified, the corresponding DeployModel must have explanation_spec -// populated. If deployed_model_id is not specified, all DeployedModels -// must have explanation_spec populated. +// Delete: Deletes a single FeatureGroup. // -// - endpoint: The name of the Endpoint requested to serve the -// explanation. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Explain(endpoint string, googlecloudaiplatformv1explainrequest *GoogleCloudAiplatformV1ExplainRequest) *ProjectsLocationsEndpointsExplainCall { - c := &ProjectsLocationsEndpointsExplainCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1explainrequest = googlecloudaiplatformv1explainrequest +// - name: The name of the FeatureGroup to be deleted. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { + c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any +// Features under this FeatureGroup will also be deleted. (Otherwise, +// the request will only work if the FeatureGroup has no Features.) +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) 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 *ProjectsLocationsEndpointsExplainCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsExplainCall { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50230,21 +57225,21 @@ func (c *ProjectsLocationsEndpointsExplainCall) 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 *ProjectsLocationsEndpointsExplainCall) Context(ctx context.Context) *ProjectsLocationsEndpointsExplainCall { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { 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 *ProjectsLocationsEndpointsExplainCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsExplainCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) 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_ { @@ -50252,35 +57247,29 @@ func (c *ProjectsLocationsEndpointsExplainCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1explainrequest) - 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/{+endpoint}:explain") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.explain" call. -// Exactly one of *GoogleCloudAiplatformV1ExplainResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1ExplainResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featureGroups.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 *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ExplainResponse, error) { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50299,7 +57288,7 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ExplainResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50311,28 +57300,30 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels must have explanation_spec populated.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:explain", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.explain", + // "description": "Deletes a single FeatureGroup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureGroups.delete", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the explanation. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "force": { + // "description": "If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.)", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+endpoint}:explain", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ExplainRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1ExplainResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50341,9 +57332,9 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.get": +// method id "aiplatform.projects.locations.featureGroups.get": -type ProjectsLocationsEndpointsGetCall struct { +type ProjectsLocationsFeatureGroupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -50352,12 +57343,11 @@ type ProjectsLocationsEndpointsGetCall struct { header_ http.Header } -// Get: Gets an Endpoint. +// Get: Gets details of a single FeatureGroup. // -// - name: The name of the Endpoint resource. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Get(name string) *ProjectsLocationsEndpointsGetCall { - c := &ProjectsLocationsEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureGroup resource. +func (r *ProjectsLocationsFeatureGroupsService) Get(name string) *ProjectsLocationsFeatureGroupsGetCall { + c := &ProjectsLocationsFeatureGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -50365,7 +57355,7 @@ func (r *ProjectsLocationsEndpointsService) Get(name string) *ProjectsLocationsE // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50375,7 +57365,7 @@ func (c *ProjectsLocationsEndpointsGetCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -50383,21 +57373,21 @@ func (c *ProjectsLocationsEndpointsGetCall) IfNoneMatch(entityTag string) *Proje // 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 *ProjectsLocationsEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsGetCall { 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 *ProjectsLocationsEndpointsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsGetCall) 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_ { @@ -50423,14 +57413,15 @@ func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.get" call. -// Exactly one of *GoogleCloudAiplatformV1Endpoint or error will be +// Do executes the "aiplatform.projects.locations.featureGroups.get" call. +// Exactly one of *GoogleCloudAiplatformV1FeatureGroup or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Endpoint.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Endpoint, error) { +// either *GoogleCloudAiplatformV1FeatureGroup.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50449,7 +57440,7 @@ func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Endpoint{ + ret := &GoogleCloudAiplatformV1FeatureGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50461,25 +57452,25 @@ func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Gets an Endpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "description": "Gets details of a single FeatureGroup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.get", + // "id": "aiplatform.projects.locations.featureGroups.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Endpoint resource. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "description": "Required. The name of the FeatureGroup resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Endpoint" + // "$ref": "GoogleCloudAiplatformV1FeatureGroup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50488,9 +57479,9 @@ func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.endpoints.list": +// method id "aiplatform.projects.locations.featureGroups.list": -type ProjectsLocationsEndpointsListCall struct { +type ProjectsLocationsFeatureGroupsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -50499,68 +57490,64 @@ type ProjectsLocationsEndpointsListCall struct { header_ http.Header } -// List: Lists Endpoints in a Location. +// List: Lists FeatureGroups in a given project and location. // -// - parent: The resource name of the Location from which to list the -// Endpoints. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEndpointsService) List(parent string) *ProjectsLocationsEndpointsListCall { - c := &ProjectsLocationsEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to list FeatureGroups. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeatureGroupsService) List(parent string) *ProjectsLocationsFeatureGroupsListCall { + c := &ProjectsLocationsFeatureGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `endpoint` supports = and !=. -// `endpoint` represents the Endpoint ID, i.e. the last segment of the -// Endpoint's resource name. * `display_name` supports = and, != * -// `labels` supports general map functions that is: * `labels.key=value` -// - key:value equality * `labels.key:* or labels:key - key existence * -// A key including a space must be quoted. `labels."a key". Some -// examples: * `endpoint=1` * `displayName="myDisplayName" * -// `labels.myKey="myValue" -func (c *ProjectsLocationsEndpointsListCall) Filter(filter string) *ProjectsLocationsEndpointsListCall { +// Filter sets the optional parameter "filter": Lists the FeatureGroups +// that match the filter expression. The following fields are supported: +// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality and +// key presence. Examples: * `create_time > "2020-01-01" OR update_time +// > "2020-01-01" FeatureGroups created or updated after 2020-01-01. * +// `labels.env = "prod" FeatureGroups with label "env" set to "prod". +func (c *ProjectsLocationsFeatureGroupsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsListCall { 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 *ProjectsLocationsEndpointsListCall) OrderBy(orderBy string) *ProjectsLocationsEndpointsListCall { +// field name for descending. Supported Fields: * `create_time` * +// `update_time` +func (c *ProjectsLocationsFeatureGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureGroups to return. The service may return fewer than this +// value. If unspecified, at most 100 FeatureGroups will be returned. +// The maximum value is 100; any value greater than 100 will be coerced +// to 100. +func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListEndpointsResponse.next_page_token of the previous -// EndpointService.ListEndpoints call. -func (c *ProjectsLocationsEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeatureGroupAdminService.ListFeatureGroups +// call. Provide this to retrieve the subsequent page. When paginating, +// all other parameters provided to +// FeatureGroupAdminService.ListFeatureGroups must match the call that +// provided the page token. +func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsEndpointsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50570,7 +57557,7 @@ func (c *ProjectsLocationsEndpointsListCall) 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 *ProjectsLocationsEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsListCall { c.ifNoneMatch_ = entityTag return c } @@ -50578,21 +57565,21 @@ func (c *ProjectsLocationsEndpointsListCall) 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 *ProjectsLocationsEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsListCall { 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 *ProjectsLocationsEndpointsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsListCall) 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_ { @@ -50605,7 +57592,7 @@ func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Respon var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/endpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -50618,16 +57605,16 @@ func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListEndpointsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.featureGroups.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListFeatureGroupsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListEndpointsResponse.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListFeatureGroupsResponse.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEndpointsResponse, error) { +func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50646,7 +57633,7 @@ func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListEndpointsResponse{ + ret := &GoogleCloudAiplatformV1ListFeatureGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50658,52 +57645,46 @@ func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Lists Endpoints in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints", + // "description": "Lists FeatureGroups in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.list", + // "id": "aiplatform.projects.locations.featureGroups.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "Lists the FeatureGroups that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureGroups created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "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`.", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "Optional. The standard list page size.", + // "description": "The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. The standard list page token. Typically obtained via ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call.", + // "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location from which to list the Endpoints. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/endpoints", + // "path": "v1/{+parent}/featureGroups", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListEndpointsResponse" + // "$ref": "GoogleCloudAiplatformV1ListFeatureGroupsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50715,7 +57696,7 @@ func (c *ProjectsLocationsEndpointsListCall) 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 *ProjectsLocationsEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEndpointsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureGroupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -50733,335 +57714,46 @@ func (c *ProjectsLocationsEndpointsListCall) Pages(ctx context.Context, f func(* } } -// method id "aiplatform.projects.locations.endpoints.mutateDeployedModel": - -type ProjectsLocationsEndpointsMutateDeployedModelCall struct { - s *Service - endpoint string - googlecloudaiplatformv1mutatedeployedmodelrequest *GoogleCloudAiplatformV1MutateDeployedModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// MutateDeployedModel: Updates an existing deployed model. Updatable -// fields include `min_replica_count`, `max_replica_count`, -// `autoscaling_metric_specs`, `disable_container_logging` (v1 only), -// and `enable_container_logging` (v1beta1 only). -// -// - endpoint: The name of the Endpoint resource into which to mutate a -// DeployedModel. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) MutateDeployedModel(endpoint string, googlecloudaiplatformv1mutatedeployedmodelrequest *GoogleCloudAiplatformV1MutateDeployedModelRequest) *ProjectsLocationsEndpointsMutateDeployedModelCall { - c := &ProjectsLocationsEndpointsMutateDeployedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1mutatedeployedmodelrequest = googlecloudaiplatformv1mutatedeployedmodelrequest - 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsMutateDeployedModelCall { - 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsMutateDeployedModelCall { - 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1mutatedeployedmodelrequest) - 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/{+endpoint}:mutateDeployedModel") - 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{ - "endpoint": c.endpoint, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.endpoints.mutateDeployedModel" 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) 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": "Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only).", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:mutateDeployedModel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.mutateDeployedModel", - // "parameterOrder": [ - // "endpoint" - // ], - // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/{+endpoint}:mutateDeployedModel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1MutateDeployedModelRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.endpoints.patch": - -type ProjectsLocationsEndpointsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates an Endpoint. -// -// - name: Output only. The resource name of the Endpoint. -func (r *ProjectsLocationsEndpointsService) Patch(name string, googlecloudaiplatformv1endpoint *GoogleCloudAiplatformV1Endpoint) *ProjectsLocationsEndpointsPatchCall { - c := &ProjectsLocationsEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1endpoint = googlecloudaiplatformv1endpoint - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. See google.protobuf.FieldMask. -func (c *ProjectsLocationsEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointsPatchCall { - 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 *ProjectsLocationsEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPatchCall { - 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 *ProjectsLocationsEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPatchCall { - 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 *ProjectsLocationsEndpointsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1endpoint) - 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}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.endpoints.patch" call. -// Exactly one of *GoogleCloudAiplatformV1Endpoint or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Endpoint.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Endpoint, 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 := &GoogleCloudAiplatformV1Endpoint{ - 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": "Updates an Endpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.endpoints.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Output only. The resource name of the Endpoint.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Endpoint" - // }, - // "response": { - // "$ref": "GoogleCloudAiplatformV1Endpoint" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.endpoints.predict": +// method id "aiplatform.projects.locations.featureGroups.patch": -type ProjectsLocationsEndpointsPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1predictrequest *GoogleCloudAiplatformV1PredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Predict: Perform an online prediction. +// Patch: Updates the parameters of a single FeatureGroup. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Predict(endpoint string, googlecloudaiplatformv1predictrequest *GoogleCloudAiplatformV1PredictRequest) *ProjectsLocationsEndpointsPredictCall { - c := &ProjectsLocationsEndpointsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1predictrequest = googlecloudaiplatformv1predictrequest +// - name: Identifier. Name of the FeatureGroup. Format: +// `projects/{project}/locations/{location}/featureGroups/{featureGroup +// }`. +func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup) *ProjectsLocationsFeatureGroupsPatchCall { + c := &ProjectsLocationsFeatureGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1featuregroup = googlecloudaiplatformv1featuregroup + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the FeatureGroup +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `labels` +func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { + 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 *ProjectsLocationsEndpointsPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPredictCall { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51069,21 +57761,21 @@ func (c *ProjectsLocationsEndpointsPredictCall) 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 *ProjectsLocationsEndpointsPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPredictCall { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsPatchCall { 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 *ProjectsLocationsEndpointsPredictCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsPatchCall) 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_ { @@ -51091,35 +57783,34 @@ func (c *ProjectsLocationsEndpointsPredictCall) doRequest(alt string) (*http.Res } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1predictrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featuregroup) 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/{+endpoint}:predict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.predict" call. -// Exactly one of *GoogleCloudAiplatformV1PredictResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1PredictResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featureGroups.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 *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1PredictResponse, error) { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51138,7 +57829,7 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1PredictResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -51150,28 +57841,34 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Perform an online prediction.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.predict", + // "description": "Updates the parameters of a single FeatureGroup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureGroups.patch", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+endpoint}:predict", + // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1PredictRequest" + // "$ref": "GoogleCloudAiplatformV1FeatureGroup" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1PredictResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51180,37 +57877,46 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.rawPredict": +// method id "aiplatform.projects.locations.featureGroups.features.create": -type ProjectsLocationsEndpointsRawPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1rawpredictrequest *GoogleCloudAiplatformV1RawPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RawPredict: Perform an online prediction with an arbitrary HTTP -// payload. The response includes the following HTTP headers: * -// `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this -// prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's -// DeployedModel that served this prediction. +// Create: Creates a new Feature in a given FeatureGroup. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) RawPredict(endpoint string, googlecloudaiplatformv1rawpredictrequest *GoogleCloudAiplatformV1RawPredictRequest) *ProjectsLocationsEndpointsRawPredictCall { - c := &ProjectsLocationsEndpointsRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1rawpredictrequest = googlecloudaiplatformv1rawpredictrequest +// - parent: The resource name of the EntityType or FeatureGroup to +// create a Feature. Format for entity_type as parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature + return c +} + +// FeatureId sets the optional parameter "featureId": Required. The ID +// to use for the Feature, which will become the final component of the +// Feature's resource name. This value may be up to 128 characters, and +// valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within an EntityType/FeatureGroup. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c.urlParams_.Set("featureId", featureId) 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 *ProjectsLocationsEndpointsRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsRawPredictCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51218,21 +57924,21 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsEndpointsRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsRawPredictCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { 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 *ProjectsLocationsEndpointsRawPredictCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) 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_ { @@ -51240,14 +57946,14 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1rawpredictrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) 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/{+endpoint}:rawPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -51255,19 +57961,19 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.rawPredict" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featureGroups.features.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 *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51286,7 +57992,7 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleApiHttpBody{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -51298,28 +58004,33 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:rawPredict", + // "description": "Creates a new Feature in a given FeatureGroup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.rawPredict", + // "id": "aiplatform.projects.locations.featureGroups.features.create", // "parameterOrder": [ - // "endpoint" + // "parent" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "featureId": { + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+endpoint}:rawPredict", + // "path": "v1/{+parent}/features", // "request": { - // "$ref": "GoogleCloudAiplatformV1RawPredictRequest" + // "$ref": "GoogleCloudAiplatformV1Feature" // }, // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51328,34 +58039,33 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.endpoints.serverStreamingPredict": +// method id "aiplatform.projects.locations.featureGroups.features.delete": -type ProjectsLocationsEndpointsServerStreamingPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1streamingpredictrequest *GoogleCloudAiplatformV1StreamingPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ServerStreamingPredict: Perform a server-side streaming online -// prediction request for Vertex LLM streaming. +// Delete: Deletes a single Feature. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) ServerStreamingPredict(endpoint string, googlecloudaiplatformv1streamingpredictrequest *GoogleCloudAiplatformV1StreamingPredictRequest) *ProjectsLocationsEndpointsServerStreamingPredictCall { - c := &ProjectsLocationsEndpointsServerStreamingPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1streamingpredictrequest = googlecloudaiplatformv1streamingpredictrequest +// - name: The name of the Features to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesDeleteCall{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 *ProjectsLocationsEndpointsServerStreamingPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsServerStreamingPredictCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51363,21 +58073,21 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) 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 *ProjectsLocationsEndpointsServerStreamingPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsServerStreamingPredictCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { 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 *ProjectsLocationsEndpointsServerStreamingPredictCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) 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_ { @@ -51385,38 +58095,29 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt str } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1streamingpredictrequest) - 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/{+endpoint}:serverStreamingPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.serverStreamingPredict" call. -// Exactly one of *GoogleCloudAiplatformV1StreamingPredictResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1StreamingPredictResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1StreamingPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.features.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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51435,7 +58136,7 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1StreamingPredictResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -51447,28 +58148,25 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google } return ret, nil // { - // "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:serverStreamingPredict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.serverStreamingPredict", + // "description": "Deletes a single Feature.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureGroups.features.delete", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+endpoint}:serverStreamingPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1StreamingPredictRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1StreamingPredictResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51477,93 +58175,100 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google } -// method id "aiplatform.projects.locations.endpoints.streamGenerateContent": +// method id "aiplatform.projects.locations.featureGroups.features.get": -type ProjectsLocationsEndpointsStreamGenerateContentCall struct { - s *Service - model string - googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// StreamGenerateContent: Generate content with multimodal inputs with -// streaming support. +// Get: Gets details of a single Feature. // -// - model: The name of the publisher model requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/publishers/*/models/*`. -func (r *ProjectsLocationsEndpointsService) StreamGenerateContent(model string, googlecloudaiplatformv1generatecontentrequest *GoogleCloudAiplatformV1GenerateContentRequest) *ProjectsLocationsEndpointsStreamGenerateContentCall { - c := &ProjectsLocationsEndpointsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.model = model - c.googlecloudaiplatformv1generatecontentrequest = googlecloudaiplatformv1generatecontentrequest +// - name: The name of the Feature resource. Format for entity_type as +// parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesGetCall{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 *ProjectsLocationsEndpointsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsStreamGenerateContentCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesGetCall { 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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + 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 *ProjectsLocationsEndpointsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsEndpointsStreamGenerateContentCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesGetCall { 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 *ProjectsLocationsEndpointsStreamGenerateContentCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1generatecontentrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+model}:streamGenerateContent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "model": c.model, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. -// Exactly one of *GoogleCloudAiplatformV1GenerateContentResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1GenerateContentResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1GenerateContentResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. +// Exactly one of *GoogleCloudAiplatformV1Feature or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Feature.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Feature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51582,7 +58287,7 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1GenerateContentResponse{ + ret := &GoogleCloudAiplatformV1Feature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -51594,28 +58299,25 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googlea } return ret, nil // { - // "description": "Generate content with multimodal inputs with streaming support.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamGenerateContent", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.streamGenerateContent", + // "description": "Gets details of a single Feature.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.features.get", // "parameterOrder": [ - // "model" + // "name" // ], // "parameters": { - // "model": { - // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + // "name": { + // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+model}:streamGenerateContent", - // "request": { - // "$ref": "GoogleCloudAiplatformV1GenerateContentRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1GenerateContentResponse" + // "$ref": "GoogleCloudAiplatformV1Feature" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51624,91 +58326,170 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.endpoints.undeployModel": +// method id "aiplatform.projects.locations.featureGroups.features.list": -type ProjectsLocationsEndpointsUndeployModelCall struct { - s *Service - endpoint string - googlecloudaiplatformv1undeploymodelrequest *GoogleCloudAiplatformV1UndeployModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UndeployModel: Undeploys a Model from an Endpoint, removing a -// DeployedModel from it, and freeing all resources it's using. +// List: Lists Features in a given FeatureGroup. // -// - endpoint: The name of the Endpoint resource from which to undeploy -// a Model. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) UndeployModel(endpoint string, googlecloudaiplatformv1undeploymodelrequest *GoogleCloudAiplatformV1UndeployModelRequest) *ProjectsLocationsEndpointsUndeployModelCall { - c := &ProjectsLocationsEndpointsUndeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1undeploymodelrequest = googlecloudaiplatformv1undeploymodelrequest +// - parent: The resource name of the Location to list Features. Format +// for entity_type as parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) List(parent string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c := &ProjectsLocationsFeatureGroupsFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the Features that +// match the filter expression. The following filters are supported: * +// `value_type`: Supports = and != comparisons. * `create_time`: +// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC +// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality as well as key presence. Examples: * `value_type = +// DOUBLE` --> Features whose type is DOUBLE. * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> Features having both (active: yes) and (env: +// prod) labels. * `labels.env: *` --> Any Feature which has a label +// with 'env' as the key. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// LatestStatsCount sets the optional parameter "latestStatsCount": Only +// applicable for Vertex AI Feature Store (Legacy). If set, return the +// most recent ListFeaturesRequest.latest_stats_count of stats for each +// Feature in response. Valid value is [0, 10]. If number of stats +// exists < ListFeaturesRequest.latest_stats_count, return all existing +// stats. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) + 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: * `feature_id` * +// `value_type` (Not supported for FeatureRegistry Feature) * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 1000 Features will be returned. The maximum +// value is 1000; any value greater than 1000 will be coerced to 1000. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.ListFeatures call or +// FeatureRegistryService.ListFeatures call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to FeaturestoreService.ListFeatures or +// FeatureRegistryService.ListFeatures must match the call that provided +// the page token. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsUndeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsUndeployModelCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesListCall { 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + 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 *ProjectsLocationsEndpointsUndeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsUndeployModelCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesListCall { 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 *ProjectsLocationsEndpointsUndeployModelCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsUndeployModelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1undeploymodelrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+endpoint}:undeployModel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.undeployModel" 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 *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListFeaturesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListFeaturesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeaturesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51727,7 +58508,7 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ListFeaturesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -51739,28 +58520,58 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:undeployModel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.undeployModel", + // "description": "Lists Features in a given FeatureGroup.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.features.list", // "parameterOrder": [ - // "endpoint" + // "parent" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint resource from which to undeploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "filter": { + // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "location": "query", + // "type": "string" + // }, + // "latestStatsCount": { + // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+endpoint}:undeployModel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1UndeployModelRequest" - // }, + // "path": "v1/{+parent}/features", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListFeaturesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51769,38 +58580,74 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.operations.cancel": +// 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeaturesResponse) 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) + } +} -type ProjectsLocationsEndpointsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featureGroups.features.patch": + +type ProjectsLocationsFeatureGroupsFeaturesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature + 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`. +// Patch: Updates the parameters of a single Feature. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsEndpointsOperationsService) Cancel(name string) *ProjectsLocationsEndpointsOperationsCancelCall { - c := &ProjectsLocationsEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Name of the Feature. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/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. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + c := &ProjectsLocationsFeatureGroupsFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Features resource +// by the update. The fields specified in the update_mask are relative +// to the resource, not the full request. A field will be overwritten if +// it is in the mask. If the user does not provide a mask then only the +// non-empty fields present in the request will be overwritten. Set the +// update_mask to `*` to override all fields. Updatable fields: * +// `description` * `labels` * `disable_monitoring` (Not supported for +// FeatureRegistry Feature) +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + 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 *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsCancelCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51808,21 +58655,21 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsCancelCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { 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 *ProjectsLocationsEndpointsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) 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_ { @@ -51830,11 +58677,16 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) + 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/{+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 } @@ -51845,14 +58697,14 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.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.featureGroups.features.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 *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51871,7 +58723,7 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca 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, @@ -51883,25 +58735,34 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.operations.cancel", + // "description": "Updates the parameters of a single Feature.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureGroups.features.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "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.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Feature" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51910,9 +58771,9 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": -type ProjectsLocationsEndpointsOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51926,8 +58787,8 @@ type ProjectsLocationsEndpointsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { - c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -51935,7 +58796,7 @@ func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51943,21 +58804,21 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -51980,14 +58841,14 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52019,9 +58880,9 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.endpoints.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", // "parameterOrder": [ // "name" // ], @@ -52029,7 +58890,7 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -52045,9 +58906,9 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.operations.get": +// method id "aiplatform.projects.locations.featureGroups.features.operations.get": -type ProjectsLocationsEndpointsOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -52061,8 +58922,8 @@ type ProjectsLocationsEndpointsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { - c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -52070,7 +58931,7 @@ func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52080,7 +58941,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -52088,21 +58949,21 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52128,14 +58989,14 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52167,9 +59028,9 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", // "parameterOrder": [ // "name" // ], @@ -52177,7 +59038,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -52193,9 +59054,9 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.operations.list": +// method id "aiplatform.projects.locations.featureGroups.features.operations.listWait": -type ProjectsLocationsEndpointsOperationsListCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -52204,34 +59065,34 @@ type ProjectsLocationsEndpointsOperationsListCall struct { header_ http.Header } -// List: Lists operations that match the specified filter in the +// ListWait: Lists operations that match the specified filter in the // request. If the server doesn't support this method, it returns // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsEndpointsOperationsService) List(name string) *ProjectsLocationsEndpointsOperationsListCall { - c := &ProjectsLocationsEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) ListWait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -52239,7 +59100,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52249,7 +59110,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { c.ifNoneMatch_ = entityTag return c } @@ -52257,21 +59118,21 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) 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_ { @@ -52284,7 +59145,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -52297,7 +59158,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.listWait" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -52305,7 +59166,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52337,9 +59198,9 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.listWait", // "parameterOrder": [ // "name" // ], @@ -52352,7 +59213,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -52368,7 +59229,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningListOperationsResponse" // }, @@ -52382,217 +59243,65 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "aiplatform.projects.locations.endpoints.operations.wait": - -type ProjectsLocationsEndpointsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. -// -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsEndpointsOperationsService) Wait(name string) *ProjectsLocationsEndpointsOperationsWaitCall { - c := &ProjectsLocationsEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEndpointsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsWaitCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsWaitCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "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.endpoints.operations.wait" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1/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": "v1/{+name}:wait", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) 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.featureGroups.create": +// method id "aiplatform.projects.locations.featureGroups.features.operations.wait": -type ProjectsLocationsFeatureGroupsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FeatureGroup in a given project and location. +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. // -// - parent: The resource name of the Location to create FeatureGroups. -// Format: `projects/{project}/locations/{location}'`. -func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { - c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1featuregroup = googlecloudaiplatformv1featuregroup +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// FeatureGroupId sets the optional parameter "featureGroupId": -// Required. The ID to use for this FeatureGroup, which will become the -// final component of the FeatureGroup's resource name. This value may -// be up to 60 characters, and valid characters are `[a-z0-9_]`. The -// first character cannot be a number. The value must be unique within -// the project and location. -func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { - c.urlParams_.Set("featureGroupId", featureGroupId) +// 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + 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 *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52600,21 +59309,21 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52622,14 +59331,9 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featuregroup) - 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/{+parent}/featureGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -52637,19 +59341,19 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.create" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52680,31 +59384,29 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new FeatureGroup in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "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}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.create", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "featureGroupId": { - // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/featureGroups", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FeatureGroup" - // }, + // "path": "v1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -52715,9 +59417,9 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featureGroups.delete": +// method id "aiplatform.projects.locations.featureGroups.operations.delete": -type ProjectsLocationsFeatureGroupsDeleteCall struct { +type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -52725,29 +59427,22 @@ type ProjectsLocationsFeatureGroupsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single FeatureGroup. +// 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 FeatureGroup to be deleted. Format: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { - c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// Features under this FeatureGroup will also be deleted. (Otherwise, -// the request will only work if the FeatureGroup has no Features.) -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52755,21 +59450,21 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52792,14 +59487,14 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.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 +// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52818,7 +59513,7 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52830,30 +59525,25 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a single FeatureGroup.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "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}/featureGroups/{featureGroupsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.delete", + // "id": "aiplatform.projects.locations.featureGroups.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "description": "If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.)", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -52862,9 +59552,9 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featureGroups.get": +// method id "aiplatform.projects.locations.featureGroups.operations.get": -type ProjectsLocationsFeatureGroupsGetCall struct { +type ProjectsLocationsFeatureGroupsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -52873,11 +59563,13 @@ type ProjectsLocationsFeatureGroupsGetCall struct { header_ http.Header } -// Get: Gets details of a single FeatureGroup. +// 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 FeatureGroup resource. -func (r *ProjectsLocationsFeatureGroupsService) Get(name string) *ProjectsLocationsFeatureGroupsGetCall { - c := &ProjectsLocationsFeatureGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -52885,7 +59577,7 @@ func (r *ProjectsLocationsFeatureGroupsService) Get(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 *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52895,7 +59587,7 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -52903,21 +59595,21 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *P // 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 *ProjectsLocationsFeatureGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52943,15 +59635,14 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.get" call. -// Exactly one of *GoogleCloudAiplatformV1FeatureGroup or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1FeatureGroup.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureGroup, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52970,7 +59661,7 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1FeatureGroup{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52982,25 +59673,25 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets details of a single FeatureGroup.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "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}/featureGroups/{featureGroupsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.get", + // "id": "aiplatform.projects.locations.featureGroups.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the FeatureGroup resource.", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1FeatureGroup" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53009,67 +59700,45 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.featureGroups.list": +// method id "aiplatform.projects.locations.featureGroups.operations.listWait": -type ProjectsLocationsFeatureGroupsListCall struct { +type ProjectsLocationsFeatureGroupsOperationsListWaitCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists FeatureGroups in a given project and location. +// ListWait: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list FeatureGroups. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeatureGroupsService) List(parent string) *ProjectsLocationsFeatureGroupsListCall { - c := &ProjectsLocationsFeatureGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeatureGroupsOperationsService) ListWait(name string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { + c := &ProjectsLocationsFeatureGroupsOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Lists the FeatureGroups -// that match the filter expression. The following fields are supported: -// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality and -// key presence. Examples: * `create_time > "2020-01-01" OR update_time -// > "2020-01-01" FeatureGroups created or updated after 2020-01-01. * -// `labels.env = "prod" FeatureGroups with label "env" set to "prod". -func (c *ProjectsLocationsFeatureGroupsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { 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: * `create_time` * -// `update_time` -func (c *ProjectsLocationsFeatureGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureGroups to return. The service may return fewer than this -// value. If unspecified, at most 100 FeatureGroups will be returned. -// The maximum value is 100; any value greater than 100 will be coerced -// to 100. -func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeatureGroupAdminService.ListFeatureGroups -// call. Provide this to retrieve the subsequent page. When paginating, -// all other parameters provided to -// FeatureGroupAdminService.ListFeatureGroups must match the call that -// provided the page token. -func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -53077,7 +59746,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken 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 *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53087,7 +59756,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { c.ifNoneMatch_ = entityTag return c } @@ -53095,21 +59764,21 @@ func (c *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) * // 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 *ProjectsLocationsFeatureGroupsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { 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 *ProjectsLocationsFeatureGroupsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) 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_ { @@ -53122,7 +59791,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53130,21 +59799,20 @@ func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Re } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListFeatureGroupsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListFeatureGroupsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureGroupsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.operations.listWait" 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53163,7 +59831,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeatureGroupsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53175,46 +59843,41 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lists FeatureGroups in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "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}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.list", + // "id": "aiplatform.projects.locations.featureGroups.operations.listWait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Lists the FeatureGroups that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureGroups created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1/{+parent}/featureGroups", + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeatureGroupsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53226,7 +59889,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) 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 *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureGroupsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) 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 { @@ -53244,46 +59907,47 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f fu } } -// method id "aiplatform.projects.locations.featureGroups.patch": +// method id "aiplatform.projects.locations.featureGroups.operations.wait": -type ProjectsLocationsFeatureGroupsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single FeatureGroup. +// 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: Identifier. Name of the FeatureGroup. Format: -// `projects/{project}/locations/{location}/featureGroups/{featureGroup -// }`. -func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudaiplatformv1featuregroup *GoogleCloudAiplatformV1FeatureGroup) *ProjectsLocationsFeatureGroupsPatchCall { - c := &ProjectsLocationsFeatureGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1featuregroup = googlecloudaiplatformv1featuregroup return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the FeatureGroup -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` -func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + 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 *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsPatchCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53291,21 +59955,21 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsFeatureGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsPatchCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53313,16 +59977,11 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featuregroup) - 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -53333,14 +59992,14 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.patch" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53371,32 +60030,29 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates the parameters of a single FeatureGroup.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureGroups.patch", + // "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}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureGroups.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FeatureGroup" - // }, + // "path": "v1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -53407,46 +60063,46 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.featureGroups.features.create": +// method id "aiplatform.projects.locations.featureOnlineStores.create": -type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Feature in a given FeatureGroup. +// Create: Creates a new FeatureOnlineStore in a given project and +// location. // -// - parent: The resource name of the EntityType or FeatureGroup to -// create a Feature. Format for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { - c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to create +// FeatureOnlineStores. Format: +// `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Create(parent string, googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c := &ProjectsLocationsFeatureOnlineStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature + c.googlecloudaiplatformv1featureonlinestore = googlecloudaiplatformv1featureonlinestore return c } -// FeatureId sets the optional parameter "featureId": Required. The ID -// to use for the Feature, which will become the final component of the -// Feature's resource name. This value may be up to 128 characters, and -// valid characters are `[a-z0-9_]`. The first character cannot be a -// number. The value must be unique within an EntityType/FeatureGroup. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { - c.urlParams_.Set("featureId", featureId) +// FeatureOnlineStoreId sets the optional parameter +// "featureOnlineStoreId": Required. The ID to use for this +// FeatureOnlineStore, which will become the final component of the +// FeatureOnlineStore's resource name. This value may be up to 60 +// characters, and valid characters are `[a-z0-9_]`. The first character +// cannot be a number. The value must be unique within the project and +// location. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) FeatureOnlineStoreId(featureOnlineStoreId string) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c.urlParams_.Set("featureOnlineStoreId", featureOnlineStoreId) 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53454,21 +60110,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresCreateCall { 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) 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_ { @@ -53476,14 +60132,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureonlinestore) 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/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureOnlineStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -53496,14 +60152,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.create" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53534,30 +60190,30 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Creates a new Feature in a given FeatureGroup.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "description": "Creates a new FeatureOnlineStore in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.features.create", + // "id": "aiplatform.projects.locations.featureOnlineStores.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "featureId": { - // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", + // "featureOnlineStoreId": { + // "description": "Required. The ID to use for this FeatureOnlineStore, which will become the final component of the FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/features", + // "path": "v1/{+parent}/featureOnlineStores", // "request": { - // "$ref": "GoogleCloudAiplatformV1Feature" + // "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -53569,9 +60225,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featureGroups.features.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.delete": -type ProjectsLocationsFeatureGroupsFeaturesDeleteCall struct { +type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -53579,23 +60235,31 @@ type ProjectsLocationsFeatureGroupsFeaturesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single Feature. +// Delete: Deletes a single FeatureOnlineStore. The FeatureOnlineStore +// must not contain any FeatureViews. // -// - name: The name of the Features to be deleted. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/features/{feature}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { - c := &ProjectsLocationsFeatureGroupsFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureOnlineStore to be deleted. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": If set to true, any +// FeatureViews and Features for this FeatureOnlineStore will also be +// deleted. (Otherwise, the request will only work if the +// FeatureOnlineStore has no FeatureViews.) +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Force(force bool) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53603,21 +60267,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresDeleteCall { 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) 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_ { @@ -53640,14 +60304,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.delete" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53678,18 +60342,23 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Deletes a single Feature.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "description": "Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.features.delete", + // "id": "aiplatform.projects.locations.featureOnlineStores.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", + // "description": "Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // } @@ -53705,9 +60374,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featureGroups.features.get": +// method id "aiplatform.projects.locations.featureOnlineStores.get": -type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { +type ProjectsLocationsFeatureOnlineStoresGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -53716,16 +60385,11 @@ type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { header_ http.Header } -// Get: Gets details of a single Feature. +// Get: Gets details of a single FeatureOnlineStore. // -// - name: The name of the Feature resource. Format for entity_type as -// parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { - c := &ProjectsLocationsFeatureGroupsFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureOnlineStore resource. +func (r *ProjectsLocationsFeatureOnlineStoresService) Get(name string) *ProjectsLocationsFeatureOnlineStoresGetCall { + c := &ProjectsLocationsFeatureOnlineStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -53733,7 +60397,7 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53743,7 +60407,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresGetCall { c.ifNoneMatch_ = entityTag return c } @@ -53751,21 +60415,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresGetCall { 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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) 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_ { @@ -53791,14 +60455,16 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. -// Exactly one of *GoogleCloudAiplatformV1Feature or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Feature.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Feature, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. +// Exactly one of *GoogleCloudAiplatformV1FeatureOnlineStore or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1FeatureOnlineStore.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureOnlineStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53817,7 +60483,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Feature{ + ret := &GoogleCloudAiplatformV1FeatureOnlineStore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53829,25 +60495,25 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets details of a single Feature.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "description": "Gets details of a single FeatureOnlineStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "Required. The name of the FeatureOnlineStore resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Feature" + // "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53856,9 +60522,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureGroups.features.list": +// method id "aiplatform.projects.locations.featureOnlineStores.list": -type ProjectsLocationsFeatureGroupsFeaturesListCall struct { +type ProjectsLocationsFeatureOnlineStoresListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -53867,92 +60533,67 @@ type ProjectsLocationsFeatureGroupsFeaturesListCall struct { header_ http.Header } -// List: Lists Features in a given FeatureGroup. +// List: Lists FeatureOnlineStores in a given project and location. // -// - parent: The resource name of the Location to list Features. Format -// for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) List(parent string) *ProjectsLocationsFeatureGroupsFeaturesListCall { - c := &ProjectsLocationsFeatureGroupsFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to list +// FeatureOnlineStores. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) List(parent string) *ProjectsLocationsFeatureOnlineStoresListCall { + c := &ProjectsLocationsFeatureOnlineStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Lists the Features that -// match the filter expression. The following filters are supported: * -// `value_type`: Supports = and != comparisons. * `create_time`: -// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC -// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= +// Filter sets the optional parameter "filter": Lists the +// FeatureOnlineStores that match the filter expression. The following +// fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * +// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` // comparisons. Values must be in RFC 3339 format. * `labels`: Supports -// key-value equality as well as key presence. Examples: * `value_type = -// DOUBLE` --> Features whose type is DOUBLE. * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> Features having both (active: yes) and (env: -// prod) labels. * `labels.env: *` --> Any Feature which has a label -// with 'env' as the key. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// key-value equality and key presence. Examples: * `create_time > +// "2020-01-01" OR update_time > "2020-01-01" FeatureOnlineStores +// created or updated after 2020-01-01. * `labels.env = "prod" +// FeatureOnlineStores with label "env" set to "prod". +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("filter", filter) return c } -// LatestStatsCount sets the optional parameter "latestStatsCount": Only -// applicable for Vertex AI Feature Store (Legacy). If set, return the -// most recent ListFeaturesRequest.latest_stats_count of stats for each -// Feature in response. Valid value is [0, 10]. If number of stats -// exists < ListFeaturesRequest.latest_stats_count, return all existing -// stats. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { - c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) - 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: * `feature_id` * -// `value_type` (Not supported for FeatureRegistry Feature) * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// field name for descending. Supported Fields: * `create_time` * +// `update_time` +func (c *ProjectsLocationsFeatureOnlineStoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of Features to return. The service may return fewer than this value. -// If unspecified, at most 1000 Features will be returned. The maximum -// value is 1000; any value greater than 1000 will be coerced to 1000. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// of FeatureOnlineStores to return. The service may return fewer than +// this value. If unspecified, at most 100 FeatureOnlineStores will be +// returned. The maximum value is 100; any value greater than 100 will +// be coerced to 100. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListFeatures call or -// FeatureRegistryService.ListFeatures call. Provide this to retrieve -// the subsequent page. When paginating, all other parameters provided -// to FeaturestoreService.ListFeatures or -// FeatureRegistryService.ListFeatures must match the call that provided -// the page token. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to +// FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeatureGroupsFeaturesListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesListCall { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53962,7 +60603,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresListCall { c.ifNoneMatch_ = entityTag return c } @@ -53970,21 +60611,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesListCall { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresListCall { 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) 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_ { @@ -53997,7 +60638,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) ( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureOnlineStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -54010,16 +60651,17 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListFeaturesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListFeaturesResponse.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeaturesResponse, error) { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54038,7 +60680,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeaturesResponse{ + ret := &GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54050,58 +60692,46 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Lists Features in a given FeatureGroup.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "description": "Lists FeatureOnlineStores in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "description": "Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureOnlineStores created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureOnlineStores with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, - // "latestStatsCount": { - // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "description": "The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/features", + // "path": "v1/{+parent}/featureOnlineStores", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeaturesResponse" + // "$ref": "GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54113,7 +60743,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.Ca // 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeaturesResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -54131,45 +60761,39 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Conte } } -// method id "aiplatform.projects.locations.featureGroups.features.patch": +// method id "aiplatform.projects.locations.featureOnlineStores.patch": -type ProjectsLocationsFeatureGroupsFeaturesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresPatchCall struct { + s *Service + name string + googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single Feature. +// Patch: Updates the parameters of a single FeatureOnlineStore. // -// - name: Immutable. Name of the Feature. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/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. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { - c := &ProjectsLocationsFeatureGroupsFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. Name of the FeatureOnlineStore. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresPatchCall { + c := &ProjectsLocationsFeatureOnlineStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature + c.googlecloudaiplatformv1featureonlinestore = googlecloudaiplatformv1featureonlinestore return c } // UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Features resource -// by the update. The fields specified in the update_mask are relative -// to the resource, not the full request. A field will be overwritten if -// it is in the mask. If the user does not provide a mask then only the -// non-empty fields present in the request will be overwritten. Set the -// update_mask to `*` to override all fields. Updatable fields: * -// `description` * `labels` * `disable_monitoring` (Not supported for -// FeatureRegistry Feature) -func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { +// used to specify the fields to be overwritten in the +// FeatureOnlineStore resource by the update. The fields specified in +// the update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then only the non-empty fields present in the request +// will be overwritten. Set the update_mask to `*` to override all +// fields. Updatable fields: * `big_query_source` * `labels` * +// `sync_config` +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -54177,7 +60801,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -54185,21 +60809,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresPatchCall { 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) 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_ { @@ -54207,7 +60831,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureonlinestore) if err != nil { return nil, err } @@ -54227,14 +60851,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.patch" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54265,23 +60889,23 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Updates the parameters of a single Feature.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "description": "Updates the parameters of a single FeatureOnlineStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureGroups.features.patch", + // "id": "aiplatform.projects.locations.featureOnlineStores.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "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.", + // "description": "Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `labels` * `sync_config`", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -54289,7 +60913,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.C // }, // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1Feature" + // "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -54301,32 +60925,54 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.create": -type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView + 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`. +// Create: Creates a new FeatureView in a given FeatureOnlineStore. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the FeatureOnlineStore to create +// FeatureViews. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Create(parent string, googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1featureview = googlecloudaiplatformv1featureview + return c +} + +// FeatureViewId sets the optional parameter "featureViewId": Required. +// The ID to use for the FeatureView, which will become the final +// component of the FeatureView's resource name. This value may be up to +// 60 characters, and valid characters are `[a-z0-9_]`. The first +// character cannot be a number. The value must be unique within a +// FeatureOnlineStore. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) FeatureViewId(featureViewId string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("featureViewId", featureViewId) + return c +} + +// RunSyncImmediately sets the optional parameter "runSyncImmediately": +// Immutable. If set to true, one on demand sync will be run +// immediately, regardless whether the FeatureView.sync_config is +// configured or not. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) RunSyncImmediately(runSyncImmediately bool) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("runSyncImmediately", fmt.Sprint(runSyncImmediately)) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -54334,21 +60980,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) 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_ { @@ -54356,29 +61002,34 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureview) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureViews") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.featureGroups.features.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54397,7 +61048,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... 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, @@ -54409,25 +61060,38 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", + // "description": "Creates a new FeatureView in a given FeatureOnlineStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "featureViewId": { + // "description": "Required. The ID to use for the FeatureView, which will become the final component of the FeatureView's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a FeatureOnlineStore.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" + // }, + // "runSyncImmediately": { + // "description": "Immutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/featureViews", + // "request": { + // "$ref": "GoogleCloudAiplatformV1FeatureView" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54436,24 +61100,23 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureGroups.features.operations.get": - -type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.delete": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall struct { + s *Service + name string + 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. +// Delete: Deletes a single FeatureView. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureView to be deleted. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -54461,54 +61124,41 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { - 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -54519,14 +61169,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54557,18 +61207,18 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", + // "description": "Deletes a single FeatureView.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // } @@ -54584,119 +61234,92 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.featureGroups.features.operations.listWait": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues": -type ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall struct { + s *Service + featureView string + googlecloudaiplatformv1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1FetchFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListWait: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// FetchFeatureValues: Fetch feature values under a FeatureView. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) ListWait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { - c.urlParams_.Set("pageToken", pageToken) +// - featureView: FeatureView resource format +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}/featureViews/{featureView}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) FetchFeatureValues(featureView string, googlecloudaiplatformv1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1FetchFeatureValuesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1fetchfeaturevaluesrequest = googlecloudaiplatformv1fetchfeaturevaluesrequest 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { - 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) 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.googlecloudaiplatformv1fetchfeaturevaluesrequest) + 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/{+featureView}:fetchFeatureValues") 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, + "featureView": c.featureView, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.listWait" 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. +// Exactly one of *GoogleCloudAiplatformV1FetchFeatureValuesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1FetchFeatureValuesResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FetchFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54715,7 +61338,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1FetchFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54727,41 +61350,28 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Do(opts . } 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}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.listWait", + // "description": "Fetch feature values under a FeatureView.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:fetchFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues", // "parameterOrder": [ - // "name" + // "featureView" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "featureView": { + // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "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}:wait", + // "path": "v1/{+featureView}:fetchFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1FetchFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1FetchFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54770,102 +61380,79 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) Do(opts . } -// 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListWaitCall) 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.featureGroups.features.operations.wait": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.get": -type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets details of a single FeatureView. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureView resource. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall{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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { - 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -54876,14 +61463,15 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. +// Exactly one of *GoogleCloudAiplatformV1FeatureView or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1FeatureView.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54902,7 +61490,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1FeatureView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54914,31 +61502,25 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go } return ret, nil // { - // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", + // "description": "Gets details of a single FeatureView.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1FeatureView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54947,84 +61529,150 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureGroups.operations.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.list": -type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall struct { + s *Service + parent 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`. +// List: Lists FeatureViews in a given FeatureOnlineStore. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { - c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the FeatureOnlineStore to list +// FeatureViews. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the FeatureViews +// that match the filter expression. The following filters are +// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and +// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality as +// well as key presence. Examples: * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> FeatureViews created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> FeatureViews having both (active: yes) and +// (env: prod) labels. * `labels.env: *` --> Any FeatureView which has a +// label with 'env' as the key. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + 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: * `feature_view_id` * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureViews to return. The service may return fewer than this +// value. If unspecified, at most 1000 FeatureViews will be returned. +// The maximum value is 1000; any value greater than 1000 will be +// coerced to 1000. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureOnlineStoreAdminService.ListFeatureViews must +// match the call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + 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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + 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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { 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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureViews") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListFeatureViewsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListFeatureViewsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55043,7 +61691,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1ListFeatureViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55055,25 +61703,46 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.operations.delete", + // "description": "Lists FeatureViews in a given FeatureOnlineStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "filter": { + // "description": "Lists the FeatureViews that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any FeatureView which has a label with 'env' as the key.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of FeatureViews to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/featureViews", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1ListFeatureViewsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55082,79 +61751,106 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featureGroups.operations.get": +// 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureViewsResponse) 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.featureOnlineStores.featureViews.patch": -type ProjectsLocationsFeatureGroupsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView + 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. +// Patch: Updates the parameters of a single FeatureView. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { - c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. Name of the FeatureView. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name string, googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1featureview = googlecloudaiplatformv1featureview + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the FeatureView +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `labels` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { - 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) 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.googlecloudaiplatformv1featureview) + 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -55165,14 +61861,14 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55203,23 +61899,32 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.operations.get", + // "description": "Updates the parameters of a single FeatureView.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1FeatureView" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -55230,119 +61935,92 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.featureGroups.operations.listWait": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.sync": -type ProjectsLocationsFeatureGroupsOperationsListWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall struct { + s *Service + featureView string + googlecloudaiplatformv1syncfeatureviewrequest *GoogleCloudAiplatformV1SyncFeatureViewRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListWait: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// Sync: Triggers on-demand sync for the FeatureView. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureGroupsOperationsService) ListWait(name string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { - c := &ProjectsLocationsFeatureGroupsOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { - c.urlParams_.Set("pageToken", pageToken) +// - featureView: Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Sync(featureView string, googlecloudaiplatformv1syncfeatureviewrequest *GoogleCloudAiplatformV1SyncFeatureViewRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1syncfeatureviewrequest = googlecloudaiplatformv1syncfeatureviewrequest 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { - 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) 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.googlecloudaiplatformv1syncfeatureviewrequest) + 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/{+featureView}:sync") 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, + "featureView": c.featureView, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.listWait" 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. +// Exactly one of *GoogleCloudAiplatformV1SyncFeatureViewResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1SyncFeatureViewResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1SyncFeatureViewResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55361,7 +62039,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1SyncFeatureViewResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55373,41 +62051,28 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Do(opts ...google } 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}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.operations.listWait", + // "description": "Triggers on-demand sync for the FeatureView.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.sync", // "parameterOrder": [ - // "name" + // "featureView" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "featureView": { + // "description": "Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "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}:wait", + // "path": "v1/{+featureView}:sync", + // "request": { + // "$ref": "GoogleCloudAiplatformV1SyncFeatureViewRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1SyncFeatureViewResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55416,102 +62081,80 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListWaitCall) Do(opts ...google } -// 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 *ProjectsLocationsFeatureGroupsOperationsListWaitCall) 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.featureGroups.operations.wait": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get": -type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets details of a single FeatureViewSync. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureViewSync resource. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}/featureViewSyncs/{featur +// e_view_sync}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall{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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -55522,14 +62165,15 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. +// Exactly one of *GoogleCloudAiplatformV1FeatureViewSync or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1FeatureViewSync.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureViewSync, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55548,7 +62192,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1FeatureViewSync{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55560,31 +62204,25 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.operations.wait", + // "description": "Gets details of a single FeatureViewSync.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs/{featureViewSyncsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1FeatureViewSync" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55593,85 +62231,121 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featureOnlineStores.create": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list": -type ProjectsLocationsFeatureOnlineStoresCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FeatureOnlineStore in a given project and -// location. +// List: Lists FeatureViewSyncs in a given FeatureView. // -// - parent: The resource name of the Location to create -// FeatureOnlineStores. Format: -// `projects/{project}/locations/{location}'`. -func (r *ProjectsLocationsFeatureOnlineStoresService) Create(parent string, googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresCreateCall { - c := &ProjectsLocationsFeatureOnlineStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the FeatureView to list +// FeatureViewSyncs. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1featureonlinestore = googlecloudaiplatformv1featureonlinestore return c } -// FeatureOnlineStoreId sets the optional parameter -// "featureOnlineStoreId": Required. The ID to use for this -// FeatureOnlineStore, which will become the final component of the -// FeatureOnlineStore's resource name. This value may be up to 60 -// characters, and valid characters are `[a-z0-9_]`. The first character -// cannot be a number. The value must be unique within the project and -// location. -func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) FeatureOnlineStoreId(featureOnlineStoreId string) *ProjectsLocationsFeatureOnlineStoresCreateCall { - c.urlParams_.Set("featureOnlineStoreId", featureOnlineStoreId) +// Filter sets the optional parameter "filter": Lists the +// FeatureViewSyncs that match the filter expression. The following +// filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `>=`, and `<=` comparisons. Values must be in RFC 3339 format. +// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\" --> +// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + 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: * `create_time` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureViewSyncs to return. The service may return fewer than this +// value. If unspecified, at most 1000 FeatureViewSyncs will be +// returned. The maximum value is 1000; any value greater than 1000 will +// be coerced to 1000. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to +// FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + 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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + 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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { 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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureonlinestore) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureOnlineStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureViewSyncs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -55682,14 +62356,16 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListFeatureViewSyncsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1ListFeatureViewSyncsResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureViewSyncsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55708,7 +62384,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ListFeatureViewSyncsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55720,33 +62396,46 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a new FeatureOnlineStore in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.create", + // "description": "Lists FeatureViewSyncs in a given FeatureView.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "featureOnlineStoreId": { - // "description": "Required. The ID to use for this FeatureOnlineStore, which will become the final component of the FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "filter": { + // "description": "Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`", + // "description": "Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/featureOnlineStores", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" - // }, + // "path": "v1/{+parent}/featureViewSyncs", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListFeatureViewSyncsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55755,9 +62444,30 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featureOnlineStores.delete": +// 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureViewSyncsResponse) 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) + } +} -type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -55765,31 +62475,22 @@ type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes a single FeatureOnlineStore. The FeatureOnlineStore -// must not contain any FeatureViews. +// 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 FeatureOnlineStore to be deleted. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}`. -func (r *ProjectsLocationsFeatureOnlineStoresService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// FeatureViews and Features for this FeatureOnlineStore will also be -// deleted. (Otherwise, the request will only work if the -// FeatureOnlineStore has no FeatureViews.) -func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Force(force bool) *ProjectsLocationsFeatureOnlineStoresDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55797,21 +62498,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { 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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) 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_ { @@ -55834,14 +62535,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55860,7 +62561,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55872,30 +62573,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + // "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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.delete", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "description": "If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.)", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55904,9 +62600,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featureOnlineStores.get": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get": -type ProjectsLocationsFeatureOnlineStoresGetCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -55915,11 +62611,13 @@ type ProjectsLocationsFeatureOnlineStoresGetCall struct { header_ http.Header } -// Get: Gets details of a single FeatureOnlineStore. +// 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 FeatureOnlineStore resource. -func (r *ProjectsLocationsFeatureOnlineStoresService) Get(name string) *ProjectsLocationsFeatureOnlineStoresGetCall { - c := &ProjectsLocationsFeatureOnlineStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -55927,7 +62625,7 @@ func (r *ProjectsLocationsFeatureOnlineStoresService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55937,7 +62635,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -55945,21 +62643,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { 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 *ProjectsLocationsFeatureOnlineStoresGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) 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_ { @@ -55985,16 +62683,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. -// Exactly one of *GoogleCloudAiplatformV1FeatureOnlineStore or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1FeatureOnlineStore.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureOnlineStore, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56013,7 +62709,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1FeatureOnlineStore{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56025,25 +62721,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets details of a single FeatureOnlineStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + // "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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the FeatureOnlineStore resource.", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56052,70 +62748,45 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.featureOnlineStores.list": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait": -type ProjectsLocationsFeatureOnlineStoresListCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists FeatureOnlineStores in a given project and location. +// ListWait: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list -// FeatureOnlineStores. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeatureOnlineStoresService) List(parent string) *ProjectsLocationsFeatureOnlineStoresListCall { - c := &ProjectsLocationsFeatureOnlineStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) ListWait(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Lists the -// FeatureOnlineStores that match the filter expression. The following -// fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, -// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * -// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `labels`: Supports -// key-value equality and key presence. Examples: * `create_time > -// "2020-01-01" OR update_time > "2020-01-01" FeatureOnlineStores -// created or updated after 2020-01-01. * `labels.env = "prod" -// FeatureOnlineStores with label "env" set to "prod". -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { 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: * `create_time` * -// `update_time` -func (c *ProjectsLocationsFeatureOnlineStoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureOnlineStores to return. The service may return fewer than -// this value. If unspecified, at most 100 FeatureOnlineStores will be -// returned. The maximum value is 100; any value greater than 100 will -// be coerced to 100. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous -// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to -// FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the -// call that provided the page token. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -56123,7 +62794,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageToken(pageToken strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56133,7 +62804,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { c.ifNoneMatch_ = entityTag return c } @@ -56141,21 +62812,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { 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 *ProjectsLocationsFeatureOnlineStoresListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) 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_ { @@ -56168,7 +62839,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureOnlineStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -56176,22 +62847,20 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse or error will +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either -// *GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse, error) { +// *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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56210,7 +62879,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56222,46 +62891,41 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists FeatureOnlineStores in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + // "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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureOnlineStores created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureOnlineStores with label \"env\" set to \"prod\".", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page token.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1/{+parent}/featureOnlineStores", + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56273,7 +62937,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureOnlineStoresResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) 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 { @@ -56291,47 +62955,47 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.featureOnlineStores.patch": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait": -type ProjectsLocationsFeatureOnlineStoresPatchCall struct { - s *Service - name string - googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single FeatureOnlineStore. +// 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: Identifier. Name of the FeatureOnlineStore. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// eOnlineStore}`. -func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlecloudaiplatformv1featureonlinestore *GoogleCloudAiplatformV1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresPatchCall { - c := &ProjectsLocationsFeatureOnlineStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1featureonlinestore = googlecloudaiplatformv1featureonlinestore return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the -// FeatureOnlineStore resource by the update. The fields specified in -// the update_mask are relative to the resource, not the full request. A -// field will be overwritten if it is in the mask. If the user does not -// provide a mask then only the non-empty fields present in the request -// will be overwritten. Set the update_mask to `*` to override all -// fields. Updatable fields: * `big_query_source` * `labels` * -// `sync_config` -func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { + 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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56339,21 +63003,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { 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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) 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_ { @@ -56361,16 +63025,11 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (* } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureonlinestore) - 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -56381,14 +63040,155 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.patch" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.operations.delete": + +type ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall 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 *ProjectsLocationsFeatureOnlineStoresOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall{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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { + 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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { + 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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) 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.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56407,7 +63207,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56419,34 +63219,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates the parameters of a single FeatureOnlineStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureOnlineStores.patch", + // "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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `labels` * `sync_config`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FeatureOnlineStore" - // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56455,111 +63246,97 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.create": +// method id "aiplatform.projects.locations.featureOnlineStores.operations.get": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FeatureView in a given FeatureOnlineStore. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The resource name of the FeatureOnlineStore to create -// FeatureViews. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Create(parent string, googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1featureview = googlecloudaiplatformv1featureview - return c -} - -// FeatureViewId sets the optional parameter "featureViewId": Required. -// The ID to use for the FeatureView, which will become the final -// component of the FeatureView's resource name. This value may be up to -// 60 characters, and valid characters are `[a-z0-9_]`. The first -// character cannot be a number. The value must be unique within a -// FeatureOnlineStore. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) FeatureViewId(featureViewId string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { - c.urlParams_.Set("featureViewId", featureViewId) - return c -} - -// RunSyncImmediately sets the optional parameter "runSyncImmediately": -// Immutable. If set to true, one on demand sync will be run -// immediately, regardless whether the FeatureView.sync_config is -// configured or not. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) RunSyncImmediately(runSyncImmediately bool) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { - c.urlParams_.Set("runSyncImmediately", fmt.Sprint(runSyncImmediately)) +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsGetCall{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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureview) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureViews") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.create" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56590,36 +63367,23 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ... } return ret, nil // { - // "description": "Creates a new FeatureView in a given FeatureOnlineStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.create", + // "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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "featureViewId": { - // "description": "Required. The ID to use for the FeatureView, which will become the final component of the FeatureView's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a FeatureOnlineStore.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "runSyncImmediately": { - // "description": "Immutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1/{+parent}/featureViews", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FeatureView" - // }, + // "path": "v1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -56630,65 +63394,100 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.operations.listWait": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single FeatureView. +// ListWait: 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 FeatureView to be deleted. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) ListWait(name string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -56699,14 +63498,15 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 +// Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.listWait" 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56725,7 +63525,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56737,25 +63537,41 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ... } return ret, nil // { - // "description": "Deletes a single FeatureView.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.delete", + // "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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.listWait", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", // "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}", + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56764,33 +63580,68 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues": +// 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) 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) + } +} -type ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall struct { - s *Service - featureView string - googlecloudaiplatformv1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1FetchFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featureOnlineStores.operations.wait": + +type ProjectsLocationsFeatureOnlineStoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// FetchFeatureValues: Fetch feature values under a FeatureView. +// 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. // -// - featureView: FeatureView resource format -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// eOnlineStore}/featureViews/{featureView}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) FetchFeatureValues(featureView string, googlecloudaiplatformv1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1FetchFeatureValuesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featureView = featureView - c.googlecloudaiplatformv1fetchfeaturevaluesrequest = googlecloudaiplatformv1fetchfeaturevaluesrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsWaitCall{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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56798,21 +63649,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) 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_ { @@ -56820,14 +63671,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1fetchfeaturevaluesrequest) - 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/{+featureView}:fetchFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -56835,21 +63681,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featureView": c.featureView, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. -// Exactly one of *GoogleCloudAiplatformV1FetchFeatureValuesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1FetchFeatureValuesResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FetchFeatureValuesResponse, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56868,7 +63712,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1FetchFeatureValuesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56880,28 +63724,31 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } return ret, nil // { - // "description": "Fetch feature values under a FeatureView.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:fetchFeatureValues", + // "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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.wait", // "parameterOrder": [ - // "featureView" + // "name" // ], // "parameters": { - // "featureView": { - // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/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/{+featureView}:fetchFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FetchFeatureValuesRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1FetchFeatureValuesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56910,98 +63757,96 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.get": +// method id "aiplatform.projects.locations.featurestores.batchReadFeatureValues": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall struct { + s *Service + featurestore string + googlecloudaiplatformv1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1BatchReadFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single FeatureView. +// BatchReadFeatureValues: Batch reads Feature values from a +// Featurestore. This API enables batch reading Feature values, where +// each read instance in the batch may read Feature values of entities +// from one or more EntityTypes. Point-in-time correctness is guaranteed +// for Feature values of each read instance as of each instance's read +// timestamp. // -// - name: The name of the FeatureView resource. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - featurestore: The resource name of the Featurestore from which to +// query Feature values. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresService) BatchReadFeatureValues(featurestore string, googlecloudaiplatformv1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1BatchReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featurestore = featurestore + c.googlecloudaiplatformv1batchreadfeaturevaluesrequest = googlecloudaiplatformv1batchreadfeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { +func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { +func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) 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.googlecloudaiplatformv1batchreadfeaturevaluesrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+featurestore}:batchReadFeatureValues") 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, + "featurestore": c.featurestore, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. -// Exactly one of *GoogleCloudAiplatformV1FeatureView or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1FeatureView.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureView, error) { +// Do executes the "aiplatform.projects.locations.featurestores.batchReadFeatureValues" 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57020,7 +63865,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1FeatureView{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57032,25 +63877,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo } return ret, nil // { - // "description": "Gets details of a single FeatureView.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.get", + // "description": "Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:batchReadFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.batchReadFeatureValues", // "parameterOrder": [ - // "name" + // "featurestore" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "featurestore": { + // "description": "Required. The resource name of the Featurestore from which to query Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+featurestore}:batchReadFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1BatchReadFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1FeatureView" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -57059,128 +63907,82 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.list": +// method id "aiplatform.projects.locations.featurestores.create": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists FeatureViews in a given FeatureOnlineStore. +// Create: Creates a new Featurestore in a given project and location. // -// - parent: The resource name of the FeatureOnlineStore to list -// FeatureViews. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to create Featurestores. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeaturestoresService) Create(parent string, googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore) *ProjectsLocationsFeaturestoresCreateCall { + c := &ProjectsLocationsFeaturestoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.googlecloudaiplatformv1featurestore = googlecloudaiplatformv1featurestore return c } -// Filter sets the optional parameter "filter": Lists the FeatureViews -// that match the filter expression. The following filters are -// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and -// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality as -// well as key presence. Examples: * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> FeatureViews created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> FeatureViews having both (active: yes) and -// (env: prod) labels. * `labels.env: *` --> Any FeatureView which has a -// label with 'env' as the key. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - 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: * `feature_view_id` * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureViews to return. The service may return fewer than this -// value. If unspecified, at most 1000 FeatureViews will be returned. -// The maximum value is 1000; any value greater than 1000 will be -// coerced to 1000. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous -// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to FeatureOnlineStoreAdminService.ListFeatureViews must -// match the call that provided the page token. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c.urlParams_.Set("pageToken", pageToken) +// FeaturestoreId sets the optional parameter "featurestoreId": +// Required. The ID to use for this Featurestore, which will become the +// final component of the Featurestore's resource name. This value may +// be up to 60 characters, and valid characters are `[a-z0-9_]`. The +// first character cannot be a number. The value must be unique within +// the project and location. +func (c *ProjectsLocationsFeaturestoresCreateCall) FeaturestoreId(featurestoreId string) *ProjectsLocationsFeaturestoresCreateCall { + c.urlParams_.Set("featurestoreId", featurestoreId) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { +func (c *ProjectsLocationsFeaturestoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresCreateCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { +func (c *ProjectsLocationsFeaturestoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresCreateCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresCreateCall) 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.googlecloudaiplatformv1featurestore) + 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/{+parent}/featureViews") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featurestores") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -57191,18 +63993,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListFeatureViewsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListFeatureViewsResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureViewsResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57221,7 +64019,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeatureViewsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57233,46 +64031,33 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...go } return ret, nil // { - // "description": "Lists FeatureViews in a given FeatureOnlineStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.list", + // "description": "Creates a new Featurestore in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Lists the FeatureViews that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any FeatureView which has a label with 'env' as the key.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of FeatureViews to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token.", + // "featurestoreId": { + // "description": "Required. The ID to use for this Featurestore, which will become the final component of the Featurestore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "description": "Required. The resource name of the Location to create Featurestores. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/featureViews", + // "path": "v1/{+parent}/featurestores", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Featurestore" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeatureViewsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -57281,67 +64066,42 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...go } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureViewsResponse) 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.featureOnlineStores.featureViews.patch": +// method id "aiplatform.projects.locations.featurestores.delete": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single FeatureView. +// Delete: Deletes a single Featurestore. The Featurestore must not +// contain any EntityTypes or `force` must be set to true for the +// request to succeed. // -// - name: Identifier. Name of the FeatureView. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name string, googlecloudaiplatformv1featureview *GoogleCloudAiplatformV1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Featurestore to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresService) Delete(name string) *ProjectsLocationsFeaturestoresDeleteCall { + c := &ProjectsLocationsFeaturestoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1featureview = googlecloudaiplatformv1featureview return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the FeatureView -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Force sets the optional parameter "force": If set to true, any +// EntityTypes and Features for this Featurestore will also be deleted. +// (Otherwise, the request will only work if the Featurestore has no +// EntityTypes.) +func (c *ProjectsLocationsFeaturestoresDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { +func (c *ProjectsLocationsFeaturestoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57349,21 +64109,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { +func (c *ProjectsLocationsFeaturestoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresDeleteCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresDeleteCall) 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_ { @@ -57371,16 +64131,11 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featureview) - 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -57391,14 +64146,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.patch" call. +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57429,32 +64184,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...g } return ret, nil // { - // "description": "Updates the parameters of a single FeatureView.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.patch", + // "description": "Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be set to true for the request to succeed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any EntityTypes and Features for this Featurestore will also be deleted. (Otherwise, the request will only work if the Featurestore has no EntityTypes.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "description": "Required. The name of the Featurestore to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1FeatureView" - // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -57465,92 +64216,96 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...g } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.sync": +// method id "aiplatform.projects.locations.featurestores.get": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall struct { - s *Service - featureView string - googlecloudaiplatformv1syncfeatureviewrequest *GoogleCloudAiplatformV1SyncFeatureViewRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Sync: Triggers on-demand sync for the FeatureView. +// Get: Gets details of a single Featurestore. // -// - featureView: Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Sync(featureView string, googlecloudaiplatformv1syncfeatureviewrequest *GoogleCloudAiplatformV1SyncFeatureViewRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featureView = featureView - c.googlecloudaiplatformv1syncfeatureviewrequest = googlecloudaiplatformv1syncfeatureviewrequest +// - name: The name of the Featurestore resource. +func (r *ProjectsLocationsFeaturestoresService) Get(name string) *ProjectsLocationsFeaturestoresGetCall { + c := &ProjectsLocationsFeaturestoresGetCall{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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { +func (c *ProjectsLocationsFeaturestoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetCall { 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 *ProjectsLocationsFeaturestoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresGetCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { +func (c *ProjectsLocationsFeaturestoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1syncfeatureviewrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+featureView}:sync") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featureView": c.featureView, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. -// Exactly one of *GoogleCloudAiplatformV1SyncFeatureViewResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1SyncFeatureViewResponse.ServerResponse.Header -// or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.featurestores.get" call. +// Exactly one of *GoogleCloudAiplatformV1Featurestore or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Featurestore.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1SyncFeatureViewResponse, error) { +func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Featurestore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57569,7 +64324,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1SyncFeatureViewResponse{ + ret := &GoogleCloudAiplatformV1Featurestore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57581,28 +64336,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go } return ret, nil // { - // "description": "Triggers on-demand sync for the FeatureView.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.sync", + // "description": "Gets details of a single Featurestore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.get", // "parameterOrder": [ - // "featureView" + // "name" // ], // "parameters": { - // "featureView": { - // "description": "Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "name": { + // "description": "Required. The name of the Featurestore resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+featureView}:sync", - // "request": { - // "$ref": "GoogleCloudAiplatformV1SyncFeatureViewRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1SyncFeatureViewResponse" + // "$ref": "GoogleCloudAiplatformV1Featurestore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -57611,99 +64363,104 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get": +// method id "aiplatform.projects.locations.featurestores.getIamPolicy": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single FeatureViewSync. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - name: The name of the FeatureViewSync resource. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}/featureViewSyncs/{featur -// e_view_sync}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresService) GetIamPolicy(resource string) *ProjectsLocationsFeaturestoresGetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturestoresGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. -// Exactly one of *GoogleCloudAiplatformV1FeatureViewSync or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1FeatureViewSync.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featurestores.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FeatureViewSync, error) { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57722,7 +64479,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1FeatureViewSync{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57734,25 +64491,31 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall } return ret, nil // { - // "description": "Gets details of a single FeatureViewSync.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs/{featureViewSyncsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleCloudAiplatformV1FeatureViewSync" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -57761,9 +64524,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list": +// method id "aiplatform.projects.locations.featurestores.list": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall struct { +type ProjectsLocationsFeaturestoresListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -57772,63 +64535,72 @@ type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall st header_ http.Header } -// List: Lists FeatureViewSyncs in a given FeatureView. +// List: Lists Featurestores in a given project and location. // -// - parent: The resource name of the FeatureView to list -// FeatureViewSyncs. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to list Featurestores. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeaturestoresService) List(parent string) *ProjectsLocationsFeaturestoresListCall { + c := &ProjectsLocationsFeaturestoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Lists the -// FeatureViewSyncs that match the filter expression. The following -// filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, -// `>=`, and `<=` comparisons. Values must be in RFC 3339 format. -// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\" --> -// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// Filter sets the optional parameter "filter": Lists the featurestores +// that match the filter expression. The following fields are supported: +// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must +// be in RFC 3339 format. * `online_serving_config.fixed_node_count`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * `labels`: +// Supports key-value equality and key presence. Examples: * +// `create_time > "2020-01-01" OR update_time > "2020-01-01" +// Featurestores created or updated after 2020-01-01. * `labels.env = +// "prod" Featurestores with label "env" set to "prod". +func (c *ProjectsLocationsFeaturestoresListCall) Filter(filter string) *ProjectsLocationsFeaturestoresListCall { 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: * `create_time` -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// field name for descending. Supported Fields: * `create_time` * +// `update_time` * `online_serving_config.fixed_node_count` +func (c *ProjectsLocationsFeaturestoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureViewSyncs to return. The service may return fewer than this -// value. If unspecified, at most 1000 FeatureViewSyncs will be -// returned. The maximum value is 1000; any value greater than 1000 will -// be coerced to 1000. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// of Featurestores to return. The service may return fewer than this +// value. If unspecified, at most 100 Featurestores will be returned. +// The maximum value is 100; any value greater than 100 will be coerced +// to 100. +func (c *ProjectsLocationsFeaturestoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous -// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to -// FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the -// call that provided the page token. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// received from a previous FeaturestoreService.ListFeaturestores call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.ListFeaturestores +// must match the call that provided the page token. +func (c *ProjectsLocationsFeaturestoresListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeaturestoresListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +func (c *ProjectsLocationsFeaturestoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57838,7 +64610,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +func (c *ProjectsLocationsFeaturestoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresListCall { c.ifNoneMatch_ = entityTag return c } @@ -57846,21 +64618,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +func (c *ProjectsLocationsFeaturestoresListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresListCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresListCall) 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_ { @@ -57873,7 +64645,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featureViewSyncs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/featurestores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -57886,16 +64658,16 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListFeatureViewSyncsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1ListFeatureViewSyncsResponse.ServerResponse.He -// ader or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.featurestores.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListFeaturestoresResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListFeaturestoresResponse.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeatureViewSyncsResponse, error) { +func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeaturestoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57914,7 +64686,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeatureViewSyncsResponse{ + ret := &GoogleCloudAiplatformV1ListFeaturestoresResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -57926,46 +64698,52 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal } return ret, nil // { - // "description": "Lists FeatureViewSyncs in a given FeatureView.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs", + // "description": "Lists Featurestores in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list", + // "id": "aiplatform.projects.locations.featurestores.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z.", + // "description": "Lists the featurestores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` Featurestores created or updated after 2020-01-01. * `labels.env = \"prod\"` Featurestores with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time`", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time` * `online_serving_config.fixed_node_count`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "description": "The maximum number of Featurestores to return. The service may return fewer than this value. If unspecified, at most 100 Featurestores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page token.", + // "description": "A page token, received from a previous FeaturestoreService.ListFeaturestores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeaturestores must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "description": "Required. The resource name of the Location to list Featurestores. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/featureViewSyncs", + // "path": "v1/{+parent}/featurestores", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeatureViewSyncsResponse" + // "$ref": "GoogleCloudAiplatformV1ListFeaturestoresResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -57977,7 +64755,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeatureViewSyncsResponse) error) error { +func (c *ProjectsLocationsFeaturestoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeaturestoresResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -57995,32 +64773,48 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal } } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete": +// method id "aiplatform.projects.locations.featurestores.patch": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresPatchCall struct { + s *Service + name string + googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore + 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`. +// Patch: Updates the parameters of a single Featurestore. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Name of the Featurestore. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresService) Patch(name string, googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore) *ProjectsLocationsFeaturestoresPatchCall { + c := &ProjectsLocationsFeaturestoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1featurestore = googlecloudaiplatformv1featurestore + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Featurestore +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `labels` * +// `online_serving_config.fixed_node_count` * +// `online_serving_config.scaling` * `online_storage_ttl_days` +func (c *ProjectsLocationsFeaturestoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresPatchCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58028,21 +64822,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresPatchCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresPatchCall) 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_ { @@ -58050,11 +64844,16 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) d } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featurestore) + 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -58065,14 +64864,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) d return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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.featurestores.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58091,7 +64890,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) D 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, @@ -58103,25 +64902,34 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) D } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete", + // "description": "Updates the parameters of a single Featurestore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featurestores.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Output only. Name of the Featurestore. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Featurestore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * `online_storage_ttl_days`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Featurestore" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58130,32 +64938,94 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) D } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get": +// method id "aiplatform.projects.locations.featurestores.searchFeatures": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall struct { +type ProjectsLocationsFeaturestoresSearchFeaturesCall struct { s *Service - name string + location 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. +// SearchFeatures: Searches Features matching a query in a given +// project. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - location: The resource name of the Location to search Features. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeaturestoresService) SearchFeatures(location string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c := &ProjectsLocationsFeaturestoresSearchFeaturesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 100 Features will be returned. The maximum +// value is 100; any value greater than 100 will be coerced to 100. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.SearchFeatures call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.SearchFeatures, +// except `page_size`, must match the call that provided the page token. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Query sets the optional parameter "query": Query string that is a +// conjunction of field-restricted queries and/or field-restricted +// filters. Field-restricted queries and filters can be combined using +// `AND` to form a conjunction. A field query is in the form +// FIELD:QUERY. This implicitly checks if QUERY exists as a substring +// within Feature's FIELD. The QUERY and the FIELD are converted to a +// sequence of words (i.e. tokens) for comparison. This is done by: * +// Removing leading/trailing whitespace and tokenizing the search value. +// Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore +// `_`, or asterisk `*` are treated as delimiters for tokens. `*` is +// treated as a wildcard that matches characters within a token. * +// Ignoring case. * Prepending an asterisk to the first and appending an +// asterisk to the last token in QUERY. A QUERY must be either a +// singular token or a phrase. A phrase is one or multiple words +// enclosed in double quotation marks ("). With phrases, the order of +// the words is important. Words in the phrase must be matching in order +// and consecutively. Supported FIELDs for field-restricted queries: * +// `feature_id` * `description` * `entity_type_id` Examples: * +// `feature_id: foo` --> Matches a Feature with ID containing the +// substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: +// foo*feature` --> Matches a Feature with ID containing the substring +// `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND +// description: bar` --> Matches a Feature with ID containing the +// substring `foo` and description containing the substring `bar`. +// Besides field queries, the following exact-match filters are +// supported. The exact-match filters do not support wildcards. Unlike +// field-restricted queries, exact-match filters are case-sensitive. * +// `feature_id`: Supports = comparisons. * `description`: Supports = +// comparisons. Multi-token filters should be enclosed in quotes. * +// `entity_type_id`: Supports = comparisons. * `value_type`: Supports = +// and != comparisons. * `labels`: Supports key-value equality as well +// as key presence. * `featurestore_id`: Supports = comparisons. +// Examples: * `description = "foo bar" --> Any Feature with +// description exactly equal to `foo bar` * `value_type = DOUBLE` --> +// Features whose type is DOUBLE. * `labels.active = yes AND labels.env +// = prod` --> Features having both (active: yes) and (env: prod) +// labels. * `labels.env: *` --> Any Feature which has a label with +// `env` as the key. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Query(query string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c.urlParams_.Set("query", query) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSearchFeaturesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58165,7 +65035,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { c.ifNoneMatch_ = entityTag return c } @@ -58173,21 +65043,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) IfNo // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSearchFeaturesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) 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_ { @@ -58200,7 +65070,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRe var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/featurestores:searchFeatures") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -58208,19 +65078,202 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRe } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "location": c.location, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 +// Do executes the "aiplatform.projects.locations.featurestores.searchFeatures" call. +// Exactly one of *GoogleCloudAiplatformV1SearchFeaturesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1SearchFeaturesResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1SearchFeaturesResponse, 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 := &GoogleCloudAiplatformV1SearchFeaturesResponse{ + 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": "Searches Features matching a query in a given project.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores:searchFeatures", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.searchFeatures", + // "parameterOrder": [ + // "location" + // ], + // "parameters": { + // "location": { + // "description": "Required. The resource name of the Location to search Features. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 100 Features will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.SearchFeatures, except `page_size`, must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "query": { + // "description": "Query string that is a conjunction of field-restricted queries and/or field-restricted filters. Field-restricted queries and filters can be combined using `AND` to form a conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for comparison. This is done by: * Removing leading/trailing whitespace and tokenizing the search value. Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as delimiters for tokens. `*` is treated as a wildcard that matches characters within a token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk to the last token in QUERY. A QUERY must be either a singular token or a phrase. A phrase is one or multiple words enclosed in double quotation marks (\"). With phrases, the order of the words is important. Words in the phrase must be matching in order and consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * `description` * `entity_type_id` Examples: * `feature_id: foo` --\u003e Matches a Feature with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --\u003e Matches a Feature with ID containing the substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --\u003e Matches a Feature with ID containing the substring `foo` and description containing the substring `bar`. Besides field queries, the following exact-match filters are supported. The exact-match filters do not support wildcards. Unlike field-restricted queries, exact-match filters are case-sensitive. * `feature_id`: Supports = comparisons. * `description`: Supports = comparisons. Multi-token filters should be enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: Supports = and != comparisons. * `labels`: Supports key-value equality as well as key presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = \"foo bar\"` --\u003e Any Feature with description exactly equal to `foo bar` * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with `env` as the key.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+location}/featurestores:searchFeatures", + // "response": { + // "$ref": "GoogleCloudAiplatformV1SearchFeaturesResponse" + // }, + // "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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1SearchFeaturesResponse) 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.featurestores.setIamPolicy": + +type ProjectsLocationsFeaturestoresSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresSetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSetIamPolicyCall { + 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSetIamPolicyCall { + 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + 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/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58239,7 +65292,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(o if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -58251,25 +65304,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(o } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58278,119 +65334,100 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(o } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait": +// method id "aiplatform.projects.locations.featurestores.testIamPermissions": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresTestIamPermissionsCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListWait: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) ListWait(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresService) TestIamPermissions(resource string) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { + c := &ProjectsLocationsFeaturestoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { - c.urlParams_.Set("pageToken", pageToken) +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// Do executes the "aiplatform.projects.locations.featurestores.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse 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 +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58409,7 +65446,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -58421,41 +65458,31 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.listWait", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", // "location": "query", + // "repeated": true, // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "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}:wait", + // "path": "v1/{+resource}:testIamPermissions", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58464,68 +65491,45 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) } -// 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListWaitCall) 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.featureOnlineStores.featureViews.operations.wait": +// method id "aiplatform.projects.locations.featurestores.entityTypes.create": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType + 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. +// Create: Creates a new EntityType in a given Featurestore. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Featurestore to create +// EntityTypes. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Create(parent string, googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { + c := &ProjectsLocationsFeaturestoresEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1entitytype = googlecloudaiplatformv1entitytype 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// EntityTypeId sets the optional parameter "entityTypeId": Required. +// The ID to use for the EntityType, which will become the final +// component of the EntityType's resource name. This value may be up to +// 60 characters, and valid characters are `[a-z0-9_]`. The first +// character cannot be a number. The value must be unique within a +// featurestore. +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) EntityTypeId(entityTypeId string) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { + c.urlParams_.Set("entityTypeId", entityTypeId) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58533,21 +65537,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) 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_ { @@ -58555,9 +65559,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doR } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1entitytype) + 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/{+parent}/entityTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -58565,19 +65574,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doR } 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.featureOnlineStores.featureViews.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58608,29 +65617,31 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do( } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", + // "description": "Creates a new EntityType in a given Featurestore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", - // "required": true, + // "entityTypeId": { + // "description": "Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a featurestore.", + // "location": "query", // "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", + // "parent": { + // "description": "Required. The resource name of the Featurestore to create EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+parent}/entityTypes", + // "request": { + // "$ref": "GoogleCloudAiplatformV1EntityType" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -58641,9 +65652,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do( } -// method id "aiplatform.projects.locations.featureOnlineStores.operations.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.delete": -type ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall struct { +type ProjectsLocationsFeaturestoresEntityTypesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -58651,22 +65662,30 @@ type ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall 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 single EntityType. The EntityType must not have any +// Features or `force` must be set to true for the request to succeed. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the EntityType to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": If set to true, any +// Features for this EntityType will also be deleted. (Otherwise, the +// request will only work if the EntityType has no Features.) +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58674,21 +65693,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) 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_ { @@ -58711,14 +65730,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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.featurestores.entityTypes.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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58737,7 +65756,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...go 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, @@ -58749,25 +65768,30 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...go } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", + // "description": "Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to true for the request to succeed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.delete", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any Features for this EntityType will also be deleted. (Otherwise, the request will only work if the EntityType has no Features.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the EntityType to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58776,97 +65800,98 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureOnlineStores.operations.get": +// method id "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues": -type ProjectsLocationsFeatureOnlineStoresOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1deletefeaturevaluesrequest *GoogleCloudAiplatformV1DeleteFeatureValuesRequest + 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. +// DeleteFeatureValues: Delete Feature values from Featurestore. The +// progress of the deletion is tracked by the returned operation. The +// deleted feature values are guaranteed to be invisible to subsequent +// read operations after the operation is marked as successfully done. +// If a delete feature values operation fails, the feature values +// returned from reads and exports may be inconsistent. If consistency +// is required, the caller must retry the same delete request again and +// wait till the new operation returned is marked as successfully done. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - entityType: The resource name of the EntityType grouping the +// Features for which values are being deleted from. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) DeleteFeatureValues(entityType string, googlecloudaiplatformv1deletefeaturevaluesrequest *GoogleCloudAiplatformV1DeleteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1deletefeaturevaluesrequest = googlecloudaiplatformv1deletefeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) 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.googlecloudaiplatformv1deletefeaturevaluesrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:deleteFeatureValues") 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, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.get" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues" 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58897,23 +65922,26 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googl } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.get", + // "description": "Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:deleteFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "entityType": { + // "description": "Required. The resource name of the EntityType grouping the Features for which values are being deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+entityType}:deleteFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1DeleteFeatureValuesRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -58924,119 +65952,92 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.featureOnlineStores.operations.listWait": +// method id "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues": -type ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1exportfeaturevaluesrequest *GoogleCloudAiplatformV1ExportFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListWait: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// ExportFeatureValues: Exports Feature values from all the entities of +// a target EntityType. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) ListWait(name string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { - c.urlParams_.Set("pageToken", pageToken) +// - entityType: The resource name of the EntityType from which to +// export Feature values. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) ExportFeatureValues(entityType string, googlecloudaiplatformv1exportfeaturevaluesrequest *GoogleCloudAiplatformV1ExportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1exportfeaturevaluesrequest = googlecloudaiplatformv1exportfeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { - 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { - c.ifNoneMatch_ = entityTag +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { + 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) 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.googlecloudaiplatformv1exportfeaturevaluesrequest) + 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/{+entityType}:exportFeatureValues") 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, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.listWait" 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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues" 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59055,7 +66056,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59067,41 +66068,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Do(opts ... } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.listWait", + // "description": "Exports Feature values from all the entities of a target EntityType.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:exportFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "entityType": { + // "description": "Required. The resource name of the EntityType from which to export Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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}:wait", + // "path": "v1/{+entityType}:exportFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1ExportFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59110,102 +66098,79 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) Do(opts ... } -// 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 *ProjectsLocationsFeatureOnlineStoresOperationsListWaitCall) 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.featureOnlineStores.operations.wait": +// method id "aiplatform.projects.locations.featurestores.entityTypes.get": -type ProjectsLocationsFeatureOnlineStoresOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets details of a single EntityType. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the EntityType resource. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesGetCall{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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { - 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { + 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -59216,14 +66181,15 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.get" call. +// Exactly one of *GoogleCloudAiplatformV1EntityType or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1EntityType.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EntityType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59242,7 +66208,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1EntityType{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59254,31 +66220,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...goog } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.wait", + // "description": "Gets details of a single EntityType.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the EntityType resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1EntityType" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59287,39 +66247,52 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.featurestores.batchReadFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy": -type ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall struct { - s *Service - featurestore string - googlecloudaiplatformv1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1BatchReadFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchReadFeatureValues: Batch reads Feature values from a -// Featurestore. This API enables batch reading Feature values, where -// each read instance in the batch may read Feature values of entities -// from one or more EntityTypes. Point-in-time correctness is guaranteed -// for Feature values of each read instance as of each instance's read -// timestamp. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - featurestore: The resource name of the Featurestore from which to -// query Feature values. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresService) BatchReadFeatureValues(featurestore string, googlecloudaiplatformv1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1BatchReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featurestore = featurestore - c.googlecloudaiplatformv1batchreadfeaturevaluesrequest = googlecloudaiplatformv1batchreadfeaturevaluesrequest +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) GetIamPolicy(resource string) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59327,21 +66300,21 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) 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_ { @@ -59349,14 +66322,9 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchreadfeaturevaluesrequest) - 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/{+featurestore}:batchReadFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -59364,19 +66332,19 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featurestore": c.featurestore, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.batchReadFeatureValues" 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.featurestores.entityTypes.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59395,7 +66363,7 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59407,28 +66375,31 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...go } return ret, nil // { - // "description": "Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:batchReadFeatureValues", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:getIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.batchReadFeatureValues", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy", // "parameterOrder": [ - // "featurestore" + // "resource" // ], // "parameters": { - // "featurestore": { - // "description": "Required. The resource name of the Featurestore from which to query Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+featurestore}:batchReadFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1BatchReadFeatureValuesRequest" - // }, + // "path": "v1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59437,43 +66408,49 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featurestores.create": +// method id "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues": -type ProjectsLocationsFeaturestoresCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1importfeaturevaluesrequest *GoogleCloudAiplatformV1ImportFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Featurestore in a given project and location. +// ImportFeatureValues: Imports Feature values into the Featurestore +// from a source storage. The progress of the import is tracked by the +// returned operation. The imported features are guaranteed to be +// visible to subsequent read operations after the operation is marked +// as successfully done. If an import operation fails, the Feature +// values returned from reads and exports may be inconsistent. If +// consistency is required, the caller must retry the same import +// request again and wait till the new operation returned is marked as +// successfully done. There are also scenarios where the caller can +// cause inconsistency. - Source data for import contains multiple +// distinct Feature values for the same entity ID and timestamp. - +// Source is modified during an import. This includes adding, updating, +// or removing source data and/or metadata. Examples of updating +// metadata include but are not limited to changing storage location, +// storage class, or retention policy. - Online serving cluster is +// under-provisioned. // -// - parent: The resource name of the Location to create Featurestores. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeaturestoresService) Create(parent string, googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore) *ProjectsLocationsFeaturestoresCreateCall { - c := &ProjectsLocationsFeaturestoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1featurestore = googlecloudaiplatformv1featurestore - return c -} - -// FeaturestoreId sets the optional parameter "featurestoreId": -// Required. The ID to use for this Featurestore, which will become the -// final component of the Featurestore's resource name. This value may -// be up to 60 characters, and valid characters are `[a-z0-9_]`. The -// first character cannot be a number. The value must be unique within -// the project and location. -func (c *ProjectsLocationsFeaturestoresCreateCall) FeaturestoreId(featurestoreId string) *ProjectsLocationsFeaturestoresCreateCall { - c.urlParams_.Set("featurestoreId", featurestoreId) +// - entityType: The resource name of the EntityType grouping the +// Features for which values are being imported. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) ImportFeatureValues(entityType string, googlecloudaiplatformv1importfeaturevaluesrequest *GoogleCloudAiplatformV1ImportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1importfeaturevaluesrequest = googlecloudaiplatformv1importfeaturevaluesrequest 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 *ProjectsLocationsFeaturestoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59481,21 +66458,21 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsFeaturestoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { 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 *ProjectsLocationsFeaturestoresCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) 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_ { @@ -59503,14 +66480,14 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featurestore) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1importfeaturevaluesrequest) 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/{+parent}/featurestores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:importFeatureValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -59518,19 +66495,19 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.create" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues" 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 *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59561,30 +66538,25 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new Featurestore in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores", + // "description": "Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:importFeatureValues", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.create", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues", // "parameterOrder": [ - // "parent" + // "entityType" // ], // "parameters": { - // "featurestoreId": { - // "description": "Required. The ID to use for this Featurestore, which will become the final component of the Featurestore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create Featurestores. Format: `projects/{project}/locations/{location}`", + // "entityType": { + // "description": "Required. The resource name of the EntityType grouping the Features for which values are being imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/featurestores", + // "path": "v1/{+entityType}:importFeatureValues", // "request": { - // "$ref": "GoogleCloudAiplatformV1Featurestore" + // "$ref": "GoogleCloudAiplatformV1ImportFeatureValuesRequest" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -59596,94 +66568,154 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featurestores.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.list": -type ProjectsLocationsFeaturestoresDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single Featurestore. The Featurestore must not -// contain any EntityTypes or `force` must be set to true for the -// request to succeed. +// List: Lists EntityTypes in a given Featurestore. // -// - name: The name of the Featurestore to be deleted. Format: +// - parent: The resource name of the Featurestore to list EntityTypes. +// Format: // `projects/{project}/locations/{location}/featurestores/{featurestore // }`. -func (r *ProjectsLocationsFeaturestoresService) Delete(name string) *ProjectsLocationsFeaturestoresDeleteCall { - c := &ProjectsLocationsFeaturestoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +func (r *ProjectsLocationsFeaturestoresEntityTypesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Force sets the optional parameter "force": If set to true, any -// EntityTypes and Features for this Featurestore will also be deleted. -// (Otherwise, the request will only work if the Featurestore has no -// EntityTypes.) -func (c *ProjectsLocationsFeaturestoresDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) +// Filter sets the optional parameter "filter": Lists the EntityTypes +// that match the filter expression. The following filters are +// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and +// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality as +// well as key presence. Examples: * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> EntityTypes having both (active: yes) and +// (env: prod) labels. * `labels.env: *` --> Any EntityType which has a +// label with 'env' as the key. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + 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: * `entity_type_id` * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of EntityTypes to return. The service may return fewer than this +// value. If unspecified, at most 1000 EntityTypes will be returned. The +// maximum value is 1000; any value greater than 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.ListEntityTypes call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.ListEntityTypes must +// match the call that provided the page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + 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 *ProjectsLocationsFeaturestoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesListCall { 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 *ProjectsLocationsFeaturestoresDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entityTypes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListEntityTypesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListEntityTypesResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEntityTypesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59702,7 +66734,7 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ListEntityTypesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59714,30 +66746,52 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be set to true for the request to succeed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.delete", + // "description": "Lists EntityTypes in a given Featurestore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "force": { - // "description": "If set to true, any EntityTypes and Features for this Featurestore will also be deleted. (Otherwise, the request will only work if the Featurestore has no EntityTypes.)", + // "filter": { + // "description": "Lists the EntityTypes that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any EntityType which has a label with 'env' as the key.", // "location": "query", - // "type": "boolean" + // "type": "string" // }, - // "name": { - // "description": "Required. The name of the Featurestore to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `entity_type_id` * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of EntityTypes to return. The service may return fewer than this value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.ListEntityTypes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListEntityTypes must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Featurestore to list EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/entityTypes", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListEntityTypesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59746,77 +66800,118 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featurestores.get": +// 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEntityTypesResponse) 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) + } +} -type ProjectsLocationsFeaturestoresGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featurestores.entityTypes.patch": + +type ProjectsLocationsFeaturestoresEntityTypesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single Featurestore. +// Patch: Updates the parameters of a single EntityType. // -// - name: The name of the Featurestore resource. -func (r *ProjectsLocationsFeaturestoresService) Get(name string) *ProjectsLocationsFeaturestoresGetCall { - c := &ProjectsLocationsFeaturestoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Name of the EntityType. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` The last part entity_type is assigned +// by the client. The entity_type can be up to 64 characters long and +// can consist only of ASCII Latin letters A-Z and a-z and +// underscore(_), and ASCII digits 0-9 starting with a letter. The +// value will be unique given a featurestore. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Patch(name string, googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { + c := &ProjectsLocationsFeaturestoresEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1entitytype = googlecloudaiplatformv1entitytype + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the EntityType +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `description` * `labels` * +// `monitoring_config.snapshot_analysis.disabled` * +// `monitoring_config.snapshot_analysis.monitoring_interval_days` * +// `monitoring_config.snapshot_analysis.staleness_days` * +// `monitoring_config.import_features_analysis.state` * +// `monitoring_config.import_features_analysis.anomaly_detection_baseline +// ` * `monitoring_config.numerical_threshold_config.value` * +// `monitoring_config.categorical_threshold_config.value` * +// `offline_storage_ttl_days` +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { + 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 *ProjectsLocationsFeaturestoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { 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 *ProjectsLocationsFeaturestoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresGetCall { - 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 *ProjectsLocationsFeaturestoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { 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 *ProjectsLocationsFeaturestoresGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) 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.googlecloudaiplatformv1entitytype) + 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -59827,15 +66922,15 @@ func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.get" call. -// Exactly one of *GoogleCloudAiplatformV1Featurestore or error will be +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.patch" call. +// Exactly one of *GoogleCloudAiplatformV1EntityType or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Featurestore.ServerResponse.Header or +// either *GoogleCloudAiplatformV1EntityType.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Featurestore, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EntityType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59854,7 +66949,7 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Featurestore{ + ret := &GoogleCloudAiplatformV1EntityType{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59866,25 +66961,34 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets details of a single Featurestore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.get", + // "description": "Updates the parameters of a single EntityType.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Featurestore resource.", + // "description": "Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is assigned by the client. The entity_type can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given a featurestore.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the EntityType resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * `monitoring_config.snapshot_analysis.monitoring_interval_days` * `monitoring_config.snapshot_analysis.staleness_days` * `monitoring_config.import_features_analysis.state` * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * `monitoring_config.numerical_threshold_config.value` * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1EntityType" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1Featurestore" + // "$ref": "GoogleCloudAiplatformV1EntityType" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59893,52 +66997,38 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.featurestores.getIamPolicy": +// method id "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues": -type ProjectsLocationsFeaturestoresGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1readfeaturevaluesrequest *GoogleCloudAiplatformV1ReadFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// ReadFeatureValues: Reads Feature values of a specific entity of an +// EntityType. For reading feature values of multiple entities of an +// EntityType, please use StreamingReadFeatureValues. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresService) GetIamPolicy(resource string) *ProjectsLocationsFeaturestoresGetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturestoresGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - entityType: The resource name of the EntityType for the entity +// being read. Value format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. For example, for a machine learning +// model predicting user clicks on a website, an EntityType ID could +// be `user`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) ReadFeatureValues(entityType string, googlecloudaiplatformv1readfeaturevaluesrequest *GoogleCloudAiplatformV1ReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1readfeaturevaluesrequest = googlecloudaiplatformv1readfeaturevaluesrequest 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 *ProjectsLocationsFeaturestoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59946,21 +67036,21 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { 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 *ProjectsLocationsFeaturestoresGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) 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_ { @@ -59968,9 +67058,14 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1readfeaturevaluesrequest) + 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/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:readFeatureValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -59978,19 +67073,21 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues" call. +// Exactly one of *GoogleCloudAiplatformV1ReadFeatureValuesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ReadFeatureValuesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60009,7 +67106,7 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudAiplatformV1ReadFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60021,31 +67118,28 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:getIamPolicy", + // "description": "Reads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:readFeatureValues", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.getIamPolicy", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues", // "parameterOrder": [ - // "resource" + // "entityType" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "entityType": { + // "description": "Required. The resource name of the EntityType for the entity being read. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+entityType}:readFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1ReadFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudAiplatformV1ReadFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60054,150 +67148,93 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featurestores.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy": -type ProjectsLocationsFeaturestoresListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Featurestores in a given project and location. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - parent: The resource name of the Location to list Featurestores. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeaturestoresService) List(parent string) *ProjectsLocationsFeaturestoresListCall { - c := &ProjectsLocationsFeaturestoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Lists the featurestores -// that match the filter expression. The following fields are supported: -// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must -// be in RFC 3339 format. * `online_serving_config.fixed_node_count`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * `labels`: -// Supports key-value equality and key presence. Examples: * -// `create_time > "2020-01-01" OR update_time > "2020-01-01" -// Featurestores created or updated after 2020-01-01. * `labels.env = -// "prod" Featurestores with label "env" set to "prod". -func (c *ProjectsLocationsFeaturestoresListCall) Filter(filter string) *ProjectsLocationsFeaturestoresListCall { - 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: * `create_time` * -// `update_time` * `online_serving_config.fixed_node_count` -func (c *ProjectsLocationsFeaturestoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Featurestores to return. The service may return fewer than this -// value. If unspecified, at most 100 Featurestores will be returned. -// The maximum value is 100; any value greater than 100 will be coerced -// to 100. -func (c *ProjectsLocationsFeaturestoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListFeaturestores call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to FeaturestoreService.ListFeaturestores -// must match the call that provided the page token. -func (c *ProjectsLocationsFeaturestoresListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeaturestoresListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("readMask", readMask) +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsFeaturestoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { 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 *ProjectsLocationsFeaturestoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresListCall { - 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 *ProjectsLocationsFeaturestoresListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { 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 *ProjectsLocationsFeaturestoresListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) 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.googleiamv1setiampolicyrequest) + 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/{+parent}/featurestores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") 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{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListFeaturestoresResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListFeaturestoresResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeaturestoresResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60216,7 +67253,7 @@ func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeaturestoresResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60228,52 +67265,28 @@ func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lists Featurestores in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "Lists the featurestores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` Featurestores created or updated after 2020-01-01. * `labels.env = \"prod\"` Featurestores with label \"env\" set to \"prod\".", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time` * `online_serving_config.fixed_node_count`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of Featurestores to return. The service may return fewer than this value. If unspecified, at most 100 Featurestores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListFeaturestores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeaturestores must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list Featurestores. Format: `projects/{project}/locations/{location}`", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/featurestores", + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeaturestoresResponse" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60282,69 +67295,37 @@ func (c *ProjectsLocationsFeaturestoresListCall) 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 *ProjectsLocationsFeaturestoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeaturestoresResponse) 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.featurestores.patch": +// method id "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues": -type ProjectsLocationsFeaturestoresPatchCall struct { - s *Service - name string - googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single Featurestore. +// StreamingReadFeatureValues: Reads Feature values for multiple +// entities. Depending on their size, data for different entities may be +// broken up across multiple responses. // -// - name: Output only. Name of the Featurestore. Format: +// - entityType: The resource name of the entities' type. Value format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresService) Patch(name string, googlecloudaiplatformv1featurestore *GoogleCloudAiplatformV1Featurestore) *ProjectsLocationsFeaturestoresPatchCall { - c := &ProjectsLocationsFeaturestoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1featurestore = googlecloudaiplatformv1featurestore - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Featurestore -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` * -// `online_serving_config.fixed_node_count` * -// `online_serving_config.scaling` * `online_storage_ttl_days` -func (c *ProjectsLocationsFeaturestoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// }/entityTypes/{entityType}`. For example, for a machine learning +// model predicting user clicks on a website, an EntityType ID could +// be `user`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) StreamingReadFeatureValues(entityType string, googlecloudaiplatformv1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1streamingreadfeaturevaluesrequest = googlecloudaiplatformv1streamingreadfeaturevaluesrequest 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 *ProjectsLocationsFeaturestoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60352,21 +67333,21 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsFeaturestoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { 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 *ProjectsLocationsFeaturestoresPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) 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_ { @@ -60374,34 +67355,36 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1featurestore) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1streamingreadfeaturevaluesrequest) 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:streamingReadFeatureValues") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues" call. +// Exactly one of *GoogleCloudAiplatformV1ReadFeatureValuesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ReadFeatureValuesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60420,7 +67403,7 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ReadFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60432,34 +67415,28 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates the parameters of a single Featurestore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featurestores.patch", + // "description": "Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:streamingReadFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "name": { - // "description": "Output only. Name of the Featurestore. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "entityType": { + // "description": "Required. The resource name of the entities' type. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Featurestore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * `online_storage_ttl_days`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+entityType}:streamingReadFeatureValues", // "request": { - // "$ref": "GoogleCloudAiplatformV1Featurestore" + // "$ref": "GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ReadFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60468,161 +67445,100 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.featurestores.searchFeatures": +// method id "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions": -type ProjectsLocationsFeaturestoresSearchFeaturesCall struct { - s *Service - location string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SearchFeatures: Searches Features matching a query in a given -// project. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - location: The resource name of the Location to search Features. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeaturestoresService) SearchFeatures(location string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c := &ProjectsLocationsFeaturestoresSearchFeaturesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Features to return. The service may return fewer than this value. -// If unspecified, at most 100 Features will be returned. The maximum -// value is 100; any value greater than 100 will be coerced to 100. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.SearchFeatures call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to FeaturestoreService.SearchFeatures, -// except `page_size`, must match the call that provided the page token. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c.urlParams_.Set("pageToken", pageToken) +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) TestIamPermissions(resource string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { + c := &ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// Query sets the optional parameter "query": Query string that is a -// conjunction of field-restricted queries and/or field-restricted -// filters. Field-restricted queries and filters can be combined using -// `AND` to form a conjunction. A field query is in the form -// FIELD:QUERY. This implicitly checks if QUERY exists as a substring -// within Feature's FIELD. The QUERY and the FIELD are converted to a -// sequence of words (i.e. tokens) for comparison. This is done by: * -// Removing leading/trailing whitespace and tokenizing the search value. -// Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore -// `_`, or asterisk `*` are treated as delimiters for tokens. `*` is -// treated as a wildcard that matches characters within a token. * -// Ignoring case. * Prepending an asterisk to the first and appending an -// asterisk to the last token in QUERY. A QUERY must be either a -// singular token or a phrase. A phrase is one or multiple words -// enclosed in double quotation marks ("). With phrases, the order of -// the words is important. Words in the phrase must be matching in order -// and consecutively. Supported FIELDs for field-restricted queries: * -// `feature_id` * `description` * `entity_type_id` Examples: * -// `feature_id: foo` --> Matches a Feature with ID containing the -// substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: -// foo*feature` --> Matches a Feature with ID containing the substring -// `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND -// description: bar` --> Matches a Feature with ID containing the -// substring `foo` and description containing the substring `bar`. -// Besides field queries, the following exact-match filters are -// supported. The exact-match filters do not support wildcards. Unlike -// field-restricted queries, exact-match filters are case-sensitive. * -// `feature_id`: Supports = comparisons. * `description`: Supports = -// comparisons. Multi-token filters should be enclosed in quotes. * -// `entity_type_id`: Supports = comparisons. * `value_type`: Supports = -// and != comparisons. * `labels`: Supports key-value equality as well -// as key presence. * `featurestore_id`: Supports = comparisons. -// Examples: * `description = "foo bar" --> Any Feature with -// description exactly equal to `foo bar` * `value_type = DOUBLE` --> -// Features whose type is DOUBLE. * `labels.active = yes AND labels.env -// = prod` --> Features having both (active: yes) and (env: prod) -// labels. * `labels.env: *` --> Any Feature which has a label with -// `env` as the key. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Query(query string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c.urlParams_.Set("query", query) +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSearchFeaturesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSearchFeaturesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) 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/{+location}/featurestores:searchFeatures") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") 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{ - "location": c.location, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.searchFeatures" call. -// Exactly one of *GoogleCloudAiplatformV1SearchFeaturesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1SearchFeaturesResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1SearchFeaturesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60641,7 +67557,7 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1SearchFeaturesResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60653,41 +67569,31 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Searches Features matching a query in a given project.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores:searchFeatures", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.searchFeatures", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions", // "parameterOrder": [ - // "location" + // "resource" // ], // "parameters": { - // "location": { - // "description": "Required. The resource name of the Location to search Features. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 100 Features will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.SearchFeatures, except `page_size`, must match the call that provided the page token.", + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", // "location": "query", + // "repeated": true, // "type": "string" // }, - // "query": { - // "description": "Query string that is a conjunction of field-restricted queries and/or field-restricted filters. Field-restricted queries and filters can be combined using `AND` to form a conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for comparison. This is done by: * Removing leading/trailing whitespace and tokenizing the search value. Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as delimiters for tokens. `*` is treated as a wildcard that matches characters within a token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk to the last token in QUERY. A QUERY must be either a singular token or a phrase. A phrase is one or multiple words enclosed in double quotation marks (\"). With phrases, the order of the words is important. Words in the phrase must be matching in order and consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * `description` * `entity_type_id` Examples: * `feature_id: foo` --\u003e Matches a Feature with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --\u003e Matches a Feature with ID containing the substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --\u003e Matches a Feature with ID containing the substring `foo` and description containing the substring `bar`. Besides field queries, the following exact-match filters are supported. The exact-match filters do not support wildcards. Unlike field-restricted queries, exact-match filters are case-sensitive. * `feature_id`: Supports = comparisons. * `description`: Supports = comparisons. Multi-token filters should be enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: Supports = and != comparisons. * `labels`: Supports key-value equality as well as key presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = \"foo bar\"` --\u003e Any Feature with description exactly equal to `foo bar` * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with `env` as the key.", - // "location": "query", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v1/{+location}/featurestores:searchFeatures", + // "path": "v1/{+resource}:testIamPermissions", // "response": { - // "$ref": "GoogleCloudAiplatformV1SearchFeaturesResponse" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60696,57 +67602,39 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1SearchFeaturesResponse) 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.featurestores.setIamPolicy": +// method id "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues": -type ProjectsLocationsFeaturestoresSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1writefeaturevaluesrequest *GoogleCloudAiplatformV1WriteFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// WriteFeatureValues: Writes Feature values of one or more entities of +// an EntityType. The Feature values are merged into existing entities +// if any. The Feature values to be written must have timestamp within +// the online storage retention. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresSetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - entityType: The resource name of the EntityType for the entities +// being written. Value format: +// `projects/{project}/locations/{location}/featurestores/ +// {featurestore}/entityTypes/{entityType}`. For example, for a +// machine learning model predicting user clicks on a website, an +// EntityType ID could be `user`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) WriteFeatureValues(entityType string, googlecloudaiplatformv1writefeaturevaluesrequest *GoogleCloudAiplatformV1WriteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1writefeaturevaluesrequest = googlecloudaiplatformv1writefeaturevaluesrequest 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60754,21 +67642,21 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) 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_ { @@ -60776,14 +67664,14 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1writefeaturevaluesrequest) 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:writeFeatureValues") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -60791,19 +67679,21 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues" call. +// Exactly one of *GoogleCloudAiplatformV1WriteFeatureValuesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1WriteFeatureValuesResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1WriteFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60822,7 +67712,7 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudAiplatformV1WriteFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60834,28 +67724,28 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:setIamPolicy", + // "description": "Writes Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:writeFeatureValues", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.setIamPolicy", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues", // "parameterOrder": [ - // "resource" + // "entityType" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "entityType": { + // "description": "Required. The resource name of the EntityType for the entities being written. Value format: `projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", + // "path": "v1/{+entityType}:writeFeatureValues", // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" + // "$ref": "GoogleCloudAiplatformV1WriteFeatureValuesRequest" // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudAiplatformV1WriteFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60864,47 +67754,34 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featurestores.testIamPermissions": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate": -type ProjectsLocationsFeaturestoresTestIamPermissionsCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1batchcreatefeaturesrequest *GoogleCloudAiplatformV1BatchCreateFeaturesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// BatchCreate: Creates a batch of Features in a given EntityType. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresService) TestIamPermissions(resource string) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { - c := &ProjectsLocationsFeaturestoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// Permissions sets the optional parameter "permissions": The set of -// permissions to check for the `resource`. Permissions with wildcards -// (such as `*` or `storage.*`) are not allowed. For more information -// see IAM Overview -// (https://cloud.google.com/iam/docs/overview#permissions). -func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { - c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) +// - parent: The resource name of the EntityType to create the batch of +// Features under. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) BatchCreate(parent string, googlecloudaiplatformv1batchcreatefeaturesrequest *GoogleCloudAiplatformV1BatchCreateFeaturesRequest) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1batchcreatefeaturesrequest = googlecloudaiplatformv1batchcreatefeaturesrequest 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 *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60912,21 +67789,21 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) 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 *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { 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 *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) 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_ { @@ -60934,9 +67811,14 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt str } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchcreatefeaturesrequest) + 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features:batchCreate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -60944,20 +67826,19 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt str } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate" 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 *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60976,7 +67857,7 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60988,31 +67869,28 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...google } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:testIamPermissions", + // "description": "Creates a batch of Features in a given EntityType.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features:batchCreate", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.testIamPermissions", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "permissions": { - // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "parent": { + // "description": "Required. The resource name of the EntityType to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+parent}/features:batchCreate", + // "request": { + // "$ref": "GoogleCloudAiplatformV1BatchCreateFeaturesRequest" + // }, // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -61021,45 +67899,46 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...google } -// method id "aiplatform.projects.locations.featurestores.entityTypes.create": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.create": -type ProjectsLocationsFeaturestoresEntityTypesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new EntityType in a given Featurestore. +// Create: Creates a new Feature in a given EntityType. // -// - parent: The resource name of the Featurestore to create -// EntityTypes. Format: +// - parent: The resource name of the EntityType or FeatureGroup to +// create a Feature. Format for entity_type as parent: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Create(parent string, googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { - c := &ProjectsLocationsFeaturestoresEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1entitytype = googlecloudaiplatformv1entitytype + c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature return c } -// EntityTypeId sets the optional parameter "entityTypeId": Required. -// The ID to use for the EntityType, which will become the final -// component of the EntityType's resource name. This value may be up to -// 60 characters, and valid characters are `[a-z0-9_]`. The first -// character cannot be a number. The value must be unique within a -// featurestore. -func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) EntityTypeId(entityTypeId string) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { - c.urlParams_.Set("entityTypeId", entityTypeId) +// FeatureId sets the optional parameter "featureId": Required. The ID +// to use for the Feature, which will become the final component of the +// Feature's resource name. This value may be up to 128 characters, and +// valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within an EntityType/FeatureGroup. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { + c.urlParams_.Set("featureId", featureId) 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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61067,21 +67946,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Fields(s ...google // 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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { 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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) 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_ { @@ -61089,14 +67968,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1entitytype) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) 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/{+parent}/entityTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -61109,14 +67988,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.create" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61147,30 +68026,30 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates a new EntityType in a given Featurestore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", + // "description": "Creates a new Feature in a given EntityType.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.create", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "entityTypeId": { - // "description": "Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a featurestore.", + // "featureId": { + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Featurestore to create EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/entityTypes", + // "path": "v1/{+parent}/features", // "request": { - // "$ref": "GoogleCloudAiplatformV1EntityType" + // "$ref": "GoogleCloudAiplatformV1Feature" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -61182,9 +68061,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.featurestores.entityTypes.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.delete": -type ProjectsLocationsFeaturestoresEntityTypesDeleteCall struct { +type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61192,30 +68071,23 @@ type ProjectsLocationsFeaturestoresEntityTypesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single EntityType. The EntityType must not have any -// Features or `force` must be set to true for the request to succeed. +// Delete: Deletes a single Feature. // -// - name: The name of the EntityType to be deleted. Format: +// - name: The name of the Features to be deleted. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// Features for this EntityType will also be deleted. (Otherwise, the -// request will only work if the EntityType has no Features.) -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61223,21 +68095,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Fields(s ...google // 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) 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_ { @@ -61260,14 +68132,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.delete" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61298,23 +68170,18 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to true for the request to succeed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "description": "Deletes a single Feature.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.delete", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "description": "If set to true, any Features for this EntityType will also be deleted. (Otherwise, the request will only work if the EntityType has no Features.)", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the EntityType to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } @@ -61330,98 +68197,100 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.get": -type ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1deletefeaturevaluesrequest *GoogleCloudAiplatformV1DeleteFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// DeleteFeatureValues: Delete Feature values from Featurestore. The -// progress of the deletion is tracked by the returned operation. The -// deleted feature values are guaranteed to be invisible to subsequent -// read operations after the operation is marked as successfully done. -// If a delete feature values operation fails, the feature values -// returned from reads and exports may be inconsistent. If consistency -// is required, the caller must retry the same delete request again and -// wait till the new operation returned is marked as successfully done. +// Get: Gets details of a single Feature. // -// - entityType: The resource name of the EntityType grouping the -// Features for which values are being deleted from. Format: +// - name: The name of the Feature resource. Format for entity_type as +// parent: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) DeleteFeatureValues(entityType string, googlecloudaiplatformv1deletefeaturevaluesrequest *GoogleCloudAiplatformV1DeleteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1deletefeaturevaluesrequest = googlecloudaiplatformv1deletefeaturevaluesrequest +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall{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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1deletefeaturevaluesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:deleteFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues" 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.featurestores.entityTypes.features.get" call. +// Exactly one of *GoogleCloudAiplatformV1Feature or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Feature.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Feature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61440,7 +68309,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Feature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -61452,28 +68321,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(op } return ret, nil // { - // "description": "Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:deleteFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues", + // "description": "Gets details of a single Feature.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.get", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType grouping the Features for which values are being deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", + // "name": { + // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+entityType}:deleteFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1DeleteFeatureValuesRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1Feature" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -61482,92 +68348,170 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.list": -type ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1exportfeaturevaluesrequest *GoogleCloudAiplatformV1ExportFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ExportFeatureValues: Exports Feature values from all the entities of -// a target EntityType. +// List: Lists Features in a given EntityType. // -// - entityType: The resource name of the EntityType from which to -// export Feature values. Format: +// - parent: The resource name of the Location to list Features. Format +// for entity_type as parent: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) ExportFeatureValues(entityType string, googlecloudaiplatformv1exportfeaturevaluesrequest *GoogleCloudAiplatformV1ExportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1exportfeaturevaluesrequest = googlecloudaiplatformv1exportfeaturevaluesrequest +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the Features that +// match the filter expression. The following filters are supported: * +// `value_type`: Supports = and != comparisons. * `create_time`: +// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC +// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality as well as key presence. Examples: * `value_type = +// DOUBLE` --> Features whose type is DOUBLE. * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> Features having both (active: yes) and (env: +// prod) labels. * `labels.env: *` --> Any Feature which has a label +// with 'env' as the key. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// LatestStatsCount sets the optional parameter "latestStatsCount": Only +// applicable for Vertex AI Feature Store (Legacy). If set, return the +// most recent ListFeaturesRequest.latest_stats_count of stats for each +// Feature in response. Valid value is [0, 10]. If number of stats +// exists < ListFeaturesRequest.latest_stats_count, return all existing +// stats. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) + 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: * `feature_id` * +// `value_type` (Not supported for FeatureRegistry Feature) * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 1000 Features will be returned. The maximum +// value is 1000; any value greater than 1000 will be coerced to 1000. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.ListFeatures call or +// FeatureRegistryService.ListFeatures call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to FeaturestoreService.ListFeatures or +// FeatureRegistryService.ListFeatures must match the call that provided +// the page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1exportfeaturevaluesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:exportFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues" 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 *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListFeaturesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListFeaturesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeaturesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61586,7 +68530,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1ListFeaturesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -61598,28 +68542,58 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(op } return ret, nil // { - // "description": "Exports Feature values from all the entities of a target EntityType.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:exportFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues", + // "description": "Lists Features in a given EntityType.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.list", // "parameterOrder": [ - // "entityType" + // "parent" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType from which to export Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "filter": { + // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "location": "query", + // "type": "string" + // }, + // "latestStatsCount": { + // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+entityType}:exportFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ExportFeatureValuesRequest" - // }, + // "path": "v1/{+parent}/features", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListFeaturesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -61628,79 +68602,113 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.get": +// 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeaturesResponse) 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.featurestores.entityTypes.features.patch": -type ProjectsLocationsFeaturestoresEntityTypesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single EntityType. +// Patch: Updates the parameters of a single Feature. // -// - name: The name of the EntityType resource. Format: +// - name: Immutable. Name of the Feature. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/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. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Patch(name string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Features resource +// by the update. The fields specified in the update_mask are relative +// to the resource, not the full request. A field will be overwritten if +// it is in the mask. If the user does not provide a mask then only the +// non-empty fields present in the request will be overwritten. Set the +// update_mask to `*` to override all fields. Updatable fields: * +// `description` * `labels` * `disable_monitoring` (Not supported for +// FeatureRegistry Feature) +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) 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.googlecloudaiplatformv1feature) + 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -61711,15 +68719,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.get" call. -// Exactly one of *GoogleCloudAiplatformV1EntityType or error will be +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.patch" call. +// Exactly one of *GoogleCloudAiplatformV1Feature or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1EntityType.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EntityType, error) { +// either *GoogleCloudAiplatformV1Feature.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Feature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61738,7 +68745,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EntityType{ + ret := &GoogleCloudAiplatformV1Feature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -61750,25 +68757,34 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets details of a single EntityType.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.get", + // "description": "Updates the parameters of a single Feature.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the EntityType resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "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.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Feature" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1EntityType" + // "$ref": "GoogleCloudAiplatformV1Feature" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -61777,52 +68793,38 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel": -type ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall struct { +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// 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`. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) GetIamPolicy(resource string) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall{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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61830,21 +68832,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) 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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) 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_ { @@ -61854,7 +68856,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(al var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -61862,19 +68864,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// *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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61893,7 +68895,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -61905,31 +68907,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...g } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:getIamPolicy", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -61938,49 +68934,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...g } -// method id "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1importfeaturevaluesrequest *GoogleCloudAiplatformV1ImportFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ImportFeatureValues: Imports Feature values into the Featurestore -// from a source storage. The progress of the import is tracked by the -// returned operation. The imported features are guaranteed to be -// visible to subsequent read operations after the operation is marked -// as successfully done. If an import operation fails, the Feature -// values returned from reads and exports may be inconsistent. If -// consistency is required, the caller must retry the same import -// request again and wait till the new operation returned is marked as -// successfully done. There are also scenarios where the caller can -// cause inconsistency. - Source data for import contains multiple -// distinct Feature values for the same entity ID and timestamp. - -// Source is modified during an import. This includes adding, updating, -// or removing source data and/or metadata. Examples of updating -// metadata include but are not limited to changing storage location, -// storage class, or retention policy. - Online serving cluster is -// under-provisioned. +// 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`. // -// - entityType: The resource name of the EntityType grouping the -// Features for which values are being imported. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) ImportFeatureValues(entityType string, googlecloudaiplatformv1importfeaturevaluesrequest *GoogleCloudAiplatformV1ImportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1importfeaturevaluesrequest = googlecloudaiplatformv1importfeaturevaluesrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall{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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61988,21 +68967,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Field // 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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) 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_ { @@ -62010,34 +68989,29 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) doReq } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1importfeaturevaluesrequest) - 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/{+entityType}:importFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues" 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.featurestores.entityTypes.features.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62056,7 +69030,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62068,28 +69042,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(op } return ret, nil // { - // "description": "Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:importFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType grouping the Features for which values are being imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+entityType}:importFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ImportFeatureValuesRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62098,87 +69069,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesListCall struct { +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists EntityTypes in a given Featurestore. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The resource name of the Featurestore to list EntityTypes. -// Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Lists the EntityTypes -// that match the filter expression. The following filters are -// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and -// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality as -// well as key presence. Examples: * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> EntityTypes having both (active: yes) and -// (env: prod) labels. * `labels.env: *` --> Any EntityType which has a -// label with 'env' as the key. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - 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: * `entity_type_id` * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of EntityTypes to return. The service may return fewer than this -// value. If unspecified, at most 1000 EntityTypes will be returned. The -// maximum value is 1000; any value greater than 1000 will be coerced to -// 1000. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListEntityTypes call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to FeaturestoreService.ListEntityTypes must -// match the call that provided the page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62188,7 +69104,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -62196,21 +69112,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) 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_ { @@ -62223,7 +69139,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/entityTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -62231,21 +69147,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListEntityTypesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListEntityTypesResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListEntityTypesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62264,7 +69178,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListEntityTypesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62276,52 +69190,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists EntityTypes in a given Featurestore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.list", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Lists the EntityTypes that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any EntityType which has a label with 'env' as the key.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `entity_type_id` * `create_time` * `update_time`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of EntityTypes to return. The service may return fewer than this value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListEntityTypes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListEntityTypes must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Featurestore to list EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/entityTypes", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListEntityTypesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62330,118 +69217,100 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListEntityTypesResponse) 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.featurestores.entityTypes.patch": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single EntityType. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - name: Immutable. Name of the EntityType. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` The last part entity_type is assigned -// by the client. The entity_type can be up to 64 characters long and -// can consist only of ASCII Latin letters A-Z and a-z and -// underscore(_), and ASCII digits 0-9 starting with a letter. The -// value will be unique given a featurestore. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Patch(name string, googlecloudaiplatformv1entitytype *GoogleCloudAiplatformV1EntityType) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { - c := &ProjectsLocationsFeaturestoresEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1entitytype = googlecloudaiplatformv1entitytype return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the EntityType -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `description` * `labels` * -// `monitoring_config.snapshot_analysis.disabled` * -// `monitoring_config.snapshot_analysis.monitoring_interval_days` * -// `monitoring_config.snapshot_analysis.staleness_days` * -// `monitoring_config.import_features_analysis.state` * -// `monitoring_config.import_features_analysis.anomaly_detection_baseline -// ` * `monitoring_config.numerical_threshold_config.value` * -// `monitoring_config.categorical_threshold_config.value` * -// `offline_storage_ttl_days` -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1entitytype) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -62452,15 +69321,15 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.patch" call. -// Exactly one of *GoogleCloudAiplatformV1EntityType or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1EntityType.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1EntityType, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62479,7 +69348,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1EntityType{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62491,34 +69360,41 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleap } return ret, nil // { - // "description": "Updates the parameters of a single EntityType.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.patch", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is assigned by the client. The entity_type can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given a featurestore.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the EntityType resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * `monitoring_config.snapshot_analysis.monitoring_interval_days` * `monitoring_config.snapshot_analysis.staleness_days` * `monitoring_config.import_features_analysis.state` * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * `monitoring_config.numerical_threshold_config.value` * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days`", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1EntityType" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1EntityType" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62527,38 +69403,68 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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) + } +} -type ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1readfeaturevaluesrequest *GoogleCloudAiplatformV1ReadFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait": + +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadFeatureValues: Reads Feature values of a specific entity of an -// EntityType. For reading feature values of multiple entities of an -// EntityType, please use StreamingReadFeatureValues. +// 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. // -// - entityType: The resource name of the EntityType for the entity -// being read. Value format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. For example, for a machine learning -// model predicting user clicks on a website, an EntityType ID could -// be `user`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) ReadFeatureValues(entityType string, googlecloudaiplatformv1readfeaturevaluesrequest *GoogleCloudAiplatformV1ReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1readfeaturevaluesrequest = googlecloudaiplatformv1readfeaturevaluesrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62566,21 +69472,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Fields( // 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 *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) 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_ { @@ -62588,14 +69494,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doReque } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1readfeaturevaluesrequest) - 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/{+entityType}:readFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -62603,21 +69504,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doReque } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues" call. -// Exactly one of *GoogleCloudAiplatformV1ReadFeatureValuesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ReadFeatureValuesResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadFeatureValuesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62636,7 +69535,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ReadFeatureValuesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62648,28 +69547,31 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts } return ret, nil // { - // "description": "Reads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:readFeatureValues", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType for the entity being read. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+entityType}:readFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ReadFeatureValuesRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1ReadFeatureValuesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62678,36 +69580,38 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts } -// method id "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel": -type ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// 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`. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62715,21 +69619,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) 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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) 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_ { @@ -62737,14 +69641,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -62752,19 +69651,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// *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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62783,7 +69682,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62795,28 +69694,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...g } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:setIamPolicy", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62825,37 +69721,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...g } -// method id "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// StreamingReadFeatureValues: Reads Feature values for multiple -// entities. Depending on their size, data for different entities may be -// broken up across multiple responses. +// 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`. // -// - entityType: The resource name of the entities' type. Value format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. For example, for a machine learning -// model predicting user clicks on a website, an EntityType ID could -// be `user`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) StreamingReadFeatureValues(entityType string, googlecloudaiplatformv1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1streamingreadfeaturevaluesrequest = googlecloudaiplatformv1streamingreadfeaturevaluesrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62863,21 +69754,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall // 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 *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) 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_ { @@ -62885,36 +69776,29 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1streamingreadfeaturevaluesrequest) - 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/{+entityType}:streamingReadFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues" call. -// Exactly one of *GoogleCloudAiplatformV1ReadFeatureValuesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ReadFeatureValuesResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadFeatureValuesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62933,7 +69817,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ReadFeatureValuesResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62945,28 +69829,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } return ret, nil // { - // "description": "Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:streamingReadFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the entities' type. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+entityType}:streamingReadFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1ReadFeatureValuesResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62975,100 +69856,97 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } -// method id "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// 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. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) TestIamPermissions(resource string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { - c := &ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// Permissions sets the optional parameter "permissions": The set of -// permissions to check for the `resource`. Permissions with wildcards -// (such as `*` or `storage.*`) are not allowed. For more information -// see IAM Overview -// (https://cloud.google.com/iam/docs/overview#permissions). -func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { - c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63087,7 +69965,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63099,31 +69977,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opt } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "permissions": { - // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63132,98 +70004,119 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opt } -// method id "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1writefeaturevaluesrequest *GoogleCloudAiplatformV1WriteFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// WriteFeatureValues: Writes Feature values of one or more entities of -// an EntityType. The Feature values are merged into existing entities -// if any. The Feature values to be written must have timestamp within -// the online storage retention. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - entityType: The resource name of the EntityType for the entities -// being written. Value format: -// `projects/{project}/locations/{location}/featurestores/ -// {featurestore}/entityTypes/{entityType}`. For example, for a -// machine learning model predicting user clicks on a website, an -// EntityType ID could be `user`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) WriteFeatureValues(entityType string, googlecloudaiplatformv1writefeaturevaluesrequest *GoogleCloudAiplatformV1WriteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1writefeaturevaluesrequest = googlecloudaiplatformv1writefeaturevaluesrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1writefeaturevaluesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+entityType}:writeFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues" call. -// Exactly one of *GoogleCloudAiplatformV1WriteFeatureValuesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1WriteFeatureValuesResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1WriteFeatureValuesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63242,7 +70135,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1WriteFeatureValuesResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63254,28 +70147,41 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opt } return ret, nil // { - // "description": "Writes Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:writeFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.list", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType for the entities being written. Value format: `projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", + // "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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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/{+entityType}:writeFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1WriteFeatureValuesRequest" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1WriteFeatureValuesResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63284,34 +70190,68 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opt } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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) + } +} -type ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1batchcreatefeaturesrequest *GoogleCloudAiplatformV1BatchCreateFeaturesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.wait": + +type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchCreate: Creates a batch of Features in a given EntityType. +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. // -// - parent: The resource name of the EntityType to create the batch of -// Features under. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) BatchCreate(parent string, googlecloudaiplatformv1batchcreatefeaturesrequest *GoogleCloudAiplatformV1BatchCreateFeaturesRequest) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1batchcreatefeaturesrequest = googlecloudaiplatformv1batchcreatefeaturesrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63319,21 +70259,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Field // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) 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_ { @@ -63341,14 +70281,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doReq } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1batchcreatefeaturesrequest) - 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/{+parent}/features:batchCreate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -63356,19 +70291,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doReq } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63399,26 +70334,29 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(op } return ret, nil // { - // "description": "Creates a batch of Features in a given EntityType.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features:batchCreate", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the EntityType to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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/{+parent}/features:batchCreate", - // "request": { - // "$ref": "GoogleCloudAiplatformV1BatchCreateFeaturesRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -63429,46 +70367,38 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.create": +// method id "aiplatform.projects.locations.featurestores.operations.cancel": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Feature in a given EntityType. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the EntityType or FeatureGroup to -// create a Feature. Format for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature - return c -} - -// FeatureId sets the optional parameter "featureId": Required. The ID -// to use for the Feature, which will become the final component of the -// Feature's resource name. This value may be up to 128 characters, and -// valid characters are `[a-z0-9_]`. The first character cannot be a -// number. The value must be unique within an EntityType/FeatureGroup. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { - c.urlParams_.Set("featureId", featureId) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63476,21 +70406,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) 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_ { @@ -63498,14 +70428,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) - 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/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -63513,19 +70438,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63544,7 +70469,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63556,33 +70481,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. } return ret, nil // { - // "description": "Creates a new Feature in a given EntityType.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.create", + // "id": "aiplatform.projects.locations.featurestores.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "featureId": { - // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/features", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Feature" - // }, + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63591,9 +70508,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.delete": +// method id "aiplatform.projects.locations.featurestores.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { +type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63601,15 +70518,14 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single Feature. +// 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 Features to be deleted. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/features/{feature}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63617,7 +70533,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63625,21 +70541,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) 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_ { @@ -63662,14 +70578,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63688,7 +70604,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63700,25 +70616,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. } return ret, nil // { - // "description": "Deletes a single Feature.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.delete", + // "id": "aiplatform.projects.locations.featurestores.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63727,9 +70643,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.get": +// method id "aiplatform.projects.locations.featurestores.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { +type ProjectsLocationsFeaturestoresOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -63738,16 +70654,13 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { header_ http.Header } -// Get: Gets details of a single Feature. +// 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 Feature resource. Format for entity_type as -// parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresOperationsService) Get(name string) *ProjectsLocationsFeaturestoresOperationsGetCall { + c := &ProjectsLocationsFeaturestoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -63755,7 +70668,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63765,7 +70678,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -63773,21 +70686,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) 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_ { @@ -63813,14 +70726,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.get" call. -// Exactly one of *GoogleCloudAiplatformV1Feature or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Feature.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Feature, error) { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63839,7 +70752,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Feature{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63851,25 +70764,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go } return ret, nil // { - // "description": "Gets details of a single Feature.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.get", + // "id": "aiplatform.projects.locations.featurestores.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Feature" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63878,103 +70791,53 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.list": +// method id "aiplatform.projects.locations.featurestores.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall struct { +type ProjectsLocationsFeaturestoresOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Features in a given EntityType. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list Features. Format -// for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresOperationsService) List(name string) *ProjectsLocationsFeaturestoresOperationsListCall { + c := &ProjectsLocationsFeaturestoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Lists the Features that -// match the filter expression. The following filters are supported: * -// `value_type`: Supports = and != comparisons. * `create_time`: -// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC -// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= -// comparisons. Values must be in RFC 3339 format. * `labels`: Supports -// key-value equality as well as key presence. Examples: * `value_type = -// DOUBLE` --> Features whose type is DOUBLE. * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> Features having both (active: yes) and (env: -// prod) labels. * `labels.env: *` --> Any Feature which has a label -// with 'env' as the key. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// LatestStatsCount sets the optional parameter "latestStatsCount": Only -// applicable for Vertex AI Feature Store (Legacy). If set, return the -// most recent ListFeaturesRequest.latest_stats_count of stats for each -// Feature in response. Valid value is [0, 10]. If number of stats -// exists < ListFeaturesRequest.latest_stats_count, return all existing -// stats. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) - 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: * `feature_id` * -// `value_type` (Not supported for FeatureRegistry Feature) * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Features to return. The service may return fewer than this value. -// If unspecified, at most 1000 Features will be returned. The maximum -// value is 1000; any value greater than 1000 will be coerced to 1000. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListFeatures call or -// FeatureRegistryService.ListFeatures call. Provide this to retrieve -// the subsequent page. When paginating, all other parameters provided -// to FeaturestoreService.ListFeatures or -// FeatureRegistryService.ListFeatures must match the call that provided -// the page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63984,7 +70847,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Fields(s ... // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -63992,21 +70855,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) IfNoneMatch( // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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_ { @@ -64019,7 +70882,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(al var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -64027,21 +70890,20 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListFeaturesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListFeaturesResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListFeaturesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64060,7 +70922,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListFeaturesResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64072,58 +70934,41 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g } return ret, nil // { - // "description": "Lists Features in a given EntityType.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", + // "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}/featurestores/{featurestoresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.list", + // "id": "aiplatform.projects.locations.featurestores.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "latestStatsCount": { - // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+parent}/features", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListFeaturesResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64135,7 +70980,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListFeaturesResponse) error) error { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 { @@ -64153,53 +70998,47 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Pages(ctx co } } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.patch": +// method id "aiplatform.projects.locations.featurestores.operations.wait": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single Feature. +// 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: Immutable. Name of the Feature. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/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. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Patch(name string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1feature = googlecloudaiplatformv1feature return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Features resource -// by the update. The fields specified in the update_mask are relative -// to the resource, not the full request. A field will be overwritten if -// it is in the mask. If the user does not provide a mask then only the -// non-empty fields present in the request will be overwritten. Set the -// update_mask to `*` to override all fields. Updatable fields: * -// `description` * `labels` * `disable_monitoring` (Not supported for -// FeatureRegistry Feature) -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64207,21 +71046,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) 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_ { @@ -64229,16 +71068,167 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1feature) + 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.featurestores.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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + 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}/featurestores/{featurestoresId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.cancel": + +type ProjectsLocationsHyperparameterTuningJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a HyperparameterTuningJob. Starts asynchronous +// cancellation on the HyperparameterTuningJob. The server makes a best +// effort to cancel the job, but success is not guaranteed. Clients can +// use JobService.GetHyperparameterTuningJob or other methods to check +// whether the cancellation succeeded or whether the job completed +// despite cancellation. On successful cancellation, the +// HyperparameterTuningJob is not deleted; instead it becomes a job with +// a HyperparameterTuningJob.error value with a google.rpc.Status.code +// of 1, corresponding to `Code.CANCELLED`, and +// HyperparameterTuningJob.state is set to `CANCELLED`. +// +// - name: The name of the HyperparameterTuningJob to cancel. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h +// yperparameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Cancel(name string, googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + c := &ProjectsLocationsHyperparameterTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest = googlecloudaiplatformv1cancelhyperparametertuningjobrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + 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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest) 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -64249,14 +71239,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.patch" call. -// Exactly one of *GoogleCloudAiplatformV1Feature or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Feature.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Feature, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64275,7 +71265,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Feature{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64287,34 +71277,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ... } return ret, nil // { - // "description": "Updates the parameters of a single Feature.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.patch", + // "description": "Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "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.", + // "description": "Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:cancel", // "request": { - // "$ref": "GoogleCloudAiplatformV1Feature" + // "$ref": "GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1Feature" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64323,38 +71307,33 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ... } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.create": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsHyperparameterTuningJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob + 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 HyperparameterTuningJob // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the +// HyperparameterTuningJob in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Create(parent string, googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob) *ProjectsLocationsHyperparameterTuningJobsCreateCall { + c := &ProjectsLocationsHyperparameterTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1hyperparametertuningjob = googlecloudaiplatformv1hyperparametertuningjob return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64362,31 +71341,36 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCreateCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) 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 + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1hyperparametertuningjob) + 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}/hyperparameterTuningJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -64394,19 +71378,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } 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.featurestores.entityTypes.features.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1HyperparameterTuningJob or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1HyperparameterTuningJob.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64425,7 +71411,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64437,25 +71423,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:cancel", + // "description": "Creates a HyperparameterTuningJob", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.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 HyperparameterTuningJob in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+parent}/hyperparameterTuningJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1HyperparameterTuningJob" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1HyperparameterTuningJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64464,9 +71453,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.delete": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall struct { +type ProjectsLocationsHyperparameterTuningJobsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -64474,14 +71463,14 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall struc 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 HyperparameterTuningJob. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the HyperparameterTuningJob resource to be +// deleted. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h +// yperparameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { + c := &ProjectsLocationsHyperparameterTuningJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -64489,7 +71478,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Del // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64497,21 +71486,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -64534,14 +71523,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64560,7 +71549,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64572,25 +71561,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", + // "description": "Deletes a HyperparameterTuningJob.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64599,9 +71588,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.get": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { +type ProjectsLocationsHyperparameterTuningJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -64610,13 +71599,13 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets a HyperparameterTuningJob // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the HyperparameterTuningJob resource. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h +// yperparameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsGetCall { + c := &ProjectsLocationsHyperparameterTuningJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -64624,7 +71613,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64634,7 +71623,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -64642,21 +71631,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfN // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -64682,14 +71671,16 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doR return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1HyperparameterTuningJob or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1HyperparameterTuningJob.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64708,7 +71699,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64720,25 +71711,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", + // "description": "Gets a HyperparameterTuningJob", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1HyperparameterTuningJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64747,53 +71738,72 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.list": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall struct { +type ProjectsLocationsHyperparameterTuningJobsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists HyperparameterTuningJobs in a Location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list the +// HyperparameterTuningJobs from. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) List(parent string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c := &ProjectsLocationsHyperparameterTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +// page token. Typically obtained via +// ListHyperparameterTuningJobsResponse.next_page_token of the previous +// JobService.ListHyperparameterTuningJobs call. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) ReadMask(readMask string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c.urlParams_.Set("readMask", readMask) + 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64803,7 +71813,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsListCall { c.ifNoneMatch_ = entityTag return c } @@ -64811,21 +71821,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) If // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -64838,7 +71848,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) do 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}/hyperparameterTuningJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -64846,20 +71856,22 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) do } 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.featurestores.entityTypes.features.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.ServerRes +// ponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64878,7 +71890,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64890,26 +71902,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations", + // "description": "Lists HyperparameterTuningJobs in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", - // "required": true, - // "type": "string" - // }, // "pageSize": { // "description": "The standard list page size.", // "format": "int32", @@ -64917,14 +71922,27 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "The standard list page token. Typically obtained via ListHyperparameterTuningJobsResponse.next_page_token of the previous JobService.ListHyperparameterTuningJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+parent}/hyperparameterTuningJobs", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64936,7 +71954,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -64954,165 +71972,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pa } } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait": - -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. -// -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := 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.featurestores.entityTypes.features.operations.wait" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}:wait", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel": -type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -65132,8 +71994,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -65141,7 +72003,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65149,21 +72011,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -65186,14 +72048,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65225,9 +72087,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -65235,7 +72097,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -65251,9 +72113,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.delete": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -65267,8 +72129,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -65276,7 +72138,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65284,21 +72146,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -65321,14 +72183,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.delete" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65360,9 +72222,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", // "parameterOrder": [ // "name" // ], @@ -65370,7 +72232,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -65386,9 +72248,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.get": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -65402,8 +72264,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -65411,7 +72273,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65421,7 +72283,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s .. // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -65429,21 +72291,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -65469,14 +72331,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.get" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65508,9 +72370,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.get", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", // "parameterOrder": [ // "name" // ], @@ -65518,7 +72380,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -65534,9 +72396,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.list": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -65550,29 +72412,29 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) List(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -65580,7 +72442,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65590,7 +72452,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s . // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -65598,21 +72460,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatc // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -65638,7 +72500,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.list" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -65646,7 +72508,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest( // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65678,9 +72540,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.list", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", // "parameterOrder": [ // "name" // ], @@ -65693,7 +72555,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" // }, @@ -65723,7 +72585,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -65741,9 +72603,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx } } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.wait": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait": -type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -65763,8 +72625,8 @@ type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -65773,7 +72635,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name s // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -65781,7 +72643,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(ti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65789,21 +72651,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -65826,14 +72688,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.wait" call. +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. // 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65865,9 +72727,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts .. 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", // "parameterOrder": [ // "name" // ], @@ -65875,7 +72737,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts .. // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -65897,38 +72759,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts .. } -// method id "aiplatform.projects.locations.featurestores.operations.cancel": +// method id "aiplatform.projects.locations.indexEndpoints.create": -type ProjectsLocationsFeaturestoresOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// Create: Creates an IndexEndpoint. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the +// IndexEndpoint in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexEndpointsService) Create(parent string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsCreateCall { + c := &ProjectsLocationsIndexEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65936,21 +72792,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) 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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsCreateCall { 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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsCreateCall) 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_ { @@ -65958,9 +72814,14 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1indexendpoint) + 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}/indexEndpoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -65968,19 +72829,19 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt strin } 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.featurestores.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.indexEndpoints.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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65999,7 +72860,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66011,25 +72872,28 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/operations/{operationsId}:cancel", + // "description": "Creates an IndexEndpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.operations.cancel", + // "id": "aiplatform.projects.locations.indexEndpoints.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 IndexEndpoint in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+parent}/indexEndpoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66038,9 +72902,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featurestores.operations.delete": +// method id "aiplatform.projects.locations.indexEndpoints.delete": -type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { +type ProjectsLocationsIndexEndpointsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -66048,14 +72912,13 @@ type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes an IndexEndpoint. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the IndexEndpoint resource to be deleted. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLocationsIndexEndpointsDeleteCall { + c := &ProjectsLocationsIndexEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -66063,7 +72926,7 @@ func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66071,21 +72934,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) 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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeleteCall { 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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -66108,14 +72971,14 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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.indexEndpoints.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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66134,7 +72997,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66146,25 +73009,25 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/operations/{operationsId}", + // "description": "Deletes an IndexEndpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.operations.delete", + // "id": "aiplatform.projects.locations.indexEndpoints.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the IndexEndpoint resource to be deleted. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66173,97 +73036,92 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featurestores.operations.get": +// method id "aiplatform.projects.locations.indexEndpoints.deployIndex": -type ProjectsLocationsFeaturestoresOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsDeployIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// DeployIndex: Deploys an Index into this IndexEndpoint, creating a +// DeployedIndex within it. Only non-empty Indexes can be deployed. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresOperationsService) Get(name string) *ProjectsLocationsFeaturestoresOperationsGetCall { - c := &ProjectsLocationsFeaturestoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - indexEndpoint: The name of the IndexEndpoint resource into which to +// deploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) DeployIndex(indexEndpoint string, googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest) *ProjectsLocationsIndexEndpointsDeployIndexCall { + c := &ProjectsLocationsIndexEndpointsDeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1deployindexrequest = googlecloudaiplatformv1deployindexrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeployIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets 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 *ProjectsLocationsFeaturestoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsGetCall { - 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 *ProjectsLocationsFeaturestoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeployIndexCall { 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 *ProjectsLocationsFeaturestoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) 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.googlecloudaiplatformv1deployindexrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:deployIndex") 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. // 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 *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66294,23 +73152,26 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.operations.get", + // "description": "Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:deployIndex", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.deployIndex", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "indexEndpoint": { + // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+indexEndpoint}:deployIndex", + // "request": { + // "$ref": "GoogleCloudAiplatformV1DeployIndexRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -66321,119 +73182,93 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.featurestores.operations.list": +// method id "aiplatform.projects.locations.indexEndpoints.findNeighbors": -type ProjectsLocationsFeaturestoresOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsFindNeighborsCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// FindNeighbors: Finds the nearest neighbors of each vector within the +// request. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresOperationsService) List(name string) *ProjectsLocationsFeaturestoresOperationsListCall { - c := &ProjectsLocationsFeaturestoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - indexEndpoint: The name of the index endpoint. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) FindNeighbors(indexEndpoint string, googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest) *ProjectsLocationsIndexEndpointsFindNeighborsCall { + c := &ProjectsLocationsIndexEndpointsFindNeighborsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1findneighborsrequest = googlecloudaiplatformv1findneighborsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsFindNeighborsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets 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 *ProjectsLocationsFeaturestoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsListCall { - 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 *ProjectsLocationsFeaturestoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsFindNeighborsCall { 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 *ProjectsLocationsFeaturestoresOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) 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.googlecloudaiplatformv1findneighborsrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:findNeighbors") 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. +// Exactly one of *GoogleCloudAiplatformV1FindNeighborsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1FindNeighborsResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FindNeighborsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66452,7 +73287,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1FindNeighborsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66464,41 +73299,28 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.operations.list", + // "description": "Finds the nearest neighbors of each vector within the request.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:findNeighbors", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.findNeighbors", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "indexEndpoint": { + // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "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", + // "path": "v1/{+indexEndpoint}:findNeighbors", + // "request": { + // "$ref": "GoogleCloudAiplatformV1FindNeighborsRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1FindNeighborsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66507,102 +73329,79 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 *ProjectsLocationsFeaturestoresOperationsListCall) 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.featurestores.operations.wait": +// method id "aiplatform.projects.locations.indexEndpoints.get": -type ProjectsLocationsFeaturestoresOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets an IndexEndpoint. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the IndexEndpoint resource. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocationsIndexEndpointsGetCall { + c := &ProjectsLocationsIndexEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets 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 *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsGetCall { + 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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsGetCall { 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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -66613,14 +73412,15 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. +// Exactly one of *GoogleCloudAiplatformV1IndexEndpoint or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1IndexEndpoint.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66639,7 +73439,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1IndexEndpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66651,31 +73451,25 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.operations.wait", + // "description": "Gets an IndexEndpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexEndpoints.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the IndexEndpoint resource. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}:wait", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66684,99 +73478,139 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.cancel": +// method id "aiplatform.projects.locations.indexEndpoints.list": -type ProjectsLocationsHyperparameterTuningJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a HyperparameterTuningJob. Starts asynchronous -// cancellation on the HyperparameterTuningJob. The server makes a best -// effort to cancel the job, but success is not guaranteed. Clients can -// use JobService.GetHyperparameterTuningJob or other methods to check -// whether the cancellation succeeded or whether the job completed -// despite cancellation. On successful cancellation, the -// HyperparameterTuningJob is not deleted; instead it becomes a job with -// a HyperparameterTuningJob.error value with a google.rpc.Status.code -// of 1, corresponding to `Code.CANCELLED`, and -// HyperparameterTuningJob.state is set to `CANCELLED`. +// List: Lists IndexEndpoints in a Location. // -// - name: The name of the HyperparameterTuningJob to cancel. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h -// yperparameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Cancel(name string, googlecloudaiplatformv1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest) *ProjectsLocationsHyperparameterTuningJobsCancelCall { - c := &ProjectsLocationsHyperparameterTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest = googlecloudaiplatformv1cancelhyperparametertuningjobrequest +// - parent: The resource name of the Location from which to list the +// IndexEndpoints. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexEndpointsService) List(parent string) *ProjectsLocationsIndexEndpointsListCall { + c := &ProjectsLocationsIndexEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `index_endpoint` supports = and !=. +// `index_endpoint` represents the IndexEndpoint ID, ie. the last +// segment of the IndexEndpoint's resourcename. * `display_name` +// supports =, != and regex() (uses re2 +// (https://github.com/google/re2/wiki/Syntax) syntax) * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* or labels:key - key existence A key +// including a space must be quoted. `labels."a key". Some examples: * +// `index_endpoint="1" * `display_name="myDisplayName" * +// `regex(display_name, "^A") -> The display name starts with an A. * +// `labels.myKey="myValue" +func (c *ProjectsLocationsIndexEndpointsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsIndexEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListIndexEndpointsResponse.next_page_token of the previous +// IndexEndpointService.ListIndexEndpoints call. +func (c *ProjectsLocationsIndexEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCancelCall { +func (c *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets 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 *ProjectsLocationsIndexEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsListCall { + 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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCancelCall { +func (c *ProjectsLocationsIndexEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsListCall { 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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1cancelhyperparametertuningjobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexEndpoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, 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.hyperparameterTuningJobs.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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListIndexEndpointsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListIndexEndpointsResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexEndpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66795,7 +73629,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1ListIndexEndpointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66807,28 +73641,47 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea } return ret, nil // { - // "description": "Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", + // "description": "Lists IndexEndpoints in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexEndpoints.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* or labels:key - key existence A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `index_endpoint=\"1\"` * `display_name=\"myDisplayName\"` * `regex(display_name, \"^A\") -\u003e The display name starts with an A. * `labels.myKey=\"myValue\"`", + // "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. Typically obtained via ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the IndexEndpoints. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1CancelHyperparameterTuningJobRequest" - // }, + // "path": "v1/{+parent}/indexEndpoints", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1ListIndexEndpointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66837,33 +73690,56 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.create": - -type ProjectsLocationsHyperparameterTuningJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexEndpointsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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.indexEndpoints.mutateDeployedIndex": + +type ProjectsLocationsIndexEndpointsMutateDeployedIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a HyperparameterTuningJob +// MutateDeployedIndex: Update an existing DeployedIndex under an +// IndexEndpoint. // -// - parent: The resource name of the Location to create the -// HyperparameterTuningJob in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Create(parent string, googlecloudaiplatformv1hyperparametertuningjob *GoogleCloudAiplatformV1HyperparameterTuningJob) *ProjectsLocationsHyperparameterTuningJobsCreateCall { - c := &ProjectsLocationsHyperparameterTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1hyperparametertuningjob = googlecloudaiplatformv1hyperparametertuningjob +// - indexEndpoint: The name of the IndexEndpoint resource into which to +// deploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) MutateDeployedIndex(indexEndpoint string, googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { + c := &ProjectsLocationsIndexEndpointsMutateDeployedIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1deployedindex = googlecloudaiplatformv1deployedindex return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCreateCall { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66871,21 +73747,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...google // 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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCreateCall { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { 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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -66893,14 +73769,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1hyperparametertuningjob) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1deployedindex) 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/{+parent}/hyperparameterTuningJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:mutateDeployedIndex") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -66908,21 +73784,19 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1HyperparameterTuningJob or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1HyperparameterTuningJob.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66941,7 +73815,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66953,28 +73827,28 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates a HyperparameterTuningJob", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", + // "description": "Update an existing DeployedIndex under an IndexEndpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:mutateDeployedIndex", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.create", + // "id": "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", // "parameterOrder": [ - // "parent" + // "indexEndpoint" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: `projects/{project}/locations/{location}`", + // "indexEndpoint": { + // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/hyperparameterTuningJobs", + // "path": "v1/{+indexEndpoint}:mutateDeployedIndex", // "request": { - // "$ref": "GoogleCloudAiplatformV1HyperparameterTuningJob" + // "$ref": "GoogleCloudAiplatformV1DeployedIndex" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1HyperparameterTuningJob" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66983,32 +73857,38 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.delete": +// method id "aiplatform.projects.locations.indexEndpoints.patch": -type ProjectsLocationsHyperparameterTuningJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a HyperparameterTuningJob. +// Patch: Updates an IndexEndpoint. // -// - name: The name of the HyperparameterTuningJob resource to be -// deleted. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h -// yperparameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { - c := &ProjectsLocationsHyperparameterTuningJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the IndexEndpoint. +func (r *ProjectsLocationsIndexEndpointsService) Patch(name string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsPatchCall { + c := &ProjectsLocationsIndexEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. See google.protobuf.FieldMask. +func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexEndpointsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67016,21 +73896,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...google // 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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsPatchCall { 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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsPatchCall) 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_ { @@ -67038,11 +73918,16 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1indexendpoint) + 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -67053,14 +73938,15 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. +// Exactly one of *GoogleCloudAiplatformV1IndexEndpoint or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1IndexEndpoint.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67079,7 +73965,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1IndexEndpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67091,25 +73977,34 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes a HyperparameterTuningJob.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.delete", + // "description": "Updates an IndexEndpoint.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.indexEndpoints.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", + // "description": "Output only. The resource name of the IndexEndpoint.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67118,99 +74013,93 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.get": +// method id "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints": -type ProjectsLocationsHyperparameterTuningJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsReadIndexDatapointsCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a HyperparameterTuningJob +// ReadIndexDatapoints: Reads the datapoints/vectors of the given IDs. A +// maximum of 1000 datapoints can be retrieved in a batch. // -// - name: The name of the HyperparameterTuningJob resource. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h -// yperparameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsGetCall { - c := &ProjectsLocationsHyperparameterTuningJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - indexEndpoint: The name of the index endpoint. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) ReadIndexDatapoints(indexEndpoint string, googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { + c := &ProjectsLocationsIndexEndpointsReadIndexDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1readindexdatapointsrequest = googlecloudaiplatformv1readindexdatapointsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsGetCall { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsGetCall { - 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsGetCall { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) 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.googlecloudaiplatformv1readindexdatapointsrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:readIndexDatapoints") 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1HyperparameterTuningJob or +// Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. +// Exactly one of *GoogleCloudAiplatformV1ReadIndexDatapointsResponse or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1HyperparameterTuningJob.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ReadIndexDatapointsResponse.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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1HyperparameterTuningJob, error) { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadIndexDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67229,7 +74118,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1HyperparameterTuningJob{ + ret := &GoogleCloudAiplatformV1ReadIndexDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67241,25 +74130,28 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets a HyperparameterTuningJob", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.get", + // "description": "Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:readIndexDatapoints", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", + // "indexEndpoint": { + // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+indexEndpoint}:readIndexDatapoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1ReadIndexDatapointsRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1HyperparameterTuningJob" + // "$ref": "GoogleCloudAiplatformV1ReadIndexDatapointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67268,140 +74160,92 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.list": +// method id "aiplatform.projects.locations.indexEndpoints.undeployIndex": -type ProjectsLocationsHyperparameterTuningJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsUndeployIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists HyperparameterTuningJobs in a Location. +// UndeployIndex: Undeploys an Index from an IndexEndpoint, removing a +// DeployedIndex from it, and freeing all resources it's using. // -// - parent: The resource name of the Location to list the -// HyperparameterTuningJobs from. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) List(parent string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c := &ProjectsLocationsHyperparameterTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListHyperparameterTuningJobsResponse.next_page_token of the previous -// JobService.ListHyperparameterTuningJobs call. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) ReadMask(readMask string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("readMask", readMask) +// - indexEndpoint: The name of the IndexEndpoint resource from which to +// undeploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) UndeployIndex(indexEndpoint string, googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest) *ProjectsLocationsIndexEndpointsUndeployIndexCall { + c := &ProjectsLocationsIndexEndpointsUndeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1undeployindexrequest = googlecloudaiplatformv1undeployindexrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsListCall { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsUndeployIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets 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 *ProjectsLocationsHyperparameterTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsListCall { - 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsListCall { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsUndeployIndexCall { 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) 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.googlecloudaiplatformv1undeployindexrequest) + 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/{+parent}/hyperparameterTuningJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:undeployIndex") 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{ - "parent": c.parent, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse.ServerRes -// ponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67420,7 +74264,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67432,47 +74276,28 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists HyperparameterTuningJobs in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.list", + // "description": "Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:undeployIndex", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.undeployIndex", // "parameterOrder": [ - // "parent" + // "indexEndpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListHyperparameterTuningJobsResponse.next_page_token of the previous JobService.ListHyperparameterTuningJobs call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: `projects/{project}/locations/{location}`", + // "indexEndpoint": { + // "description": "Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/hyperparameterTuningJobs", + // "path": "v1/{+indexEndpoint}:undeployIndex", + // "request": { + // "$ref": "GoogleCloudAiplatformV1UndeployIndexRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67481,30 +74306,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListHyperparameterTuningJobsResponse) 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.hyperparameterTuningJobs.operations.cancel": +// method id "aiplatform.projects.locations.indexEndpoints.operations.cancel": -type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { +type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67524,8 +74328,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) *ProjectsLocationsIndexEndpointsOperationsCancelCall { + c := &ProjectsLocationsIndexEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67533,7 +74337,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67541,21 +74345,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) 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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsCancelCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -67578,14 +74382,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.cancel" call. // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67617,9 +74421,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -67627,7 +74431,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -67643,9 +74447,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete": +// method id "aiplatform.projects.locations.indexEndpoints.operations.delete": -type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { +type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67659,8 +74463,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { + c := &ProjectsLocationsIndexEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67668,7 +74472,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67676,21 +74480,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) 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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -67713,14 +74517,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.delete" call. // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67752,9 +74556,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.delete", // "parameterOrder": [ // "name" // ], @@ -67762,7 +74566,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -67778,9 +74582,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get": +// method id "aiplatform.projects.locations.indexEndpoints.operations.get": -type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { +type ProjectsLocationsIndexEndpointsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67794,8 +74598,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *ProjectsLocationsIndexEndpointsOperationsGetCall { + c := &ProjectsLocationsIndexEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -67803,7 +74607,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67813,7 +74617,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s .. // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -67821,21 +74625,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsGetCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -67861,14 +74665,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.get" call. // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67900,9 +74704,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.get", // "parameterOrder": [ // "name" // ], @@ -67910,7 +74714,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -67926,9 +74730,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list": +// method id "aiplatform.projects.locations.indexEndpoints.operations.list": -type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { +type ProjectsLocationsIndexEndpointsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67942,29 +74746,29 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) List(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) List(name string) *ProjectsLocationsIndexEndpointsOperationsListCall { + c := &ProjectsLocationsIndexEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -67972,7 +74776,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67982,7 +74786,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s . // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -67990,21 +74794,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatc // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsListCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -68030,7 +74834,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -68038,7 +74842,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68070,9 +74874,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.list", // "parameterOrder": [ // "name" // ], @@ -68085,7 +74889,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // }, @@ -68115,7 +74919,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -68133,9 +74937,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx } } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait": +// method id "aiplatform.projects.locations.indexEndpoints.operations.wait": -type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { +type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68155,8 +74959,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { + c := &ProjectsLocationsIndexEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68165,7 +74969,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name s // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -68173,7 +74977,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(ti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68181,21 +74985,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsWaitCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -68218,14 +75022,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.wait" call. // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68257,9 +75061,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.wait", // "parameterOrder": [ // "name" // ], @@ -68267,7 +75071,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -68289,32 +75093,32 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. } -// method id "aiplatform.projects.locations.indexEndpoints.create": +// method id "aiplatform.projects.locations.indexes.create": -type ProjectsLocationsIndexEndpointsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an IndexEndpoint. +// Create: Creates an Index. // -// - parent: The resource name of the Location to create the -// IndexEndpoint in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexEndpointsService) Create(parent string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsCreateCall { - c := &ProjectsLocationsIndexEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to create the Index in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexesService) Create(parent string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesCreateCall { + c := &ProjectsLocationsIndexesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint + c.googlecloudaiplatformv1index = googlecloudaiplatformv1index return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsCreateCall { +func (c *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68322,21 +75126,21 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsIndexEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsCreateCall { +func (c *ProjectsLocationsIndexesCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexesCreateCall { 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 *ProjectsLocationsIndexEndpointsCreateCall) Header() http.Header { +func (c *ProjectsLocationsIndexesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -68344,14 +75148,14 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1indexendpoint) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1index) 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/{+parent}/indexEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -68364,14 +75168,14 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.create" call. +// Do executes the "aiplatform.projects.locations.indexes.create" call. // 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 *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68402,25 +75206,25 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Creates an IndexEndpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", + // "description": "Creates an Index.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.create", + // "id": "aiplatform.projects.locations.indexes.create", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The resource name of the Location to create the IndexEndpoint in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/indexEndpoints", + // "path": "v1/{+parent}/indexes", // "request": { - // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" + // "$ref": "GoogleCloudAiplatformV1Index" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -68432,9 +75236,9 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.indexEndpoints.delete": +// method id "aiplatform.projects.locations.indexes.delete": -type ProjectsLocationsIndexEndpointsDeleteCall struct { +type ProjectsLocationsIndexesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -68442,13 +75246,13 @@ type ProjectsLocationsIndexEndpointsDeleteCall struct { header_ http.Header } -// Delete: Deletes an IndexEndpoint. +// Delete: Deletes an Index. An Index can only be deleted when all its +// DeployedIndexes had been undeployed. // -// - name: The name of the IndexEndpoint resource to be deleted. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLocationsIndexEndpointsDeleteCall { - c := &ProjectsLocationsIndexEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Index resource to be deleted. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocationsIndexesDeleteCall { + c := &ProjectsLocationsIndexesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -68456,7 +75260,7 @@ func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeleteCall { +func (c *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68464,21 +75268,21 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsIndexEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeleteCall { +func (c *ProjectsLocationsIndexesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesDeleteCall { 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 *ProjectsLocationsIndexEndpointsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -68501,14 +75305,14 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.delete" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68539,25 +75343,373 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes an IndexEndpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", + // "description": "Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexEndpoints.delete", + // "id": "aiplatform.projects.locations.indexes.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the IndexEndpoint resource to be deleted. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "description": "Required. The name of the Index resource to be deleted. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.indexes.get": + +type ProjectsLocationsIndexesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an Index. +// +// - name: The name of the Index resource. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsIndexesGetCall { + c := &ProjectsLocationsIndexesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesGetCall { + 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 *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesGetCall { + 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 *ProjectsLocationsIndexesGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesGetCall { + 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 *ProjectsLocationsIndexesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIndexesGetCall) 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.indexes.get" call. +// Exactly one of *GoogleCloudAiplatformV1Index or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Index.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Index, error) { + 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 := &GoogleCloudAiplatformV1Index{ + 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 an Index.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexes.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Index resource. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1Index" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.indexes.list": + +type ProjectsLocationsIndexesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Indexes in a Location. +// +// - parent: The resource name of the Location from which to list the +// Indexes. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexesService) List(parent string) *ProjectsLocationsIndexesListCall { + c := &ProjectsLocationsIndexesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsIndexesListCall) Filter(filter string) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsIndexesListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListIndexesResponse.next_page_token of the previous +// IndexService.ListIndexes call. +func (c *ProjectsLocationsIndexesListCall) PageToken(pageToken string) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsIndexesListCall) ReadMask(readMask string) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("readMask", readMask) + 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 *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesListCall { + 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 *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesListCall { + 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 *ProjectsLocationsIndexesListCall) Context(ctx context.Context) *ProjectsLocationsIndexesListCall { + 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 *ProjectsLocationsIndexesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIndexesListCall) 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/{+parent}/indexes") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.indexes.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListIndexesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListIndexesResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + 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 := &GoogleCloudAiplatformV1ListIndexesResponse{ + 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 Indexes in a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexes.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/indexes", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1ListIndexesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -68566,35 +75718,60 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.indexEndpoints.deployIndex": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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) + } +} -type ProjectsLocationsIndexEndpointsDeployIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.indexes.patch": + +type ProjectsLocationsIndexesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DeployIndex: Deploys an Index into this IndexEndpoint, creating a -// DeployedIndex within it. Only non-empty Indexes can be deployed. +// Patch: Updates an Index. // -// - indexEndpoint: The name of the IndexEndpoint resource into which to -// deploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) DeployIndex(indexEndpoint string, googlecloudaiplatformv1deployindexrequest *GoogleCloudAiplatformV1DeployIndexRequest) *ProjectsLocationsIndexEndpointsDeployIndexCall { - c := &ProjectsLocationsIndexEndpointsDeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1deployindexrequest = googlecloudaiplatformv1deployindexrequest +// - name: Output only. The resource name of the Index. +func (r *ProjectsLocationsIndexesService) Patch(name string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesPatchCall { + c := &ProjectsLocationsIndexesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1index = googlecloudaiplatformv1index + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. +func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexesPatchCall { + c.urlParams_.Set("updateMask", updateMask) 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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeployIndexCall { +func (c *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68602,21 +75779,21 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeployIndexCall { +func (c *ProjectsLocationsIndexesPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexesPatchCall { 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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Header() http.Header { +func (c *ProjectsLocationsIndexesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesPatchCall) 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_ { @@ -68624,34 +75801,34 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1deployindexrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1index) 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/{+indexEndpoint}:deployIndex") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68682,25 +75859,31 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:deployIndex", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.deployIndex", + // "description": "Updates an Index.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.indexes.patch", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "name": { + // "description": "Output only. The resource name of the Index.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+indexEndpoint}:deployIndex", + // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1DeployIndexRequest" + // "$ref": "GoogleCloudAiplatformV1Index" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -68712,34 +75895,32 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.indexEndpoints.findNeighbors": +// method id "aiplatform.projects.locations.indexes.removeDatapoints": -type ProjectsLocationsIndexEndpointsFindNeighborsCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesRemoveDatapointsCall struct { + s *Service + index string + googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// FindNeighbors: Finds the nearest neighbors of each vector within the -// request. +// RemoveDatapoints: Remove Datapoints from an Index. // -// - indexEndpoint: The name of the index endpoint. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) FindNeighbors(indexEndpoint string, googlecloudaiplatformv1findneighborsrequest *GoogleCloudAiplatformV1FindNeighborsRequest) *ProjectsLocationsIndexEndpointsFindNeighborsCall { - c := &ProjectsLocationsIndexEndpointsFindNeighborsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1findneighborsrequest = googlecloudaiplatformv1findneighborsrequest +// - index: The name of the Index resource to be updated. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) RemoveDatapoints(index string, googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest) *ProjectsLocationsIndexesRemoveDatapointsCall { + c := &ProjectsLocationsIndexesRemoveDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.index = index + c.googlecloudaiplatformv1removedatapointsrequest = googlecloudaiplatformv1removedatapointsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsFindNeighborsCall { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesRemoveDatapointsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68747,21 +75928,21 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) 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 *ProjectsLocationsIndexEndpointsFindNeighborsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsFindNeighborsCall { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesRemoveDatapointsCall { 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 *ProjectsLocationsIndexEndpointsFindNeighborsCall) Header() http.Header { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) 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_ { @@ -68769,14 +75950,14 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1findneighborsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1removedatapointsrequest) 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/{+indexEndpoint}:findNeighbors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:removeDatapoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -68784,21 +75965,23 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "index": c.index, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. -// Exactly one of *GoogleCloudAiplatformV1FindNeighborsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. +// Exactly one of *GoogleCloudAiplatformV1RemoveDatapointsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1FindNeighborsResponse.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudAiplatformV1RemoveDatapointsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1FindNeighborsResponse, error) { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RemoveDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68817,7 +76000,7 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1FindNeighborsResponse{ + ret := &GoogleCloudAiplatformV1RemoveDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68829,28 +76012,28 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Finds the nearest neighbors of each vector within the request.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:findNeighbors", + // "description": "Remove Datapoints from an Index.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:removeDatapoints", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.findNeighbors", + // "id": "aiplatform.projects.locations.indexes.removeDatapoints", // "parameterOrder": [ - // "indexEndpoint" + // "index" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "index": { + // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+indexEndpoint}:findNeighbors", + // "path": "v1/{+index}:removeDatapoints", // "request": { - // "$ref": "GoogleCloudAiplatformV1FindNeighborsRequest" + // "$ref": "GoogleCloudAiplatformV1RemoveDatapointsRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1FindNeighborsResponse" + // "$ref": "GoogleCloudAiplatformV1RemoveDatapointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -68859,98 +76042,93 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.indexEndpoints.get": +// method id "aiplatform.projects.locations.indexes.upsertDatapoints": -type ProjectsLocationsIndexEndpointsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesUpsertDatapointsCall struct { + s *Service + index string + googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an IndexEndpoint. +// UpsertDatapoints: Add/update Datapoints into an Index. // -// - name: The name of the IndexEndpoint resource. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocationsIndexEndpointsGetCall { - c := &ProjectsLocationsIndexEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - index: The name of the Index resource to be updated. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) UpsertDatapoints(index string, googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest) *ProjectsLocationsIndexesUpsertDatapointsCall { + c := &ProjectsLocationsIndexesUpsertDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.index = index + c.googlecloudaiplatformv1upsertdatapointsrequest = googlecloudaiplatformv1upsertdatapointsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesUpsertDatapointsCall { 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 *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsGetCall { - 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 *ProjectsLocationsIndexEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesUpsertDatapointsCall { 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 *ProjectsLocationsIndexEndpointsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) 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.googlecloudaiplatformv1upsertdatapointsrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:upsertDatapoints") 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, + "index": c.index, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. -// Exactly one of *GoogleCloudAiplatformV1IndexEndpoint or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1IndexEndpoint.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. +// Exactly one of *GoogleCloudAiplatformV1UpsertDatapointsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1UpsertDatapointsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1UpsertDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68969,7 +76147,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1IndexEndpoint{ + ret := &GoogleCloudAiplatformV1UpsertDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68981,25 +76159,28 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Gets an IndexEndpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.get", + // "description": "Add/update Datapoints into an Index.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:upsertDatapoints", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexes.upsertDatapoints", // "parameterOrder": [ - // "name" + // "index" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the IndexEndpoint resource. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "index": { + // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+index}:upsertDatapoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1UpsertDatapointsRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" + // "$ref": "GoogleCloudAiplatformV1UpsertDatapointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69008,139 +76189,90 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption } -// method id "aiplatform.projects.locations.indexEndpoints.list": +// method id "aiplatform.projects.locations.indexes.operations.cancel": -type ProjectsLocationsIndexEndpointsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists IndexEndpoints in a Location. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location from which to list the -// IndexEndpoints. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexEndpointsService) List(parent string) *ProjectsLocationsIndexEndpointsListCall { - c := &ProjectsLocationsIndexEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `index_endpoint` supports = and !=. -// `index_endpoint` represents the IndexEndpoint ID, ie. the last -// segment of the IndexEndpoint's resourcename. * `display_name` -// supports =, != and regex() (uses re2 -// (https://github.com/google/re2/wiki/Syntax) syntax) * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* or labels:key - key existence A key -// including a space must be quoted. `labels."a key". Some examples: * -// `index_endpoint="1" * `display_name="myDisplayName" * -// `regex(display_name, "^A") -> The display name starts with an A. * -// `labels.myKey="myValue" -func (c *ProjectsLocationsIndexEndpointsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsIndexEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListIndexEndpointsResponse.next_page_token of the previous -// IndexEndpointService.ListIndexEndpoints call. -func (c *ProjectsLocationsIndexEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *ProjectsLocationsIndexesOperationsCancelCall { + c := &ProjectsLocationsIndexesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsCancelCall { 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 *ProjectsLocationsIndexEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsListCall { - 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 *ProjectsLocationsIndexEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsCancelCall { 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 *ProjectsLocationsIndexEndpointsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsCancelCall) 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/{+parent}/indexEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListIndexEndpointsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListIndexEndpointsResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexEndpointsResponse, error) { +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69159,7 +76291,7 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListIndexEndpointsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69171,105 +76303,59 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists IndexEndpoints in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.list", + // "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}/indexes/{indexesId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexes.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* or labels:key - key existence A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `index_endpoint=\"1\"` * `display_name=\"myDisplayName\"` * `regex(display_name, \"^A\") -\u003e The display name starts with an A. * `labels.myKey=\"myValue\"`", - // "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. Typically obtained via ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location from which to list the IndexEndpoints. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/indexEndpoints", - // "response": { - // "$ref": "GoogleCloudAiplatformV1ListIndexEndpointsResponse" - // }, - // "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 *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexEndpointsResponse) 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) - } + // "path": "v1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } -// method id "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex": +// method id "aiplatform.projects.locations.indexes.operations.delete": -type ProjectsLocationsIndexEndpointsMutateDeployedIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// MutateDeployedIndex: Update an existing DeployedIndex under an -// IndexEndpoint. +// 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`. // -// - indexEndpoint: The name of the IndexEndpoint resource into which to -// deploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) MutateDeployedIndex(indexEndpoint string, googlecloudaiplatformv1deployedindex *GoogleCloudAiplatformV1DeployedIndex) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { - c := &ProjectsLocationsIndexEndpointsMutateDeployedIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1deployedindex = googlecloudaiplatformv1deployedindex +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *ProjectsLocationsIndexesOperationsDeleteCall { + c := &ProjectsLocationsIndexesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69277,21 +76363,21 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...goo // 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsDeleteCall { 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) 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_ { @@ -69299,34 +76385,29 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1deployedindex) - 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/{+indexEndpoint}:mutateDeployedIndex") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" 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.indexes.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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69345,7 +76426,7 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69357,28 +76438,25 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...goog } return ret, nil // { - // "description": "Update an existing DeployedIndex under an IndexEndpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:mutateDeployedIndex", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", + // "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}/indexes/{indexesId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.indexes.operations.delete", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+indexEndpoint}:mutateDeployedIndex", - // "request": { - // "$ref": "GoogleCloudAiplatformV1DeployedIndex" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69387,77 +76465,79 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.indexEndpoints.patch": +// method id "aiplatform.projects.locations.indexes.operations.get": -type ProjectsLocationsIndexEndpointsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an IndexEndpoint. +// 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: Output only. The resource name of the IndexEndpoint. -func (r *ProjectsLocationsIndexEndpointsService) Patch(name string, googlecloudaiplatformv1indexendpoint *GoogleCloudAiplatformV1IndexEndpoint) *ProjectsLocationsIndexEndpointsPatchCall { - c := &ProjectsLocationsIndexEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLocationsIndexesOperationsGetCall { + c := &ProjectsLocationsIndexesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1indexendpoint = googlecloudaiplatformv1indexendpoint - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. See google.protobuf.FieldMask. -func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexEndpointsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsPatchCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsGetCall { 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 *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsGetCall { + 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 *ProjectsLocationsIndexEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsPatchCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsGetCall { 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 *ProjectsLocationsIndexEndpointsPatchCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1indexendpoint) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -69468,15 +76548,14 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. -// Exactly one of *GoogleCloudAiplatformV1IndexEndpoint or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1IndexEndpoint.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1IndexEndpoint, error) { +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69495,7 +76574,7 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1IndexEndpoint{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69507,34 +76586,25 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Updates an IndexEndpoint.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.indexEndpoints.patch", + // "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}/indexes/{indexesId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexes.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of the IndexEndpoint.", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" - // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1IndexEndpoint" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69543,93 +76613,119 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints": +// method id "aiplatform.projects.locations.indexes.operations.list": -type ProjectsLocationsIndexEndpointsReadIndexDatapointsCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ReadIndexDatapoints: Reads the datapoints/vectors of the given IDs. A -// maximum of 1000 datapoints can be retrieved in a batch. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - indexEndpoint: The name of the index endpoint. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) ReadIndexDatapoints(indexEndpoint string, googlecloudaiplatformv1readindexdatapointsrequest *GoogleCloudAiplatformV1ReadIndexDatapointsRequest) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { - c := &ProjectsLocationsIndexEndpointsReadIndexDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1readindexdatapointsrequest = googlecloudaiplatformv1readindexdatapointsrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsIndexesOperationsService) List(name string) *ProjectsLocationsIndexesOperationsListCall { + c := &ProjectsLocationsIndexesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsIndexesOperationsListCall) Filter(filter string) *ProjectsLocationsIndexesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsIndexesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexesOperationsListCall { + 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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsListCall { 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 *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsListCall { + 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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsListCall { 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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1readindexdatapointsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+indexEndpoint}:readIndexDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. -// Exactly one of *GoogleCloudAiplatformV1ReadIndexDatapointsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ReadIndexDatapointsResponse.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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ReadIndexDatapointsResponse, error) { +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69648,7 +76744,7 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ReadIndexDatapointsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69660,28 +76756,41 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog } return ret, nil // { - // "description": "Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:readIndexDatapoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", + // "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}/indexes/{indexesId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexes.operations.list", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "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/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "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/{+indexEndpoint}:readIndexDatapoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1ReadIndexDatapointsRequest" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1ReadIndexDatapointsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69690,35 +76799,68 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.indexEndpoints.undeployIndex": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + 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) + } +} -type ProjectsLocationsIndexEndpointsUndeployIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.indexes.operations.wait": + +type ProjectsLocationsIndexesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UndeployIndex: Undeploys an Index from an IndexEndpoint, removing a -// DeployedIndex from it, and freeing all resources it's using. +// 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. // -// - indexEndpoint: The name of the IndexEndpoint resource from which to -// undeploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) UndeployIndex(indexEndpoint string, googlecloudaiplatformv1undeployindexrequest *GoogleCloudAiplatformV1UndeployIndexRequest) *ProjectsLocationsIndexEndpointsUndeployIndexCall { - c := &ProjectsLocationsIndexEndpointsUndeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1undeployindexrequest = googlecloudaiplatformv1undeployindexrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsLocationsIndexesOperationsWaitCall { + c := &ProjectsLocationsIndexesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexesOperationsWaitCall { + 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsUndeployIndexCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69726,21 +76868,21 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsUndeployIndexCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsWaitCall { 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsWaitCall) 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_ { @@ -69748,14 +76890,9 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1undeployindexrequest) - 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/{+indexEndpoint}:undeployIndex") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -69763,19 +76900,19 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69806,26 +76943,29 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:undeployIndex", + // "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}/indexes/{indexesId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.undeployIndex", + // "id": "aiplatform.projects.locations.indexes.operations.wait", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/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/{+indexEndpoint}:undeployIndex", - // "request": { - // "$ref": "GoogleCloudAiplatformV1UndeployIndexRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -69836,38 +76976,48 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.indexEndpoints.operations.cancel": +// method id "aiplatform.projects.locations.metadataStores.create": -type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1metadatastore *GoogleCloudAiplatformV1MetadataStore + 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: Initializes a MetadataStore, including allocation of +// resources. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) *ProjectsLocationsIndexEndpointsOperationsCancelCall { - c := &ProjectsLocationsIndexEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location where the MetadataStore +// should be created. Format: +// `projects/{project}/locations/{location}/`. +func (r *ProjectsLocationsMetadataStoresService) Create(parent string, googlecloudaiplatformv1metadatastore *GoogleCloudAiplatformV1MetadataStore) *ProjectsLocationsMetadataStoresCreateCall { + c := &ProjectsLocationsMetadataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1metadatastore = googlecloudaiplatformv1metadatastore + return c +} + +// MetadataStoreId sets the optional parameter "metadataStoreId": The +// {metadatastore} portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }` If not provided, the MetadataStore's ID will be a UUID generated +// by the service. Must be 4-128 characters in length. Valid characters +// are `/a-z-/`. Must be unique across all MetadataStores in the parent +// Location. (Otherwise the request will fail with ALREADY_EXISTS, or +// PERMISSION_DENIED if the caller can't view the preexisting +// MetadataStore.) +func (c *ProjectsLocationsMetadataStoresCreateCall) MetadataStoreId(metadataStoreId string) *ProjectsLocationsMetadataStoresCreateCall { + c.urlParams_.Set("metadataStoreId", metadataStoreId) 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69875,21 +77025,21 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...google // 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresCreateCall { 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresCreateCall) 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_ { @@ -69897,9 +77047,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1metadatastore) + 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}/metadataStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -69907,19 +77062,19 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri } 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.indexEndpoints.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.metadataStores.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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69938,7 +77093,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea 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, @@ -69950,25 +77105,33 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea } 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:cancel", + // "description": "Initializes a MetadataStore, including allocation of resources.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.cancel", + // "id": "aiplatform.projects.locations.metadataStores.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "metadataStoreId": { + // "description": "The {metadatastore} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataStores in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataStore.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location where the MetadataStore should be created. Format: `projects/{project}/locations/{location}/`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:cancel", + // "path": "v1/{+parent}/metadataStores", + // "request": { + // "$ref": "GoogleCloudAiplatformV1MetadataStore" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69977,9 +77140,9 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.indexEndpoints.operations.delete": +// method id "aiplatform.projects.locations.metadataStores.delete": -type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { +type ProjectsLocationsMetadataStoresDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -69987,22 +77150,29 @@ type ProjectsLocationsIndexEndpointsOperationsDeleteCall 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 single MetadataStore and all its child resources +// (Artifacts, Executions, and Contexts). // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { - c := &ProjectsLocationsIndexEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the MetadataStore to delete. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresService) Delete(name string) *ProjectsLocationsMetadataStoresDeleteCall { + c := &ProjectsLocationsMetadataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": Deprecated: Field is no +// longer supported. +func (c *ProjectsLocationsMetadataStoresDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70010,21 +77180,21 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...google // 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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresDeleteCall { 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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresDeleteCall) 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_ { @@ -70047,14 +77217,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.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.metadataStores.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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70073,7 +77243,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea 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, @@ -70085,25 +77255,31 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea } 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", + // "description": "Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.delete", + // "id": "aiplatform.projects.locations.metadataStores.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "deprecated": true, + // "description": "Deprecated: Field is no longer supported.", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The resource name of the MetadataStore to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70112,9 +77288,9 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.indexEndpoints.operations.get": +// method id "aiplatform.projects.locations.metadataStores.get": -type ProjectsLocationsIndexEndpointsOperationsGetCall struct { +type ProjectsLocationsMetadataStoresGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70123,13 +77299,13 @@ type ProjectsLocationsIndexEndpointsOperationsGetCall 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: Retrieves a specific MetadataStore. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *ProjectsLocationsIndexEndpointsOperationsGetCall { - c := &ProjectsLocationsIndexEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the MetadataStore to retrieve. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresService) Get(name string) *ProjectsLocationsMetadataStoresGetCall { + c := &ProjectsLocationsMetadataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70137,7 +77313,7 @@ func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70147,7 +77323,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) 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 *ProjectsLocationsIndexEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresGetCall { c.ifNoneMatch_ = entityTag return c } @@ -70155,21 +77331,21 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) 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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresGetCall { 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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresGetCall) 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_ { @@ -70195,14 +77371,15 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.get" call. +// Exactly one of *GoogleCloudAiplatformV1MetadataStore or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1MetadataStore.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1MetadataStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70221,7 +77398,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1MetadataStore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70233,25 +77410,25 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", + // "description": "Retrieves a specific MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.get", + // "id": "aiplatform.projects.locations.metadataStores.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The resource name of the MetadataStore to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1MetadataStore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70260,45 +77437,41 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.indexEndpoints.operations.list": +// method id "aiplatform.projects.locations.metadataStores.list": -type ProjectsLocationsIndexEndpointsOperationsListCall struct { +type ProjectsLocationsMetadataStoresListCall 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 MetadataStores for a Location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsIndexEndpointsOperationsService) List(name string) *ProjectsLocationsIndexEndpointsOperationsListCall { - c := &ProjectsLocationsIndexEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsOperationsListCall { - c.urlParams_.Set("filter", filter) +// - parent: The Location whose MetadataStores should be listed. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsMetadataStoresService) List(parent string) *ProjectsLocationsMetadataStoresListCall { + c := &ProjectsLocationsMetadataStoresListCall{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 *ProjectsLocationsIndexEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsOperationsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number +// of Metadata Stores to return. The service may return fewer. Must be +// in range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListMetadataStores call. +// Provide this to retrieve the subsequent page. When paginating, all +// other provided parameters must match the call that provided the page +// token. (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -70306,7 +77479,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsMetadataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70316,7 +77489,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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 *ProjectsLocationsIndexEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsMetadataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresListCall { c.ifNoneMatch_ = entityTag return c } @@ -70324,21 +77497,21 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsMetadataStoresListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresListCall { 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresListCall) 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_ { @@ -70351,7 +77524,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string 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}/metadataStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -70359,20 +77532,21 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string } 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.indexEndpoints.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 *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListMetadataStoresResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1ListMetadataStoresResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListMetadataStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70391,7 +77565,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1ListMetadataStoresResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70403,41 +77577,36 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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": "v1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations", + // "description": "Lists MetadataStores for a Location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.list", + // "id": "aiplatform.projects.locations.metadataStores.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/[^/]+/indexEndpoints/[^/]+$", - // "required": true, - // "type": "string" - // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of Metadata Stores to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous MetadataService.ListMetadataStores call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The Location whose MetadataStores should be listed. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1/{+name}/operations", + // "path": "v1/{+parent}/metadataStores", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1ListMetadataStoresResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70449,7 +77618,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsMetadataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListMetadataStoresResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -70467,188 +77636,48 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Co } } -// method id "aiplatform.projects.locations.indexEndpoints.operations.wait": +// method id "aiplatform.projects.locations.metadataStores.artifacts.create": -type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact + 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. +// Create: Creates an Artifact associated with a MetadataStore. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - c := &ProjectsLocationsIndexEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - 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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - 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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - c.ctx_ = ctx +// - parent: The resource name of the MetadataStore where the Artifact +// should be created. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Create(parent string, googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact) *ProjectsLocationsMetadataStoresArtifactsCreateCall { + c := &ProjectsLocationsMetadataStoresArtifactsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1artifact = googlecloudaiplatformv1artifact return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) 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.indexEndpoints.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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.wait", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}:wait", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.indexes.create": - -type ProjectsLocationsIndexesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an Index. -// -// - parent: The resource name of the Location to create the Index in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexesService) Create(parent string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesCreateCall { - c := &ProjectsLocationsIndexesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1index = googlecloudaiplatformv1index +// ArtifactId sets the optional parameter "artifactId": The {artifact} +// portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }/artifacts/{artifact}` If not provided, the Artifact's ID will be a +// UUID generated by the service. Must be 4-128 characters in length. +// Valid characters are `/a-z-/`. Must be unique across all Artifacts in +// the parent MetadataStore. (Otherwise the request will fail with +// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the +// preexisting Artifact.) +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) ArtifactId(artifactId string) *ProjectsLocationsMetadataStoresArtifactsCreateCall { + c.urlParams_.Set("artifactId", artifactId) 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 *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesCreateCall { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70656,21 +77685,21 @@ func (c *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsIndexesCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexesCreateCall { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsCreateCall { 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 *ProjectsLocationsIndexesCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) 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_ { @@ -70678,14 +77707,14 @@ func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1index) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1artifact) 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/{+parent}/indexes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/artifacts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -70698,14 +77727,14 @@ func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.create" call. +// Exactly one of *GoogleCloudAiplatformV1Artifact or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Artifact.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Artifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70724,7 +77753,7 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Artifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70736,28 +77765,33 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Creates an Index.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes", + // "description": "Creates an Artifact associated with a MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.create", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.create", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "artifactId": { + // "description": "The {artifact} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Artifact.)", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the MetadataStore where the Artifact should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/indexes", + // "path": "v1/{+parent}/artifacts", // "request": { - // "$ref": "GoogleCloudAiplatformV1Index" + // "$ref": "GoogleCloudAiplatformV1Artifact" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1Artifact" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70766,9 +77800,9 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.indexes.delete": +// method id "aiplatform.projects.locations.metadataStores.artifacts.delete": -type ProjectsLocationsIndexesDeleteCall struct { +type ProjectsLocationsMetadataStoresArtifactsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70776,21 +77810,29 @@ type ProjectsLocationsIndexesDeleteCall struct { header_ http.Header } -// Delete: Deletes an Index. An Index can only be deleted when all its -// DeployedIndexes had been undeployed. +// Delete: Deletes an Artifact. // -// - name: The name of the Index resource to be deleted. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocationsIndexesDeleteCall { - c := &ProjectsLocationsIndexesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Artifact to delete. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/artifacts/{artifact}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Delete(name string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { + c := &ProjectsLocationsMetadataStoresArtifactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Etag sets the optional parameter "etag": The etag of the Artifact to +// delete. If this is provided, it must match the server's etag. +// Otherwise, the request will fail with a FAILED_PRECONDITION. +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { + c.urlParams_.Set("etag", etag) + 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 *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70798,21 +77840,21 @@ func (c *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsIndexesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { 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 *ProjectsLocationsIndexesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) 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_ { @@ -70835,14 +77877,14 @@ func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.delete" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70873,18 +77915,23 @@ func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "description": "Deletes an Artifact.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexes.delete", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "etag": { + // "description": "Optional. The etag of the Artifact to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the Index resource to be deleted. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "description": "Required. The resource name of the Artifact to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" // } @@ -70900,9 +77947,9 @@ func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.indexes.get": +// method id "aiplatform.projects.locations.metadataStores.artifacts.get": -type ProjectsLocationsIndexesGetCall struct { +type ProjectsLocationsMetadataStoresArtifactsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70911,12 +77958,13 @@ type ProjectsLocationsIndexesGetCall struct { header_ http.Header } -// Get: Gets an Index. +// Get: Retrieves a specific Artifact. // -// - name: The name of the Index resource. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsIndexesGetCall { - c := &ProjectsLocationsIndexesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Artifact to retrieve. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/artifacts/{artifact}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Get(name string) *ProjectsLocationsMetadataStoresArtifactsGetCall { + c := &ProjectsLocationsMetadataStoresArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70924,7 +77972,7 @@ func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsInd // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70934,7 +77982,7 @@ func (c *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *Projects // 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 *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -70942,21 +77990,21 @@ func (c *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *Project // 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 *ProjectsLocationsIndexesGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsGetCall { 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 *ProjectsLocationsIndexesGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) 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_ { @@ -70982,14 +78030,14 @@ func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.get" call. -// Exactly one of *GoogleCloudAiplatformV1Index or error will be +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.get" call. +// Exactly one of *GoogleCloudAiplatformV1Artifact or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Index.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudAiplatformV1Artifact.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Index, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Artifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71008,7 +78056,7 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Index{ + ret := &GoogleCloudAiplatformV1Artifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71020,25 +78068,25 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Gets an Index.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "description": "Retrieves a specific Artifact.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.get", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Index resource. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "description": "Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Index" + // "$ref": "GoogleCloudAiplatformV1Artifact" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71047,9 +78095,9 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "aiplatform.projects.locations.indexes.list": +// method id "aiplatform.projects.locations.metadataStores.artifacts.list": -type ProjectsLocationsIndexesListCall struct { +type ProjectsLocationsMetadataStoresArtifactsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -71058,50 +78106,78 @@ type ProjectsLocationsIndexesListCall struct { header_ http.Header } -// List: Lists Indexes in a Location. +// List: Lists Artifacts in the MetadataStore. // -// - parent: The resource name of the Location from which to list the -// Indexes. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexesService) List(parent string) *ProjectsLocationsIndexesListCall { - c := &ProjectsLocationsIndexesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The MetadataStore whose Artifacts should be listed. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) List(parent string) *ProjectsLocationsMetadataStoresArtifactsListCall { + c := &ProjectsLocationsMetadataStoresArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsIndexesListCall) Filter(filter string) *ProjectsLocationsIndexesListCall { +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Artifacts to satisfy in order to be part of +// the result set. The syntax to define filter query is based on +// https://google.aip.dev/160. The supported set of filters include the +// following: * **Attribute filtering**: For example: `display_name = +// "test". Supported fields include: `name`, `display_name`, `uri`, +// `state`, `schema_title`, `create_time`, and `update_time`. Time +// fields, such as `create_time` and `update_time`, require values +// specified in RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..`. For +// example: `metadata.field_1.number_value = 10.0` In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` * **Context based filtering**: To filter Artifacts based on the +// contexts to which they belong, use the function operator with the +// full resource name `in_context()`. For example: +// `in_context("projects//locations//metadataStores//contexts/")` Each +// of the above supported filter types can be combined together using +// logical operators (`AND` & `OR`). Maximum nested expression depth +// allowed is 5. For example: `display_name = "test" AND +// metadata.field1.bool_value = true`. +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsIndexesListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// OrderBy sets the optional parameter "orderBy": How the list of +// messages is ordered. Specify the values to order by and an ordering +// operation. The default sorting order is ascending. To specify +// descending order for a field, users append a " desc" suffix; for +// example: "foo desc, bar". Subfields are specified with a `.` +// character, such as foo.bar. see https://google.aip.dev/132#ordering +// for more details. +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresArtifactsListCall { + c.urlParams_.Set("orderBy", orderBy) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListIndexesResponse.next_page_token of the previous -// IndexService.ListIndexes call. -func (c *ProjectsLocationsIndexesListCall) PageToken(pageToken string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("pageToken", pageToken) +// PageSize sets the optional parameter "pageSize": The maximum number +// of Artifacts to return. The service may return fewer. Must be in +// range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsIndexesListCall) ReadMask(readMask string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("readMask", readMask) +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListArtifacts call. Provide +// this to retrieve the subsequent page. When paginating, all other +// provided parameters must match the call that provided the page token. +// (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresArtifactsListCall { + 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 *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71111,7 +78187,7 @@ func (c *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *Project // 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 *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsListCall { c.ifNoneMatch_ = entityTag return c } @@ -71119,21 +78195,21 @@ func (c *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *Projec // 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 *ProjectsLocationsIndexesListCall) Context(ctx context.Context) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsListCall { 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 *ProjectsLocationsIndexesListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) 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_ { @@ -71146,7 +78222,7 @@ func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/indexes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/artifacts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -71159,16 +78235,16 @@ func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListIndexesResponse or error +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListArtifactsResponse or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListIndexesResponse.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListArtifactsResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListIndexesResponse, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListArtifactsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71187,7 +78263,7 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListIndexesResponse{ + ret := &GoogleCloudAiplatformV1ListArtifactsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71199,47 +78275,46 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Lists Indexes in a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes", + // "description": "Lists Artifacts in the MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.list", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Artifacts based on the contexts to which they belong, use the function operator with the full resource name `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call.", + // "description": "A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The MetadataStore whose Artifacts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+parent}/indexes", + // "path": "v1/{+parent}/artifacts", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListIndexesResponse" + // "$ref": "GoogleCloudAiplatformV1ListArtifactsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71251,7 +78326,7 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListIndexesResponse) error) error { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListArtifactsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -71269,31 +78344,37 @@ func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*Go } } -// method id "aiplatform.projects.locations.indexes.patch": +// method id "aiplatform.projects.locations.metadataStores.artifacts.patch": -type ProjectsLocationsIndexesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates an Index. +// Patch: Updates a stored Artifact. // -// - name: Output only. The resource name of the Index. -func (r *ProjectsLocationsIndexesService) Patch(name string, googlecloudaiplatformv1index *GoogleCloudAiplatformV1Index) *ProjectsLocationsIndexesPatchCall { - c := &ProjectsLocationsIndexesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Artifact. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Patch(name string, googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact) *ProjectsLocationsMetadataStoresArtifactsPatchCall { + c := &ProjectsLocationsMetadataStoresArtifactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1index = googlecloudaiplatformv1index + c.googlecloudaiplatformv1artifact = googlecloudaiplatformv1artifact return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` definition, see -// google.protobuf.FieldMask. -func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexesPatchCall { +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, and the Artifact is not found, a new Artifact is created. +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresArtifactsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": A FieldMask +// indicating which fields should be updated. +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresArtifactsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -71301,7 +78382,7 @@ func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask 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 *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesPatchCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71309,21 +78390,21 @@ func (c *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsIndexesPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexesPatchCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPatchCall { 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 *ProjectsLocationsIndexesPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) 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_ { @@ -71331,7 +78412,7 @@ func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Respons } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1index) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1artifact) if err != nil { return nil, err } @@ -71351,14 +78432,14 @@ func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.patch" call. +// Exactly one of *GoogleCloudAiplatformV1Artifact or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Artifact.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Artifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71377,7 +78458,7 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Artifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71389,23 +78470,28 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Updates an Index.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "description": "Updates a stored Artifact.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.indexes.patch", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.patch", // "parameterOrder": [ // "name" // ], // "parameters": { + // "allowMissing": { + // "description": "If set to true, and the Artifact is not found, a new Artifact is created.", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "Output only. The resource name of the Index.", + // "description": "Output only. The resource name of the Artifact.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", + // "description": "Optional. A FieldMask indicating which fields should be updated.", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -71413,10 +78499,10 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G // }, // "path": "v1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1Index" + // "$ref": "GoogleCloudAiplatformV1Artifact" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1Artifact" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71425,32 +78511,33 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.indexes.removeDatapoints": +// method id "aiplatform.projects.locations.metadataStores.artifacts.purge": -type ProjectsLocationsIndexesRemoveDatapointsCall struct { - s *Service - index string - googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsPurgeCall struct { + s *Service + parent string + googlecloudaiplatformv1purgeartifactsrequest *GoogleCloudAiplatformV1PurgeArtifactsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RemoveDatapoints: Remove Datapoints from an Index. +// Purge: Purges Artifacts. // -// - index: The name of the Index resource to be updated. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) RemoveDatapoints(index string, googlecloudaiplatformv1removedatapointsrequest *GoogleCloudAiplatformV1RemoveDatapointsRequest) *ProjectsLocationsIndexesRemoveDatapointsCall { - c := &ProjectsLocationsIndexesRemoveDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.index = index - c.googlecloudaiplatformv1removedatapointsrequest = googlecloudaiplatformv1removedatapointsrequest +// - parent: The metadata store to purge Artifacts from. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Purge(parent string, googlecloudaiplatformv1purgeartifactsrequest *GoogleCloudAiplatformV1PurgeArtifactsRequest) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { + c := &ProjectsLocationsMetadataStoresArtifactsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1purgeartifactsrequest = googlecloudaiplatformv1purgeartifactsrequest 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 *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesRemoveDatapointsCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71458,21 +78545,21 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesRemoveDatapointsCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { 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 *ProjectsLocationsIndexesRemoveDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) 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_ { @@ -71480,14 +78567,14 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1removedatapointsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1purgeartifactsrequest) 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/{+index}:removeDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/artifacts:purge") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -71495,23 +78582,19 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "index": c.index, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. -// Exactly one of *GoogleCloudAiplatformV1RemoveDatapointsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1RemoveDatapointsResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RemoveDatapointsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.purge" 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71530,7 +78613,7 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1RemoveDatapointsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71542,28 +78625,28 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Remove Datapoints from an Index.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:removeDatapoints", + // "description": "Purges Artifacts.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts:purge", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.removeDatapoints", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.purge", // "parameterOrder": [ - // "index" + // "parent" // ], // "parameters": { - // "index": { - // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "parent": { + // "description": "Required. The metadata store to purge Artifacts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+index}:removeDatapoints", + // "path": "v1/{+parent}/artifacts:purge", // "request": { - // "$ref": "GoogleCloudAiplatformV1RemoveDatapointsRequest" + // "$ref": "GoogleCloudAiplatformV1PurgeArtifactsRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1RemoveDatapointsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71572,93 +78655,137 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.upsertDatapoints": +// method id "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph": -type ProjectsLocationsIndexesUpsertDatapointsCall struct { - s *Service - index string - googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall struct { + s *Service + artifact string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpsertDatapoints: Add/update Datapoints into an Index. +// QueryArtifactLineageSubgraph: Retrieves lineage of an Artifact +// represented through Artifacts and Executions connected by Event edges +// and returned as a LineageSubgraph. // -// - index: The name of the Index resource to be updated. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) UpsertDatapoints(index string, googlecloudaiplatformv1upsertdatapointsrequest *GoogleCloudAiplatformV1UpsertDatapointsRequest) *ProjectsLocationsIndexesUpsertDatapointsCall { - c := &ProjectsLocationsIndexesUpsertDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.index = index - c.googlecloudaiplatformv1upsertdatapointsrequest = googlecloudaiplatformv1upsertdatapointsrequest +// - artifact: The resource name of the Artifact whose Lineage needs to +// be retrieved as a LineageSubgraph. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/artifacts/{artifact}` The request may error with +// FAILED_PRECONDITION if the number of Artifacts, the number of +// Executions, or the number of Events that would be returned for the +// Context exceeds 1000. +func (r *ProjectsLocationsMetadataStoresArtifactsService) QueryArtifactLineageSubgraph(artifact string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + c := &ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.artifact = artifact + return c +} + +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Artifacts to satisfy in order to be part of +// the Lineage Subgraph. The syntax to define filter query is based on +// https://google.aip.dev/160. The supported set of filters include the +// following: * **Attribute filtering**: For example: `display_name = +// "test" Supported fields include: `name`, `display_name`, `uri`, +// `state`, `schema_title`, `create_time`, and `update_time`. Time +// fields, such as `create_time` and `update_time`, require values +// specified in RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..`. For +// example: `metadata.field_1.number_value = 10.0` In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` Each of the above supported filter types can be combined +// together using logical operators (`AND` & `OR`). Maximum nested +// expression depth allowed is 5. For example: `display_name = "test" +// AND metadata.field1.bool_value = true`. +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxHops sets the optional parameter "maxHops": Specifies the size of +// the lineage graph in terms of number of hops from the specified +// artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only +// input artifact is returned. No value: Transitive closure is performed +// to return the complete graph. +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) MaxHops(maxHops int64) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + c.urlParams_.Set("maxHops", fmt.Sprint(maxHops)) 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 *ProjectsLocationsIndexesUpsertDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesUpsertDatapointsCall { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + 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 *ProjectsLocationsIndexesUpsertDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesUpsertDatapointsCall { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { 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 *ProjectsLocationsIndexesUpsertDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1upsertdatapointsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+index}:upsertDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+artifact}:queryArtifactLineageSubgraph") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "index": c.index, + "artifact": c.artifact, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. -// Exactly one of *GoogleCloudAiplatformV1UpsertDatapointsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1UpsertDatapointsResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1UpsertDatapointsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph" call. +// Exactly one of *GoogleCloudAiplatformV1LineageSubgraph or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1LineageSubgraph.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1LineageSubgraph, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71677,7 +78804,7 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1UpsertDatapointsResponse{ + ret := &GoogleCloudAiplatformV1LineageSubgraph{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71689,28 +78816,36 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Add/update Datapoints into an Index.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:upsertDatapoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.upsertDatapoints", + // "description": "Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}:queryArtifactLineageSubgraph", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph", // "parameterOrder": [ - // "index" + // "artifact" // ], // "parameters": { - // "index": { - // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "artifact": { + // "description": "Required. The resource name of the Artifact whose Lineage needs to be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" + // }, + // "filter": { + // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"` Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "maxHops": { + // "description": "Specifies the size of the lineage graph in terms of number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: Transitive closure is performed to return the complete graph.", + // "format": "int32", + // "location": "query", + // "type": "integer" // } // }, - // "path": "v1/{+index}:upsertDatapoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1UpsertDatapointsRequest" - // }, + // "path": "v1/{+artifact}:queryArtifactLineageSubgraph", // "response": { - // "$ref": "GoogleCloudAiplatformV1UpsertDatapointsResponse" + // "$ref": "GoogleCloudAiplatformV1LineageSubgraph" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71719,9 +78854,9 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.operations.cancel": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel": -type ProjectsLocationsIndexesOperationsCancelCall struct { +type ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71741,8 +78876,8 @@ type ProjectsLocationsIndexesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *ProjectsLocationsIndexesOperationsCancelCall { - c := &ProjectsLocationsIndexesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71750,7 +78885,7 @@ func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71758,21 +78893,21 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall { 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 *ProjectsLocationsIndexesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) 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_ { @@ -71795,14 +78930,14 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71834,9 +78969,9 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call 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}/indexes/{indexesId}/operations/{operationsId}:cancel", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.operations.cancel", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -71844,7 +78979,7 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -71860,9 +78995,9 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.operations.delete": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.delete": -type ProjectsLocationsIndexesOperationsDeleteCall struct { +type ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71876,8 +79011,8 @@ type ProjectsLocationsIndexesOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *ProjectsLocationsIndexesOperationsDeleteCall { - c := &ProjectsLocationsIndexesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71885,7 +79020,7 @@ func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71893,21 +79028,21 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall { 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 *ProjectsLocationsIndexesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) 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_ { @@ -71930,14 +79065,14 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.delete" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71969,9 +79104,9 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call 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}/indexes/{indexesId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexes.operations.delete", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.delete", // "parameterOrder": [ // "name" // ], @@ -71979,7 +79114,7 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -71995,9 +79130,9 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.operations.get": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.get": -type ProjectsLocationsIndexesOperationsGetCall struct { +type ProjectsLocationsMetadataStoresArtifactsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72011,8 +79146,8 @@ type ProjectsLocationsIndexesOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLocationsIndexesOperationsGetCall { - c := &ProjectsLocationsIndexesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Get(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72020,7 +79155,7 @@ func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72030,7 +79165,7 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -72038,21 +79173,21 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string // 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 *ProjectsLocationsIndexesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { 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 *ProjectsLocationsIndexesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) 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_ { @@ -72078,14 +79213,14 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.get" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72117,9 +79252,9 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOpt 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}/indexes/{indexesId}/operations/{operationsId}", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.operations.get", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.get", // "parameterOrder": [ // "name" // ], @@ -72127,7 +79262,7 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOpt // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -72143,9 +79278,9 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.indexes.operations.list": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.list": -type ProjectsLocationsIndexesOperationsListCall struct { +type ProjectsLocationsMetadataStoresArtifactsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72159,29 +79294,29 @@ type ProjectsLocationsIndexesOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsIndexesOperationsService) List(name string) *ProjectsLocationsIndexesOperationsListCall { - c := &ProjectsLocationsIndexesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) List(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsIndexesOperationsListCall) Filter(filter string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsIndexesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -72189,7 +79324,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72199,7 +79334,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -72207,21 +79342,21 @@ func (c *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag strin // 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 *ProjectsLocationsIndexesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { 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 *ProjectsLocationsIndexesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) 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_ { @@ -72247,7 +79382,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.list" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 @@ -72255,7 +79390,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72287,9 +79422,9 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp 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}/indexes/{indexesId}/operations", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.operations.list", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.list", // "parameterOrder": [ // "name" // ], @@ -72302,7 +79437,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" // }, @@ -72332,7 +79467,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) 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 { @@ -72350,9 +79485,9 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, } } -// method id "aiplatform.projects.locations.indexes.operations.wait": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.wait": -type ProjectsLocationsIndexesOperationsWaitCall struct { +type ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72372,8 +79507,8 @@ type ProjectsLocationsIndexesOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsLocationsIndexesOperationsWaitCall { - c := &ProjectsLocationsIndexesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72382,7 +79517,7 @@ func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsL // 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 *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -72390,7 +79525,7 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *Pr // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72398,21 +79533,21 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsIndexesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { 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 *ProjectsLocationsIndexesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) 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_ { @@ -72435,14 +79570,14 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.operations.wait" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72474,9 +79609,9 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp 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}/indexes/{indexesId}/operations/{operationsId}:wait", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.operations.wait", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.wait", // "parameterOrder": [ // "name" // ], @@ -72484,7 +79619,7 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -72506,48 +79641,348 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.metadataStores.create": +// method id "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions": -type ProjectsLocationsMetadataStoresCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1metadatastore *GoogleCloudAiplatformV1MetadataStore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall struct { + s *Service + context string + googlecloudaiplatformv1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Initializes a MetadataStore, including allocation of -// resources. +// AddContextArtifactsAndExecutions: Adds a set of Artifacts and +// Executions to a Context. If any of the Artifacts or Executions have +// already been added to a Context, they are simply skipped. // -// - parent: The resource name of the Location where the MetadataStore +// - context: The resource name of the Context that the Artifacts and +// Executions belong to. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) AddContextArtifactsAndExecutions(context string, googlecloudaiplatformv1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { + c := &ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context + c.googlecloudaiplatformv1addcontextartifactsandexecutionsrequest = googlecloudaiplatformv1addcontextartifactsandexecutionsrequest + 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { + 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { + 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1addcontextartifactsandexecutionsrequest) + 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/{+context}:addContextArtifactsAndExecutions") + 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{ + "context": c.context, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions" call. +// Exactly one of +// *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse.Serve +// rResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse, 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 := &GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse{ + 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": "Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextArtifactsAndExecutions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions", + // "parameterOrder": [ + // "context" + // ], + // "parameters": { + // "context": { + // "description": "Required. The resource name of the Context that the Artifacts and Executions belong to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+context}:addContextArtifactsAndExecutions", + // "request": { + // "$ref": "GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.metadataStores.contexts.addContextChildren": + +type ProjectsLocationsMetadataStoresContextsAddContextChildrenCall struct { + s *Service + context string + googlecloudaiplatformv1addcontextchildrenrequest *GoogleCloudAiplatformV1AddContextChildrenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// AddContextChildren: Adds a set of Contexts as children to a parent +// Context. If any of the child Contexts have already been added to the +// parent Context, they are simply skipped. If this call would create a +// cycle or cause any Context to have more than 10 parents, the request +// will fail with an INVALID_ARGUMENT error. +// +// - context: The resource name of the parent Context. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) AddContextChildren(context string, googlecloudaiplatformv1addcontextchildrenrequest *GoogleCloudAiplatformV1AddContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { + c := &ProjectsLocationsMetadataStoresContextsAddContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context + c.googlecloudaiplatformv1addcontextchildrenrequest = googlecloudaiplatformv1addcontextchildrenrequest + 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { + 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { + 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1addcontextchildrenrequest) + 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/{+context}:addContextChildren") + 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{ + "context": c.context, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextChildren" call. +// Exactly one of *GoogleCloudAiplatformV1AddContextChildrenResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1AddContextChildrenResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AddContextChildrenResponse, 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 := &GoogleCloudAiplatformV1AddContextChildrenResponse{ + 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": "Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextChildren", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextChildren", + // "parameterOrder": [ + // "context" + // ], + // "parameters": { + // "context": { + // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+context}:addContextChildren", + // "request": { + // "$ref": "GoogleCloudAiplatformV1AddContextChildrenRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1AddContextChildrenResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.metadataStores.contexts.create": + +type ProjectsLocationsMetadataStoresContextsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Context associated with a MetadataStore. +// +// - parent: The resource name of the MetadataStore where the Context // should be created. Format: -// `projects/{project}/locations/{location}/`. -func (r *ProjectsLocationsMetadataStoresService) Create(parent string, googlecloudaiplatformv1metadatastore *GoogleCloudAiplatformV1MetadataStore) *ProjectsLocationsMetadataStoresCreateCall { - c := &ProjectsLocationsMetadataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Create(parent string, googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context) *ProjectsLocationsMetadataStoresContextsCreateCall { + c := &ProjectsLocationsMetadataStoresContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1metadatastore = googlecloudaiplatformv1metadatastore + c.googlecloudaiplatformv1context = googlecloudaiplatformv1context return c } -// MetadataStoreId sets the optional parameter "metadataStoreId": The -// {metadatastore} portion of the resource name with the format: +// ContextId sets the optional parameter "contextId": The {context} +// portion of the resource name with the format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }` If not provided, the MetadataStore's ID will be a UUID generated -// by the service. Must be 4-128 characters in length. Valid characters -// are `/a-z-/`. Must be unique across all MetadataStores in the parent -// Location. (Otherwise the request will fail with ALREADY_EXISTS, or -// PERMISSION_DENIED if the caller can't view the preexisting -// MetadataStore.) -func (c *ProjectsLocationsMetadataStoresCreateCall) MetadataStoreId(metadataStoreId string) *ProjectsLocationsMetadataStoresCreateCall { - c.urlParams_.Set("metadataStoreId", metadataStoreId) +// }/contexts/{context}`. If not provided, the Context's ID will be a +// UUID generated by the service. Must be 4-128 characters in length. +// Valid characters are `/a-z-/`. Must be unique across all Contexts in +// the parent MetadataStore. (Otherwise the request will fail with +// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the +// preexisting Context.) +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) ContextId(contextId string) *ProjectsLocationsMetadataStoresContextsCreateCall { + c.urlParams_.Set("contextId", contextId) 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 *ProjectsLocationsMetadataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72555,21 +79990,21 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsMetadataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsCreateCall { 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 *ProjectsLocationsMetadataStoresCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) 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_ { @@ -72577,14 +80012,14 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1metadatastore) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1context) 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/{+parent}/metadataStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contexts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -72597,14 +80032,14 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.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 +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.create" call. +// Exactly one of *GoogleCloudAiplatformV1Context or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Context.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Context, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72623,7 +80058,7 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1Context{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -72635,33 +80070,33 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Initializes a MetadataStore, including allocation of resources.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores", + // "description": "Creates a Context associated with a MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.create", + // "id": "aiplatform.projects.locations.metadataStores.contexts.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "metadataStoreId": { - // "description": "The {metadatastore} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataStores in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataStore.)", + // "contextId": { + // "description": "The {context} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location where the MetadataStore should be created. Format: `projects/{project}/locations/{location}/`", + // "description": "Required. The resource name of the MetadataStore where the Context should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/metadataStores", + // "path": "v1/{+parent}/contexts", // "request": { - // "$ref": "GoogleCloudAiplatformV1MetadataStore" + // "$ref": "GoogleCloudAiplatformV1Context" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1Context" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -72670,9 +80105,9 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.metadataStores.delete": +// method id "aiplatform.projects.locations.metadataStores.contexts.delete": -type ProjectsLocationsMetadataStoresDeleteCall struct { +type ProjectsLocationsMetadataStoresContextsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72680,21 +80115,28 @@ type ProjectsLocationsMetadataStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes a single MetadataStore and all its child resources -// (Artifacts, Executions, and Contexts). +// Delete: Deletes a stored Context. // -// - name: The resource name of the MetadataStore to delete. Format: +// - name: The resource name of the Context to delete. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresService) Delete(name string) *ProjectsLocationsMetadataStoresDeleteCall { - c := &ProjectsLocationsMetadataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Delete(name string) *ProjectsLocationsMetadataStoresContextsDeleteCall { + c := &ProjectsLocationsMetadataStoresContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": Deprecated: Field is no -// longer supported. -func (c *ProjectsLocationsMetadataStoresDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresDeleteCall { +// Etag sets the optional parameter "etag": The etag of the Context to +// delete. If this is provided, it must match the server's etag. +// Otherwise, the request will fail with a FAILED_PRECONDITION. +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresContextsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Force sets the optional parameter "force": The force deletion +// semantics is still undefined. Users should not use this field. +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresContextsDeleteCall { c.urlParams_.Set("force", fmt.Sprint(force)) return c } @@ -72702,7 +80144,7 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Force(force bool) *ProjectsL // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72710,21 +80152,21 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsMetadataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsDeleteCall { 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 *ProjectsLocationsMetadataStoresDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) 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_ { @@ -72747,14 +80189,14 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.delete" call. +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72785,24 +80227,28 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", + // "description": "Deletes a stored Context.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.delete", + // "id": "aiplatform.projects.locations.metadataStores.contexts.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "etag": { + // "description": "Optional. The etag of the Context to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + // "location": "query", + // "type": "string" + // }, // "force": { - // "deprecated": true, - // "description": "Deprecated: Field is no longer supported.", + // "description": "The force deletion semantics is still undefined. Users should not use this field.", // "location": "query", // "type": "boolean" // }, // "name": { - // "description": "Required. The resource name of the MetadataStore to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The resource name of the Context to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } @@ -72818,9 +80264,9 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.metadataStores.get": +// method id "aiplatform.projects.locations.metadataStores.contexts.get": -type ProjectsLocationsMetadataStoresGetCall struct { +type ProjectsLocationsMetadataStoresContextsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72829,13 +80275,13 @@ type ProjectsLocationsMetadataStoresGetCall struct { header_ http.Header } -// Get: Retrieves a specific MetadataStore. +// Get: Retrieves a specific Context. // -// - name: The resource name of the MetadataStore to retrieve. Format: +// - name: The resource name of the Context to retrieve. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresService) Get(name string) *ProjectsLocationsMetadataStoresGetCall { - c := &ProjectsLocationsMetadataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Get(name string) *ProjectsLocationsMetadataStoresContextsGetCall { + c := &ProjectsLocationsMetadataStoresContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72843,7 +80289,7 @@ func (r *ProjectsLocationsMetadataStoresService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresGetCall { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72853,7 +80299,7 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsMetadataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresGetCall { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -72861,21 +80307,21 @@ func (c *ProjectsLocationsMetadataStoresGetCall) IfNoneMatch(entityTag string) * // 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 *ProjectsLocationsMetadataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresGetCall { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsGetCall { 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 *ProjectsLocationsMetadataStoresGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) 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_ { @@ -72901,15 +80347,14 @@ func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.get" call. -// Exactly one of *GoogleCloudAiplatformV1MetadataStore or error will be +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.get" call. +// Exactly one of *GoogleCloudAiplatformV1Context or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1MetadataStore.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1MetadataStore, error) { +// either *GoogleCloudAiplatformV1Context.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Context, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72928,7 +80373,7 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1MetadataStore{ + ret := &GoogleCloudAiplatformV1Context{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -72940,25 +80385,25 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Retrieves a specific MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", + // "description": "Retrieves a specific Context.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.get", + // "id": "aiplatform.projects.locations.metadataStores.contexts.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the MetadataStore to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The resource name of the Context to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1MetadataStore" + // "$ref": "GoogleCloudAiplatformV1Context" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -72967,9 +80412,9 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption } -// method id "aiplatform.projects.locations.metadataStores.list": +// method id "aiplatform.projects.locations.metadataStores.contexts.list": -type ProjectsLocationsMetadataStoresListCall struct { +type ProjectsLocationsMetadataStoresContextsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -72978,30 +80423,70 @@ type ProjectsLocationsMetadataStoresListCall struct { header_ http.Header } -// List: Lists MetadataStores for a Location. +// List: Lists Contexts on the MetadataStore. // -// - parent: The Location whose MetadataStores should be listed. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsMetadataStoresService) List(parent string) *ProjectsLocationsMetadataStoresListCall { - c := &ProjectsLocationsMetadataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The MetadataStore whose Contexts should be listed. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresContextsService) List(parent string) *ProjectsLocationsMetadataStoresContextsListCall { + c := &ProjectsLocationsMetadataStoresContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Contexts to satisfy in order to be part of +// the result set. The syntax to define filter query is based on +// https://google.aip.dev/160. Following are the supported set of +// filters: * **Attribute filtering**: For example: `display_name = +// "test". Supported fields include: `name`, `display_name`, +// `schema_title`, `create_time`, and `update_time`. Time fields, such +// as `create_time` and `update_time`, require values specified in +// RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..`. For +// example: `metadata.field_1.number_value = 10.0`. In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` * **Parent Child filtering**: To filter Contexts based on +// parent-child relationship use the HAS operator as follows: ``` +// parent_contexts: "projects//locations//metadataStores//contexts/" +// child_contexts: "projects//locations//metadataStores//contexts/" ``` +// Each of the above supported filters can be combined together using +// logical operators (`AND` & `OR`). Maximum nested expression depth +// allowed is 5. For example: `display_name = "test" AND +// metadata.field1.bool_value = true`. +func (c *ProjectsLocationsMetadataStoresContextsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresContextsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": How the list of +// messages is ordered. Specify the values to order by and an ordering +// operation. The default sorting order is ascending. To specify +// descending order for a field, users append a " desc" suffix; for +// example: "foo desc, bar". Subfields are specified with a `.` +// character, such as foo.bar. see https://google.aip.dev/132#ordering +// for more details. +func (c *ProjectsLocationsMetadataStoresContextsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresContextsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The maximum number -// of Metadata Stores to return. The service may return fewer. Must be -// in range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresListCall { +// of Contexts to return. The service may return fewer. Must be in range +// 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresContextsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListMetadataStores call. -// Provide this to retrieve the subsequent page. When paginating, all -// other provided parameters must match the call that provided the page -// token. (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresListCall { +// received from a previous MetadataService.ListContexts call. Provide +// this to retrieve the subsequent page. When paginating, all other +// provided parameters must match the call that provided the page token. +// (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresContextsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresContextsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -73009,7 +80494,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) PageToken(pageToken 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 *ProjectsLocationsMetadataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresListCall { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73019,7 +80504,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsMetadataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresListCall { +func (c *ProjectsLocationsMetadataStoresContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsListCall { c.ifNoneMatch_ = entityTag return c } @@ -73027,21 +80512,21 @@ func (c *ProjectsLocationsMetadataStoresListCall) IfNoneMatch(entityTag string) // 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 *ProjectsLocationsMetadataStoresListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresListCall { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsListCall { 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 *ProjectsLocationsMetadataStoresListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsListCall) 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_ { @@ -73054,7 +80539,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/metadataStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contexts") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -73067,16 +80552,16 @@ func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListMetadataStoresResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListContextsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListMetadataStoresResponse.ServerResponse.Head -// er or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListContextsResponse.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListMetadataStoresResponse, error) { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListContextsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73095,7 +80580,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListMetadataStoresResponse{ + ret := &GoogleCloudAiplatformV1ListContextsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73107,36 +80592,46 @@ func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists MetadataStores for a Location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores", + // "description": "Lists Contexts on the MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.list", + // "id": "aiplatform.projects.locations.metadataStores.contexts.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0`. In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Parent Child filtering**: To filter Contexts based on parent-child relationship use the HAS operator as follows: ``` parent_contexts: \"projects//locations//metadataStores//contexts/\" child_contexts: \"projects//locations//metadataStores//contexts/\" ``` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", + // "location": "query", + // "type": "string" + // }, // "pageSize": { - // "description": "The maximum number of Metadata Stores to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The maximum number of Contexts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListMetadataStores call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "description": "A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The Location whose MetadataStores should be listed. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The MetadataStore whose Contexts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/metadataStores", + // "path": "v1/{+parent}/contexts", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListMetadataStoresResponse" + // "$ref": "GoogleCloudAiplatformV1ListContextsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73148,7 +80643,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOptio // 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 *ProjectsLocationsMetadataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListMetadataStoresResponse) error) error { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListContextsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -73166,48 +80661,45 @@ func (c *ProjectsLocationsMetadataStoresListCall) Pages(ctx context.Context, f f } } -// method id "aiplatform.projects.locations.metadataStores.artifacts.create": +// method id "aiplatform.projects.locations.metadataStores.contexts.patch": -type ProjectsLocationsMetadataStoresArtifactsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an Artifact associated with a MetadataStore. +// Patch: Updates a stored Context. // -// - parent: The resource name of the MetadataStore where the Artifact -// should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Create(parent string, googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact) *ProjectsLocationsMetadataStoresArtifactsCreateCall { - c := &ProjectsLocationsMetadataStoresArtifactsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1artifact = googlecloudaiplatformv1artifact +// - name: Immutable. The resource name of the Context. +func (r *ProjectsLocationsMetadataStoresContextsService) Patch(name string, googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context) *ProjectsLocationsMetadataStoresContextsPatchCall { + c := &ProjectsLocationsMetadataStoresContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1context = googlecloudaiplatformv1context return c } -// ArtifactId sets the optional parameter "artifactId": The {artifact} -// portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/artifacts/{artifact}` If not provided, the Artifact's ID will be a -// UUID generated by the service. Must be 4-128 characters in length. -// Valid characters are `/a-z-/`. Must be unique across all Artifacts in -// the parent MetadataStore. (Otherwise the request will fail with -// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the -// preexisting Artifact.) -func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) ArtifactId(artifactId string) *ProjectsLocationsMetadataStoresArtifactsCreateCall { - c.urlParams_.Set("artifactId", artifactId) +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, and the Context is not found, a new Context is created. +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresContextsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": A FieldMask +// indicating which fields should be updated. +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresContextsPatchCall { + 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73215,21 +80707,21 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPatchCall { 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) 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_ { @@ -73237,14 +80729,169 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1artifact) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1context) 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/{+parent}/artifacts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.patch" call. +// Exactly one of *GoogleCloudAiplatformV1Context or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Context.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Context, 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 := &GoogleCloudAiplatformV1Context{ + 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": "Updates a stored Context.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.metadataStores.contexts.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true, and the Context is not found, a new Context is created.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Immutable. The resource name of the Context.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. A FieldMask indicating which fields should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Context" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1Context" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.metadataStores.contexts.purge": + +type ProjectsLocationsMetadataStoresContextsPurgeCall struct { + s *Service + parent string + googlecloudaiplatformv1purgecontextsrequest *GoogleCloudAiplatformV1PurgeContextsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Purge: Purges Contexts. +// +// - parent: The metadata store to purge Contexts from. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Purge(parent string, googlecloudaiplatformv1purgecontextsrequest *GoogleCloudAiplatformV1PurgeContextsRequest) *ProjectsLocationsMetadataStoresContextsPurgeCall { + c := &ProjectsLocationsMetadataStoresContextsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1purgecontextsrequest = googlecloudaiplatformv1purgecontextsrequest + 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPurgeCall { + 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPurgeCall { + 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1purgecontextsrequest) + 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/{+parent}/contexts:purge") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -73257,14 +80904,14 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.create" call. -// Exactly one of *GoogleCloudAiplatformV1Artifact or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Artifact.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.purge" 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Artifact, error) { +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73283,7 +80930,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Artifact{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73295,33 +80942,28 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleap } return ret, nil // { - // "description": "Creates an Artifact associated with a MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", + // "description": "Purges Contexts.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts:purge", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.create", + // "id": "aiplatform.projects.locations.metadataStores.contexts.purge", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "artifactId": { - // "description": "The {artifact} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Artifact.)", - // "location": "query", - // "type": "string" - // }, // "parent": { - // "description": "Required. The resource name of the MetadataStore where the Artifact should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The metadata store to purge Contexts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/artifacts", + // "path": "v1/{+parent}/contexts:purge", // "request": { - // "$ref": "GoogleCloudAiplatformV1Artifact" + // "$ref": "GoogleCloudAiplatformV1PurgeContextsRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1Artifact" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73330,91 +80972,104 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.artifacts.delete": +// method id "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph": -type ProjectsLocationsMetadataStoresArtifactsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall struct { + s *Service + context string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an Artifact. +// QueryContextLineageSubgraph: Retrieves Artifacts and Executions +// within the specified Context, connected by Event edges and returned +// as a LineageSubgraph. // -// - name: The resource name of the Artifact to delete. Format: +// - context: The resource name of the Context whose Artifacts and +// Executions should be retrieved as a LineageSubgraph. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/artifacts/{artifact}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Delete(name string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { - c := &ProjectsLocationsMetadataStoresArtifactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Etag sets the optional parameter "etag": The etag of the Artifact to -// delete. If this is provided, it must match the server's etag. -// Otherwise, the request will fail with a FAILED_PRECONDITION. -func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { - c.urlParams_.Set("etag", etag) +// re}/contexts/{context}` The request may error with +// FAILED_PRECONDITION if the number of Artifacts, the number of +// Executions, or the number of Events that would be returned for the +// Context exceeds 1000. +func (r *ProjectsLocationsMetadataStoresContextsService) QueryContextLineageSubgraph(context string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { + c := &ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context 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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { + 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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { 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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1/{+context}:queryContextLineageSubgraph") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "context": c.context, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph" call. +// Exactly one of *GoogleCloudAiplatformV1LineageSubgraph or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1LineageSubgraph.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1LineageSubgraph, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73433,7 +81088,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1LineageSubgraph{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73445,30 +81100,25 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Deletes an Artifact.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.delete", + // "description": "Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:queryContextLineageSubgraph", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph", // "parameterOrder": [ - // "name" + // "context" // ], // "parameters": { - // "etag": { - // "description": "Optional. The etag of the Artifact to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The resource name of the Artifact to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", + // "context": { + // "description": "Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+context}:queryContextLineageSubgraph", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1LineageSubgraph" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73477,97 +81127,94 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.artifacts.get": +// method id "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren": -type ProjectsLocationsMetadataStoresArtifactsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall struct { + s *Service + context string + googlecloudaiplatformv1removecontextchildrenrequest *GoogleCloudAiplatformV1RemoveContextChildrenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Retrieves a specific Artifact. +// RemoveContextChildren: Remove a set of children contexts from a +// parent Context. If any of the child Contexts were NOT added to the +// parent Context, they are simply skipped. // -// - name: The resource name of the Artifact to retrieve. Format: +// - context: The resource name of the parent Context. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/artifacts/{artifact}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Get(name string) *ProjectsLocationsMetadataStoresArtifactsGetCall { - c := &ProjectsLocationsMetadataStoresArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) RemoveContextChildren(context string, googlecloudaiplatformv1removecontextchildrenrequest *GoogleCloudAiplatformV1RemoveContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { + c := &ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context + c.googlecloudaiplatformv1removecontextchildrenrequest = googlecloudaiplatformv1removecontextchildrenrequest 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsGetCall { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsGetCall { - 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsGetCall { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) 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.googlecloudaiplatformv1removecontextchildrenrequest) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+context}:removeContextChildren") 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, + "context": c.context, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.get" call. -// Exactly one of *GoogleCloudAiplatformV1Artifact or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Artifact.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Artifact, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren" call. +// Exactly one of *GoogleCloudAiplatformV1RemoveContextChildrenResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1RemoveContextChildrenResponse.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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RemoveContextChildrenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73586,7 +81233,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Artifact{ + ret := &GoogleCloudAiplatformV1RemoveContextChildrenResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73598,25 +81245,28 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Retrieves a specific Artifact.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.get", + // "description": "Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:removeContextChildren", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren", // "parameterOrder": [ - // "name" + // "context" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", + // "context": { + // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+context}:removeContextChildren", + // "request": { + // "$ref": "GoogleCloudAiplatformV1RemoveContextChildrenRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1Artifact" + // "$ref": "GoogleCloudAiplatformV1RemoveContextChildrenResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73625,156 +81275,90 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.metadataStores.artifacts.list": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.cancel": -type ProjectsLocationsMetadataStoresArtifactsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Artifacts in the MetadataStore. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The MetadataStore whose Artifacts should be listed. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) List(parent string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c := &ProjectsLocationsMetadataStoresArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Artifacts to satisfy in order to be part of -// the result set. The syntax to define filter query is based on -// https://google.aip.dev/160. The supported set of filters include the -// following: * **Attribute filtering**: For example: `display_name = -// "test". Supported fields include: `name`, `display_name`, `uri`, -// `state`, `schema_title`, `create_time`, and `update_time`. Time -// fields, such as `create_time` and `update_time`, require values -// specified in RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..`. For -// example: `metadata.field_1.number_value = 10.0` In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` * **Context based filtering**: To filter Artifacts based on the -// contexts to which they belong, use the function operator with the -// full resource name `in_context()`. For example: -// `in_context("projects//locations//metadataStores//contexts/")` Each -// of the above supported filter types can be combined together using -// logical operators (`AND` & `OR`). Maximum nested expression depth -// allowed is 5. For example: `display_name = "test" AND -// metadata.field1.bool_value = true`. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": How the list of -// messages is ordered. Specify the values to order by and an ordering -// operation. The default sorting order is ascending. To specify -// descending order for a field, users append a " desc" suffix; for -// example: "foo desc, bar". Subfields are specified with a `.` -// character, such as foo.bar. see https://google.aip.dev/132#ordering -// for more details. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Artifacts to return. The service may return fewer. Must be in -// range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListArtifacts call. Provide -// this to retrieve the subsequent page. When paginating, all other -// provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresContextsOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsCancelCall{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 *ProjectsLocationsMetadataStoresArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsListCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsListCall { - 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsListCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) 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/{+parent}/artifacts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListArtifactsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListArtifactsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListArtifactsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73793,7 +81377,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListArtifactsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73805,46 +81389,25 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists Artifacts in the MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.list", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Artifacts based on the contexts to which they belong, use the function operator with the full resource name `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The MetadataStore whose Artifacts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/artifacts", + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListArtifactsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73853,66 +81416,32 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListArtifactsResponse) 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.metadataStores.artifacts.patch": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.delete": -type ProjectsLocationsMetadataStoresArtifactsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a stored Artifact. +// 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: Output only. The resource name of the Artifact. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Patch(name string, googlecloudaiplatformv1artifact *GoogleCloudAiplatformV1Artifact) *ProjectsLocationsMetadataStoresArtifactsPatchCall { - c := &ProjectsLocationsMetadataStoresArtifactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1artifact = googlecloudaiplatformv1artifact - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set to -// true, and the Artifact is not found, a new Artifact is created. -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresArtifactsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": A FieldMask -// indicating which fields should be updated. -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresArtifactsPatchCall { - 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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPatchCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73920,21 +81449,21 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Fields(s ...googleap // 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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPatchCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) 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_ { @@ -73942,16 +81471,11 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1artifact) - 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -73962,14 +81486,14 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.patch" call. -// Exactly one of *GoogleCloudAiplatformV1Artifact or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Artifact.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Artifact, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73988,7 +81512,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Artifact{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -74000,39 +81524,25 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Updates a stored Artifact.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.patch", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "allowMissing": { - // "description": "If set to true, and the Artifact is not found, a new Artifact is created.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Output only. The resource name of the Artifact.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. A FieldMask indicating which fields should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Artifact" - // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1Artifact" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -74041,90 +81551,97 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.artifacts.purge": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.get": -type ProjectsLocationsMetadataStoresArtifactsPurgeCall struct { - s *Service - parent string - googlecloudaiplatformv1purgeartifactsrequest *GoogleCloudAiplatformV1PurgeArtifactsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Purge: Purges Artifacts. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The metadata store to purge Artifacts from. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Purge(parent string, googlecloudaiplatformv1purgeartifactsrequest *GoogleCloudAiplatformV1PurgeArtifactsRequest) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { - c := &ProjectsLocationsMetadataStoresArtifactsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1purgeartifactsrequest = googlecloudaiplatformv1purgeartifactsrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Get(name string) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsGetCall{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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresContextsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { + 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1purgeartifactsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/artifacts:purge") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.purge" call. +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74155,26 +81672,23 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Purges Artifacts.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts:purge", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.purge", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The metadata store to purge Artifacts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/artifacts:purge", - // "request": { - // "$ref": "GoogleCloudAiplatformV1PurgeArtifactsRequest" - // }, + // "path": "v1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -74185,71 +81699,53 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.list": -type ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall struct { +type ProjectsLocationsMetadataStoresContextsOperationsListCall struct { s *Service - artifact string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// QueryArtifactLineageSubgraph: Retrieves lineage of an Artifact -// represented through Artifacts and Executions connected by Event edges -// and returned as a LineageSubgraph. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - artifact: The resource name of the Artifact whose Lineage needs to -// be retrieved as a LineageSubgraph. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/artifacts/{artifact}` The request may error with -// FAILED_PRECONDITION if the number of Artifacts, the number of -// Executions, or the number of Events that would be returned for the -// Context exceeds 1000. -func (r *ProjectsLocationsMetadataStoresArtifactsService) QueryArtifactLineageSubgraph(artifact string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { - c := &ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.artifact = artifact +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) List(name string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Artifacts to satisfy in order to be part of -// the Lineage Subgraph. The syntax to define filter query is based on -// https://google.aip.dev/160. The supported set of filters include the -// following: * **Attribute filtering**: For example: `display_name = -// "test" Supported fields include: `name`, `display_name`, `uri`, -// `state`, `schema_title`, `create_time`, and `update_time`. Time -// fields, such as `create_time` and `update_time`, require values -// specified in RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..`. For -// example: `metadata.field_1.number_value = 10.0` In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` Each of the above supported filter types can be combined -// together using logical operators (`AND` & `OR`). Maximum nested -// expression depth allowed is 5. For example: `display_name = "test" -// AND metadata.field1.bool_value = true`. -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// MaxHops sets the optional parameter "maxHops": Specifies the size of -// the lineage graph in terms of number of hops from the specified -// artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only -// input artifact is returned. No value: Transitive closure is performed -// to return the complete graph. -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) MaxHops(maxHops int64) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { - c.urlParams_.Set("maxHops", fmt.Sprint(maxHops)) +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { + 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74259,7 +81755,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal // 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -74267,21 +81763,21 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal // 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsListCall { 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) 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_ { @@ -74294,7 +81790,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+artifact}:queryArtifactLineageSubgraph") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -74302,20 +81798,20 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "artifact": c.artifact, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph" call. -// Exactly one of *GoogleCloudAiplatformV1LineageSubgraph or error will +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 -// *GoogleCloudAiplatformV1LineageSubgraph.ServerResponse.Header or (if +// *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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1LineageSubgraph, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74334,7 +81830,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1LineageSubgraph{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -74346,36 +81842,41 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal } return ret, nil // { - // "description": "Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}:queryArtifactLineageSubgraph", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.list", // "parameterOrder": [ - // "artifact" + // "name" // ], // "parameters": { - // "artifact": { - // "description": "Required. The resource name of the Artifact whose Lineage needs to be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", - // "required": true, - // "type": "string" - // }, // "filter": { - // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"` Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "maxHops": { - // "description": "Specifies the size of the lineage graph in terms of number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: Transitive closure is performed to return the complete graph.", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "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/{+artifact}:queryArtifactLineageSubgraph", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1LineageSubgraph" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -74384,36 +81885,68 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal } -// method id "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions": +// 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 *ProjectsLocationsMetadataStoresContextsOperationsListCall) 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) + } +} -type ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall struct { - s *Service - context string - googlecloudaiplatformv1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.wait": + +type ProjectsLocationsMetadataStoresContextsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddContextArtifactsAndExecutions: Adds a set of Artifacts and -// Executions to a Context. If any of the Artifacts or Executions have -// already been added to a Context, they are simply skipped. +// 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. // -// - context: The resource name of the Context that the Artifacts and -// Executions belong to. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) AddContextArtifactsAndExecutions(context string, googlecloudaiplatformv1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { - c := &ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context - c.googlecloudaiplatformv1addcontextartifactsandexecutionsrequest = googlecloudaiplatformv1addcontextartifactsandexecutionsrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsWaitCall{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 *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { + 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74421,21 +81954,21 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions // 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) 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_ { @@ -74443,14 +81976,9 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1addcontextartifactsandexecutionsrequest) - 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/{+context}:addContextArtifactsAndExecutions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -74458,22 +81986,19 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions" call. -// Exactly one of -// *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse.Serve -// rResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74492,7 +82017,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -74504,28 +82029,31 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } return ret, nil // { - // "description": "Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextArtifactsAndExecutions", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.wait", // "parameterOrder": [ - // "context" + // "name" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the Context that the Artifacts and Executions belong to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/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/{+context}:addContextArtifactsAndExecutions", - // "request": { - // "$ref": "GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest" - // }, + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -74534,37 +82062,37 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } -// method id "aiplatform.projects.locations.metadataStores.contexts.addContextChildren": +// method id "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents": -type ProjectsLocationsMetadataStoresContextsAddContextChildrenCall struct { +type ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall struct { s *Service - context string - googlecloudaiplatformv1addcontextchildrenrequest *GoogleCloudAiplatformV1AddContextChildrenRequest + execution string + googlecloudaiplatformv1addexecutioneventsrequest *GoogleCloudAiplatformV1AddExecutionEventsRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// AddContextChildren: Adds a set of Contexts as children to a parent -// Context. If any of the child Contexts have already been added to the -// parent Context, they are simply skipped. If this call would create a -// cycle or cause any Context to have more than 10 parents, the request -// will fail with an INVALID_ARGUMENT error. +// AddExecutionEvents: Adds Events to the specified Execution. An Event +// indicates whether an Artifact was used as an input or output for an +// Execution. If an Event already exists between the Execution and the +// Artifact, the Event is skipped. // -// - context: The resource name of the parent Context. Format: +// - execution: The resource name of the Execution that the Events +// connect Artifacts with. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) AddContextChildren(context string, googlecloudaiplatformv1addcontextchildrenrequest *GoogleCloudAiplatformV1AddContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { - c := &ProjectsLocationsMetadataStoresContextsAddContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context - c.googlecloudaiplatformv1addcontextchildrenrequest = googlecloudaiplatformv1addcontextchildrenrequest +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) AddExecutionEvents(execution string, googlecloudaiplatformv1addexecutioneventsrequest *GoogleCloudAiplatformV1AddExecutionEventsRequest) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { + c := &ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.execution = execution + c.googlecloudaiplatformv1addexecutioneventsrequest = googlecloudaiplatformv1addexecutioneventsrequest 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74572,21 +82100,21 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) 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_ { @@ -74594,14 +82122,14 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doReques } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1addcontextchildrenrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1addexecutioneventsrequest) 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/{+context}:addContextChildren") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+execution}:addExecutionEvents") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -74609,21 +82137,21 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doReques } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "execution": c.execution, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextChildren" call. -// Exactly one of *GoogleCloudAiplatformV1AddContextChildrenResponse or +// Do executes the "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents" call. +// Exactly one of *GoogleCloudAiplatformV1AddExecutionEventsResponse or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1AddContextChildrenResponse.ServerResponse.Head +// *GoogleCloudAiplatformV1AddExecutionEventsResponse.ServerResponse.Head // er or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AddContextChildrenResponse, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AddExecutionEventsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74642,7 +82170,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1AddContextChildrenResponse{ + ret := &GoogleCloudAiplatformV1AddExecutionEventsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -74654,28 +82182,28 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts } return ret, nil // { - // "description": "Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextChildren", + // "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextChildren", + // "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", // "parameterOrder": [ - // "context" + // "execution" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "execution": { + // "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+context}:addContextChildren", + // "path": "v1/{+execution}:addExecutionEvents", // "request": { - // "$ref": "GoogleCloudAiplatformV1AddContextChildrenRequest" + // "$ref": "GoogleCloudAiplatformV1AddExecutionEventsRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1AddContextChildrenResponse" + // "$ref": "GoogleCloudAiplatformV1AddExecutionEventsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -74684,48 +82212,48 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts } -// method id "aiplatform.projects.locations.metadataStores.contexts.create": +// method id "aiplatform.projects.locations.metadataStores.executions.create": -type ProjectsLocationsMetadataStoresContextsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a Context associated with a MetadataStore. +// Create: Creates an Execution associated with a MetadataStore. // -// - parent: The resource name of the MetadataStore where the Context +// - parent: The resource name of the MetadataStore where the Execution // should be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto // re}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Create(parent string, googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context) *ProjectsLocationsMetadataStoresContextsCreateCall { - c := &ProjectsLocationsMetadataStoresContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresExecutionsService) Create(parent string, googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution) *ProjectsLocationsMetadataStoresExecutionsCreateCall { + c := &ProjectsLocationsMetadataStoresExecutionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1context = googlecloudaiplatformv1context + c.googlecloudaiplatformv1execution = googlecloudaiplatformv1execution return c } -// ContextId sets the optional parameter "contextId": The {context} -// portion of the resource name with the format: +// ExecutionId sets the optional parameter "executionId": The +// {execution} portion of the resource name with the format: // `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/contexts/{context}`. If not provided, the Context's ID will be a -// UUID generated by the service. Must be 4-128 characters in length. -// Valid characters are `/a-z-/`. Must be unique across all Contexts in -// the parent MetadataStore. (Otherwise the request will fail with +// }/executions/{execution}` If not provided, the Execution's ID will be +// a UUID generated by the service. Must be 4-128 characters in length. +// Valid characters are `/a-z-/`. Must be unique across all Executions +// in the parent MetadataStore. (Otherwise the request will fail with // ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the -// preexisting Context.) -func (c *ProjectsLocationsMetadataStoresContextsCreateCall) ContextId(contextId string) *ProjectsLocationsMetadataStoresContextsCreateCall { - c.urlParams_.Set("contextId", contextId) +// preexisting Execution.) +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) ExecutionId(executionId string) *ProjectsLocationsMetadataStoresExecutionsCreateCall { + c.urlParams_.Set("executionId", executionId) 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 *ProjectsLocationsMetadataStoresContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsCreateCall { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74733,21 +82261,21 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Fields(s ...googleap // 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 *ProjectsLocationsMetadataStoresContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsCreateCall { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsCreateCall { 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 *ProjectsLocationsMetadataStoresContextsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) 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_ { @@ -74755,14 +82283,14 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1context) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1execution) 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/{+parent}/contexts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -74775,14 +82303,14 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.create" call. -// Exactly one of *GoogleCloudAiplatformV1Context or error will be +// Do executes the "aiplatform.projects.locations.metadataStores.executions.create" call. +// Exactly one of *GoogleCloudAiplatformV1Execution or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Context.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudAiplatformV1Execution.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Context, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Execution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74801,7 +82329,7 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Context{ + ret := &GoogleCloudAiplatformV1Execution{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -74813,33 +82341,33 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Creates a Context associated with a MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", + // "description": "Creates an Execution associated with a MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.create", + // "id": "aiplatform.projects.locations.metadataStores.executions.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "contextId": { - // "description": "The {context} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.)", + // "executionId": { + // "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the MetadataStore where the Context should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/contexts", + // "path": "v1/{+parent}/executions", // "request": { - // "$ref": "GoogleCloudAiplatformV1Context" + // "$ref": "GoogleCloudAiplatformV1Execution" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1Context" + // "$ref": "GoogleCloudAiplatformV1Execution" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -74848,9 +82376,9 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.contexts.delete": +// method id "aiplatform.projects.locations.metadataStores.executions.delete": -type ProjectsLocationsMetadataStoresContextsDeleteCall struct { +type ProjectsLocationsMetadataStoresExecutionsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74858,36 +82386,29 @@ type ProjectsLocationsMetadataStoresContextsDeleteCall struct { header_ http.Header } -// Delete: Deletes a stored Context. +// Delete: Deletes an Execution. // -// - name: The resource name of the Context to delete. Format: +// - name: The resource name of the Execution to delete. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Delete(name string) *ProjectsLocationsMetadataStoresContextsDeleteCall { - c := &ProjectsLocationsMetadataStoresContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Delete(name string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { + c := &ProjectsLocationsMetadataStoresExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Etag sets the optional parameter "etag": The etag of the Context to +// Etag sets the optional parameter "etag": The etag of the Execution to // delete. If this is provided, it must match the server's etag. // Otherwise, the request will fail with a FAILED_PRECONDITION. -func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresContextsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { c.urlParams_.Set("etag", etag) return c } -// Force sets the optional parameter "force": The force deletion -// semantics is still undefined. Users should not use this field. -func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresContextsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74895,21 +82416,21 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Fields(s ...googleap // 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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { 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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) 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_ { @@ -74932,14 +82453,14 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.delete" call. +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74970,28 +82491,23 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Deletes a stored Context.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "description": "Deletes an Execution.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.contexts.delete", + // "id": "aiplatform.projects.locations.metadataStores.executions.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "etag": { - // "description": "Optional. The etag of the Context to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + // "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", // "location": "query", // "type": "string" // }, - // "force": { - // "description": "The force deletion semantics is still undefined. Users should not use this field.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The resource name of the Context to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } @@ -75007,9 +82523,9 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.contexts.get": +// method id "aiplatform.projects.locations.metadataStores.executions.get": -type ProjectsLocationsMetadataStoresContextsGetCall struct { +type ProjectsLocationsMetadataStoresExecutionsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -75018,13 +82534,13 @@ type ProjectsLocationsMetadataStoresContextsGetCall struct { header_ http.Header } -// Get: Retrieves a specific Context. +// Get: Retrieves a specific Execution. // -// - name: The resource name of the Context to retrieve. Format: +// - name: The resource name of the Execution to retrieve. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Get(name string) *ProjectsLocationsMetadataStoresContextsGetCall { - c := &ProjectsLocationsMetadataStoresContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Get(name string) *ProjectsLocationsMetadataStoresExecutionsGetCall { + c := &ProjectsLocationsMetadataStoresExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -75032,7 +82548,7 @@ func (r *ProjectsLocationsMetadataStoresContextsService) Get(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75042,7 +82558,7 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsMetadataStoresContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -75050,21 +82566,21 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) IfNoneMatch(entityTag 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 *ProjectsLocationsMetadataStoresContextsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsGetCall { 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 *ProjectsLocationsMetadataStoresContextsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) 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_ { @@ -75090,14 +82606,14 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.get" call. -// Exactly one of *GoogleCloudAiplatformV1Context or error will be +// Do executes the "aiplatform.projects.locations.metadataStores.executions.get" call. +// Exactly one of *GoogleCloudAiplatformV1Execution or error will be // non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Context.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// either *GoogleCloudAiplatformV1Execution.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Context, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Execution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75116,7 +82632,7 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Context{ + ret := &GoogleCloudAiplatformV1Execution{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75128,25 +82644,25 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Retrieves a specific Context.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "description": "Retrieves a specific Execution.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.contexts.get", + // "id": "aiplatform.projects.locations.metadataStores.executions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Context to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "description": "Required. The resource name of the Execution to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Context" + // "$ref": "GoogleCloudAiplatformV1Execution" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75155,9 +82671,9 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.metadataStores.contexts.list": +// method id "aiplatform.projects.locations.metadataStores.executions.list": -type ProjectsLocationsMetadataStoresContextsListCall struct { +type ProjectsLocationsMetadataStoresExecutionsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -75166,40 +82682,41 @@ type ProjectsLocationsMetadataStoresContextsListCall struct { header_ http.Header } -// List: Lists Contexts on the MetadataStore. +// List: Lists Executions in the MetadataStore. // -// - parent: The MetadataStore whose Contexts should be listed. Format: +// - parent: The MetadataStore whose Executions should be listed. +// Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto // re}`. -func (r *ProjectsLocationsMetadataStoresContextsService) List(parent string) *ProjectsLocationsMetadataStoresContextsListCall { - c := &ProjectsLocationsMetadataStoresContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresExecutionsService) List(parent string) *ProjectsLocationsMetadataStoresExecutionsListCall { + c := &ProjectsLocationsMetadataStoresExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Contexts to satisfy in order to be part of -// the result set. The syntax to define filter query is based on +// boolean condition for the Executions to satisfy in order to be part +// of the result set. The syntax to define filter query is based on // https://google.aip.dev/160. Following are the supported set of // filters: * **Attribute filtering**: For example: `display_name = -// "test". Supported fields include: `name`, `display_name`, +// "test". Supported fields include: `name`, `display_name`, `state`, // `schema_title`, `create_time`, and `update_time`. Time fields, such // as `create_time` and `update_time`, require values specified in // RFC-3339 format. For example: `create_time = // "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..`. For -// example: `metadata.field_1.number_value = 10.0`. In case the field +// metadata fields use traversal operation as follows: `metadata..` For +// example: `metadata.field_1.number_value = 10.0` In case the field // name contains special characters (such as colon), one can embed it // inside double quote. For example: `metadata."field:1".number_value = -// 10.0` * **Parent Child filtering**: To filter Contexts based on -// parent-child relationship use the HAS operator as follows: ``` -// parent_contexts: "projects//locations//metadataStores//contexts/" -// child_contexts: "projects//locations//metadataStores//contexts/" ``` -// Each of the above supported filters can be combined together using -// logical operators (`AND` & `OR`). Maximum nested expression depth -// allowed is 5. For example: `display_name = "test" AND -// metadata.field1.bool_value = true`. -func (c *ProjectsLocationsMetadataStoresContextsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresContextsListCall { +// 10.0` * **Context based filtering**: To filter Executions based on +// the contexts to which they belong use the function operator with the +// full resource name: `in_context()`. For example: +// `in_context("projects//locations//metadataStores//contexts/")` Each +// of the above supported filters can be combined together using logical +// operators (`AND` & `OR`). Maximum nested expression depth allowed is +// 5. For example: `display_name = "test" AND metadata.field1.bool_value +// = true`. +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresExecutionsListCall { c.urlParams_.Set("filter", filter) return c } @@ -75211,25 +82728,25 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Filter(filter string) // example: "foo desc, bar". Subfields are specified with a `.` // character, such as foo.bar. see https://google.aip.dev/132#ordering // for more details. -func (c *ProjectsLocationsMetadataStoresContextsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresExecutionsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of Contexts to return. The service may return fewer. Must be in range -// 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresContextsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsListCall { +// of Executions to return. The service may return fewer. Must be in +// range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListContexts call. Provide +// received from a previous MetadataService.ListExecutions call. Provide // this to retrieve the subsequent page. When paginating, all other // provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresContextsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresContextsListCall { +// (Otherwise the request will fail with an INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresExecutionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -75237,7 +82754,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) PageToken(pageToken st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75247,7 +82764,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) 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 *ProjectsLocationsMetadataStoresContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsListCall { c.ifNoneMatch_ = entityTag return c } @@ -75255,21 +82772,21 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) 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 *ProjectsLocationsMetadataStoresContextsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsListCall { 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 *ProjectsLocationsMetadataStoresContextsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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_ { @@ -75282,7 +82799,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/contexts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -75295,16 +82812,16 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListContextsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.metadataStores.executions.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListExecutionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListContextsResponse.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListExecutionsResponse.ServerResponse.Header +// or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListContextsResponse, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75323,7 +82840,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListContextsResponse{ + ret := &GoogleCloudAiplatformV1ListExecutionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75335,16 +82852,16 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Lists Contexts on the MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", + // "description": "Lists Executions in the MetadataStore.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.contexts.list", + // "id": "aiplatform.projects.locations.metadataStores.executions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0`. In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Parent Child filtering**: To filter Contexts based on parent-child relationship use the HAS operator as follows: ``` parent_contexts: \"projects//locations//metadataStores//contexts/\" child_contexts: \"projects//locations//metadataStores//contexts/\" ``` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "description": "Filter specifying the boolean condition for the Executions to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Executions based on the contexts to which they belong use the function operator with the full resource name: `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", // "location": "query", // "type": "string" // }, @@ -75354,27 +82871,27 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Contexts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The maximum number of Executions to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "description": "A page token, received from a previous MetadataService.ListExecutions call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with an INVALID_ARGUMENT error.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The MetadataStore whose Contexts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The MetadataStore whose Executions should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/contexts", + // "path": "v1/{+parent}/executions", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListContextsResponse" + // "$ref": "GoogleCloudAiplatformV1ListExecutionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75386,7 +82903,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C // 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 *ProjectsLocationsMetadataStoresContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListContextsResponse) error) error { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListExecutionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -75404,37 +82921,37 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Pages(ctx context.Cont } } -// method id "aiplatform.projects.locations.metadataStores.contexts.patch": +// method id "aiplatform.projects.locations.metadataStores.executions.patch": -type ProjectsLocationsMetadataStoresContextsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a stored Context. +// Patch: Updates a stored Execution. // -// - name: Immutable. The resource name of the Context. -func (r *ProjectsLocationsMetadataStoresContextsService) Patch(name string, googlecloudaiplatformv1context *GoogleCloudAiplatformV1Context) *ProjectsLocationsMetadataStoresContextsPatchCall { - c := &ProjectsLocationsMetadataStoresContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Execution. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Patch(name string, googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution) *ProjectsLocationsMetadataStoresExecutionsPatchCall { + c := &ProjectsLocationsMetadataStoresExecutionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1context = googlecloudaiplatformv1context + c.googlecloudaiplatformv1execution = googlecloudaiplatformv1execution return c } // AllowMissing sets the optional parameter "allowMissing": If set to -// true, and the Context is not found, a new Context is created. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresContextsPatchCall { +// true, and the Execution is not found, a new Execution is created. +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresExecutionsPatchCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } // UpdateMask sets the optional parameter "updateMask": A FieldMask // indicating which fields should be updated. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresContextsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresExecutionsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -75442,7 +82959,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) UpdateMask(updateMask // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75450,21 +82967,21 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) 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 *ProjectsLocationsMetadataStoresContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPatchCall { 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 *ProjectsLocationsMetadataStoresContextsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) 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_ { @@ -75472,34 +82989,344 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1context) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1execution) + 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}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.metadataStores.executions.patch" call. +// Exactly one of *GoogleCloudAiplatformV1Execution or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1Execution.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Execution, 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 := &GoogleCloudAiplatformV1Execution{ + 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": "Updates a stored Execution.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.metadataStores.executions.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "If set to true, and the Execution is not found, a new Execution is created.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Output only. The resource name of the Execution.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. A FieldMask indicating which fields should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1Execution" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1Execution" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.metadataStores.executions.purge": + +type ProjectsLocationsMetadataStoresExecutionsPurgeCall struct { + s *Service + parent string + googlecloudaiplatformv1purgeexecutionsrequest *GoogleCloudAiplatformV1PurgeExecutionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Purge: Purges Executions. +// +// - parent: The metadata store to purge Executions from. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Purge(parent string, googlecloudaiplatformv1purgeexecutionsrequest *GoogleCloudAiplatformV1PurgeExecutionsRequest) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { + c := &ProjectsLocationsMetadataStoresExecutionsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1purgeexecutionsrequest = googlecloudaiplatformv1purgeexecutionsrequest + 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { + 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { + 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1purgeexecutionsrequest) 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions:purge") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.metadataStores.executions.purge" 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) 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": "Purges Executions.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions:purge", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.executions.purge", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The metadata store to purge Executions from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/executions:purge", + // "request": { + // "$ref": "GoogleCloudAiplatformV1PurgeExecutionsRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs": + +type ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall struct { + s *Service + execution string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// QueryExecutionInputsAndOutputs: Obtains the set of input and output +// Artifacts for this Execution, in the form of LineageSubgraph that +// also contains the Execution and connecting Events. +// +// - execution: The resource name of the Execution whose input and +// output Artifacts should be retrieved as a LineageSubgraph. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) QueryExecutionInputsAndOutputs(execution string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { + c := &ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.execution = execution + 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { + 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { + 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { + 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) 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/{+execution}:queryExecutionInputsAndOutputs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "execution": c.execution, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.patch" call. -// Exactly one of *GoogleCloudAiplatformV1Context or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Context.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs" call. +// Exactly one of *GoogleCloudAiplatformV1LineageSubgraph or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1LineageSubgraph.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Context, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1LineageSubgraph, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75518,7 +83345,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Context{ + ret := &GoogleCloudAiplatformV1LineageSubgraph{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75530,39 +83357,25 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Updates a stored Context.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.metadataStores.contexts.patch", + // "description": "Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:queryExecutionInputsAndOutputs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs", // "parameterOrder": [ - // "name" + // "execution" // ], // "parameters": { - // "allowMissing": { - // "description": "If set to true, and the Context is not found, a new Context is created.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Immutable. The resource name of the Context.", + // "execution": { + // "description": "Required. The resource name of the Execution whose input and output Artifacts should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. A FieldMask indicating which fields should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Context" - // }, + // "path": "v1/{+execution}:queryExecutionInputsAndOutputs", // "response": { - // "$ref": "GoogleCloudAiplatformV1Context" + // "$ref": "GoogleCloudAiplatformV1LineageSubgraph" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75571,33 +83384,38 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.metadataStores.contexts.purge": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.cancel": -type ProjectsLocationsMetadataStoresContextsPurgeCall struct { - s *Service - parent string - googlecloudaiplatformv1purgecontextsrequest *GoogleCloudAiplatformV1PurgeContextsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Purge: Purges Contexts. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The metadata store to purge Contexts from. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Purge(parent string, googlecloudaiplatformv1purgecontextsrequest *GoogleCloudAiplatformV1PurgeContextsRequest) *ProjectsLocationsMetadataStoresContextsPurgeCall { - c := &ProjectsLocationsMetadataStoresContextsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1purgecontextsrequest = googlecloudaiplatformv1purgecontextsrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall{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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPurgeCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75605,21 +83423,21 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPurgeCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) 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_ { @@ -75627,14 +83445,9 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1purgecontextsrequest) - 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/{+parent}/contexts:purge") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -75642,19 +83455,19 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.purge" 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.metadataStores.executions.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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75673,7 +83486,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75685,28 +83498,25 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Purges Contexts.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts:purge", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.purge", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The metadata store to purge Contexts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/contexts:purge", - // "request": { - // "$ref": "GoogleCloudAiplatformV1PurgeContextsRequest" - // }, + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75715,104 +83525,84 @@ func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.delete": -type ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall struct { - s *Service - context string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryContextLineageSubgraph: Retrieves Artifacts and Executions -// within the specified Context, connected by Event edges and returned -// as a LineageSubgraph. +// 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`. // -// - context: The resource name of the Context whose Artifacts and -// Executions should be retrieved as a LineageSubgraph. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}` The request may error with -// FAILED_PRECONDITION if the number of Artifacts, the number of -// Executions, or the number of Events that would be returned for the -// Context exceeds 1000. -func (r *ProjectsLocationsMetadataStoresContextsService) QueryContextLineageSubgraph(context string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { - c := &ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall{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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { - 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) 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/{+context}:queryContextLineageSubgraph") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph" call. -// Exactly one of *GoogleCloudAiplatformV1LineageSubgraph or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1LineageSubgraph.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1LineageSubgraph, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75831,7 +83621,7 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1LineageSubgraph{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75843,25 +83633,25 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) } return ret, nil // { - // "description": "Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:queryContextLineageSubgraph", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.delete", // "parameterOrder": [ - // "context" + // "name" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+context}:queryContextLineageSubgraph", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1LineageSubgraph" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75870,94 +83660,97 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) } -// method id "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.get": -type ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall struct { - s *Service - context string - googlecloudaiplatformv1removecontextchildrenrequest *GoogleCloudAiplatformV1RemoveContextChildrenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RemoveContextChildren: Remove a set of children contexts from a -// parent Context. If any of the child Contexts were NOT added to the -// parent Context, they are simply skipped. +// 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. // -// - context: The resource name of the parent Context. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) RemoveContextChildren(context string, googlecloudaiplatformv1removecontextchildrenrequest *GoogleCloudAiplatformV1RemoveContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { - c := &ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context - c.googlecloudaiplatformv1removecontextchildrenrequest = googlecloudaiplatformv1removecontextchildrenrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Get(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsGetCall{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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { + 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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1removecontextchildrenrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+context}:removeContextChildren") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren" call. -// Exactly one of *GoogleCloudAiplatformV1RemoveContextChildrenResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1RemoveContextChildrenResponse.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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1RemoveContextChildrenResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75976,7 +83769,7 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1RemoveContextChildrenResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75988,28 +83781,25 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(op } return ret, nil // { - // "description": "Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:removeContextChildren", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.get", // "parameterOrder": [ - // "context" + // "name" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+context}:removeContextChildren", - // "request": { - // "$ref": "GoogleCloudAiplatformV1RemoveContextChildrenRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1RemoveContextChildrenResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76018,96 +83808,119 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(op } -// method id "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.list": -type ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall struct { - s *Service - execution string - googlecloudaiplatformv1addexecutioneventsrequest *GoogleCloudAiplatformV1AddExecutionEventsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AddExecutionEvents: Adds Events to the specified Execution. An Event -// indicates whether an Artifact was used as an input or output for an -// Execution. If an Event already exists between the Execution and the -// Artifact, the Event is skipped. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - execution: The resource name of the Execution that the Events -// connect Artifacts with. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) AddExecutionEvents(execution string, googlecloudaiplatformv1addexecutioneventsrequest *GoogleCloudAiplatformV1AddExecutionEventsRequest) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { - c := &ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.execution = execution - c.googlecloudaiplatformv1addexecutioneventsrequest = googlecloudaiplatformv1addexecutioneventsrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) List(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { + 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 *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { 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 *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { + 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 *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { 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 *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1addexecutioneventsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+execution}:addExecutionEvents") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "execution": c.execution, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents" call. -// Exactly one of *GoogleCloudAiplatformV1AddExecutionEventsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1AddExecutionEventsResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1AddExecutionEventsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76126,7 +83939,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1AddExecutionEventsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76138,28 +83951,41 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opt } return ret, nil // { - // "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.list", // "parameterOrder": [ - // "execution" + // "name" // ], // "parameters": { - // "execution": { - // "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "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/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "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/{+execution}:addExecutionEvents", - // "request": { - // "$ref": "GoogleCloudAiplatformV1AddExecutionEventsRequest" - // }, + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1AddExecutionEventsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76168,48 +83994,68 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opt } -// method id "aiplatform.projects.locations.metadataStores.executions.create": - -type ProjectsLocationsMetadataStoresExecutionsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) 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) + } } -// Create: Creates an Execution associated with a MetadataStore. -// -// - parent: The resource name of the MetadataStore where the Execution -// should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Create(parent string, googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution) *ProjectsLocationsMetadataStoresExecutionsCreateCall { - c := &ProjectsLocationsMetadataStoresExecutionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1execution = googlecloudaiplatformv1execution - return c +// method id "aiplatform.projects.locations.metadataStores.executions.operations.wait": + +type ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ExecutionId sets the optional parameter "executionId": The -// {execution} portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/executions/{execution}` If not provided, the Execution's ID will be -// a UUID generated by the service. Must be 4-128 characters in length. -// Valid characters are `/a-z-/`. Must be unique across all Executions -// in the parent MetadataStore. (Otherwise the request will fail with -// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the -// preexisting Execution.) -func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) ExecutionId(executionId string) *ProjectsLocationsMetadataStoresExecutionsCreateCall { - c.urlParams_.Set("executionId", executionId) +// 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 *ProjectsLocationsMetadataStoresExecutionsOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall{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 *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { + 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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsCreateCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -76217,21 +84063,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Fields(s ...google // 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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsCreateCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) 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_ { @@ -76239,14 +84085,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1execution) - 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/{+parent}/executions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -76254,19 +84095,19 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.create" call. -// Exactly one of *GoogleCloudAiplatformV1Execution or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Execution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Execution, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76285,7 +84126,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Execution{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76297,33 +84138,31 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates an Execution associated with a MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.executions.create", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "executionId": { - // "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/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/{+parent}/executions", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Execution" - // }, + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1Execution" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76332,39 +84171,48 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.metadataStores.executions.delete": +// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.create": -type ProjectsLocationsMetadataStoresExecutionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresMetadataSchemasCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1metadataschema *GoogleCloudAiplatformV1MetadataSchema + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an Execution. +// Create: Creates a MetadataSchema. // -// - name: The resource name of the Execution to delete. Format: +// - parent: The resource name of the MetadataStore where the +// MetadataSchema should be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Delete(name string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { - c := &ProjectsLocationsMetadataStoresExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// re}`. +func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Create(parent string, googlecloudaiplatformv1metadataschema *GoogleCloudAiplatformV1MetadataSchema) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { + c := &ProjectsLocationsMetadataStoresMetadataSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1metadataschema = googlecloudaiplatformv1metadataschema return c } -// Etag sets the optional parameter "etag": The etag of the Execution to -// delete. If this is provided, it must match the server's etag. -// Otherwise, the request will fail with a FAILED_PRECONDITION. -func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { - c.urlParams_.Set("etag", etag) +// MetadataSchemaId sets the optional parameter "metadataSchemaId": The +// {metadata_schema} portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }/metadataSchemas/{metadataschema}` If not provided, the +// MetadataStore's ID will be a UUID generated by the service. Must be +// 4-128 characters in length. Valid characters are `/a-z-/`. Must be +// unique across all MetadataSchemas in the parent Location. (Otherwise +// the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if +// the caller can't view the preexisting MetadataSchema.) +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) MetadataSchemaId(metadataSchemaId string) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { + c.urlParams_.Set("metadataSchemaId", metadataSchemaId) 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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -76372,21 +84220,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Fields(s ...google // 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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { 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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) 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_ { @@ -76394,29 +84242,35 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1metadataschema) + 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}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/metadataSchemas") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.metadataStores.executions.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 +// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.create" call. +// Exactly one of *GoogleCloudAiplatformV1MetadataSchema or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1MetadataSchema.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1MetadataSchema, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76435,7 +84289,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1MetadataSchema{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76447,30 +84301,33 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes an Execution.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.executions.delete", + // "description": "Creates a MetadataSchema.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "etag": { - // "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + // "metadataSchemaId": { + // "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "parent": { + // "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+parent}/metadataSchemas", + // "request": { + // "$ref": "GoogleCloudAiplatformV1MetadataSchema" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1MetadataSchema" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76479,9 +84336,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.metadataStores.executions.get": +// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.get": -type ProjectsLocationsMetadataStoresExecutionsGetCall struct { +type ProjectsLocationsMetadataStoresMetadataSchemasGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -76490,13 +84347,13 @@ type ProjectsLocationsMetadataStoresExecutionsGetCall struct { header_ http.Header } -// Get: Retrieves a specific Execution. +// Get: Retrieves a specific MetadataSchema. // -// - name: The resource name of the Execution to retrieve. Format: +// - name: The resource name of the MetadataSchema to retrieve. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Get(name string) *ProjectsLocationsMetadataStoresExecutionsGetCall { - c := &ProjectsLocationsMetadataStoresExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// re}/metadataSchemas/{metadataschema}`. +func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Get(name string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { + c := &ProjectsLocationsMetadataStoresMetadataSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -76504,7 +84361,7 @@ func (r *ProjectsLocationsMetadataStoresExecutionsService) Get(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsGetCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -76514,7 +84371,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsGetCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { c.ifNoneMatch_ = entityTag return c } @@ -76522,21 +84379,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsGetCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) 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_ { @@ -76562,14 +84419,15 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.get" call. -// Exactly one of *GoogleCloudAiplatformV1Execution or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Execution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.get" call. +// Exactly one of *GoogleCloudAiplatformV1MetadataSchema or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1MetadataSchema.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Execution, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1MetadataSchema, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76588,7 +84446,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1Execution{ + ret := &GoogleCloudAiplatformV1MetadataSchema{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76600,25 +84458,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Retrieves a specific Execution.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "description": "Retrieves a specific MetadataSchema.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas/{metadataSchemasId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.executions.get", + // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Execution to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "description": "Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1Execution" + // "$ref": "GoogleCloudAiplatformV1MetadataSchema" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76627,9 +84485,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.metadataStores.executions.list": +// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.list": -type ProjectsLocationsMetadataStoresExecutionsListCall struct { +type ProjectsLocationsMetadataStoresMetadataSchemasListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -76638,71 +84496,39 @@ type ProjectsLocationsMetadataStoresExecutionsListCall struct { header_ http.Header } -// List: Lists Executions in the MetadataStore. +// List: Lists MetadataSchemas. // -// - parent: The MetadataStore whose Executions should be listed. +// - parent: The MetadataStore whose MetadataSchemas should be listed. // Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto // re}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) List(parent string) *ProjectsLocationsMetadataStoresExecutionsListCall { - c := &ProjectsLocationsMetadataStoresExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) List(parent string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { + c := &ProjectsLocationsMetadataStoresMetadataSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Executions to satisfy in order to be part -// of the result set. The syntax to define filter query is based on -// https://google.aip.dev/160. Following are the supported set of -// filters: * **Attribute filtering**: For example: `display_name = -// "test". Supported fields include: `name`, `display_name`, `state`, -// `schema_title`, `create_time`, and `update_time`. Time fields, such -// as `create_time` and `update_time`, require values specified in -// RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..` For -// example: `metadata.field_1.number_value = 10.0` In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` * **Context based filtering**: To filter Executions based on -// the contexts to which they belong use the function operator with the -// full resource name: `in_context()`. For example: -// `in_context("projects//locations//metadataStores//contexts/")` Each -// of the above supported filters can be combined together using logical -// operators (`AND` & `OR`). Maximum nested expression depth allowed is -// 5. For example: `display_name = "test" AND metadata.field1.bool_value -// = true`. -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresExecutionsListCall { +// Filter sets the optional parameter "filter": A query to filter +// available MetadataSchemas for matching results. +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Filter(filter string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": How the list of -// messages is ordered. Specify the values to order by and an ordering -// operation. The default sorting order is ascending. To specify -// descending order for a field, users append a " desc" suffix; for -// example: "foo desc, bar". Subfields are specified with a `.` -// character, such as foo.bar. see https://google.aip.dev/132#ordering -// for more details. -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresExecutionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The maximum number -// of Executions to return. The service may return fewer. Must be in -// range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsListCall { +// of MetadataSchemas to return. The service may return fewer. Must be +// in range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListExecutions call. Provide -// this to retrieve the subsequent page. When paginating, all other +// received from a previous MetadataService.ListMetadataSchemas call. +// Provide this to retrieve the next page. When paginating, all other // provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with an INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresExecutionsListCall { +// (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -76710,7 +84536,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsListCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -76720,7 +84546,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsListCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { c.ifNoneMatch_ = entityTag return c } @@ -76728,21 +84554,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsListCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) 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_ { @@ -76755,7 +84581,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/executions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/metadataSchemas") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -76768,16 +84594,16 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListExecutionsResponse or +// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.list" call. +// Exactly one of *GoogleCloudAiplatformV1ListMetadataSchemasResponse or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1ListExecutionsResponse.ServerResponse.Header -// or (if a response was returned at all) in +// *GoogleCloudAiplatformV1ListMetadataSchemasResponse.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 *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListExecutionsResponse, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListMetadataSchemasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76796,7 +84622,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListExecutionsResponse{ + ret := &GoogleCloudAiplatformV1ListMetadataSchemasResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76808,46 +84634,41 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists Executions in the MetadataStore.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + // "description": "Lists MetadataSchemas.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.executions.list", + // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Filter specifying the boolean condition for the Executions to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Executions based on the contexts to which they belong use the function operator with the full resource name: `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", + // "description": "A query to filter available MetadataSchemas for matching results.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Executions to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListExecutions call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with an INVALID_ARGUMENT error.)", + // "description": "A page token, received from a previous MetadataService.ListMetadataSchemas call. Provide this to retrieve the next page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The MetadataStore whose Executions should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The MetadataStore whose MetadataSchemas should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/executions", + // "path": "v1/{+parent}/metadataSchemas", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListExecutionsResponse" + // "$ref": "GoogleCloudAiplatformV1ListMetadataSchemasResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76859,7 +84680,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListExecutionsResponse) error) error { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListMetadataSchemasResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -76877,200 +84698,38 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Pages(ctx context.Co } } -// method id "aiplatform.projects.locations.metadataStores.executions.patch": - -type ProjectsLocationsMetadataStoresExecutionsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates a stored Execution. -// -// - name: Output only. The resource name of the Execution. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Patch(name string, googlecloudaiplatformv1execution *GoogleCloudAiplatformV1Execution) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - c := &ProjectsLocationsMetadataStoresExecutionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1execution = googlecloudaiplatformv1execution - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set to -// true, and the Execution is not found, a new Execution is created. -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": A FieldMask -// indicating which fields should be updated. -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - 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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - 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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - 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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1execution) - 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}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.metadataStores.executions.patch" call. -// Exactly one of *GoogleCloudAiplatformV1Execution or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1Execution.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1Execution, 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 := &GoogleCloudAiplatformV1Execution{ - 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": "Updates a stored Execution.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.metadataStores.executions.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "allowMissing": { - // "description": "If set to true, and the Execution is not found, a new Execution is created.", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Output only. The resource name of the Execution.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. A FieldMask indicating which fields should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1Execution" - // }, - // "response": { - // "$ref": "GoogleCloudAiplatformV1Execution" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.metadataStores.executions.purge": +// method id "aiplatform.projects.locations.metadataStores.operations.cancel": -type ProjectsLocationsMetadataStoresExecutionsPurgeCall struct { - s *Service - parent string - googlecloudaiplatformv1purgeexecutionsrequest *GoogleCloudAiplatformV1PurgeExecutionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Purge: Purges Executions. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The metadata store to purge Executions from. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Purge(parent string, googlecloudaiplatformv1purgeexecutionsrequest *GoogleCloudAiplatformV1PurgeExecutionsRequest) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { - c := &ProjectsLocationsMetadataStoresExecutionsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1purgeexecutionsrequest = googlecloudaiplatformv1purgeexecutionsrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMetadataStoresOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresOperationsCancelCall{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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -77078,21 +84737,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) 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_ { @@ -77100,14 +84759,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1purgeexecutionsrequest) - 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/{+parent}/executions:purge") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -77115,19 +84769,19 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt strin } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.purge" 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.metadataStores.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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77146,7 +84800,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77158,28 +84812,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleap } return ret, nil // { - // "description": "Purges Executions.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions:purge", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.executions.purge", + // "id": "aiplatform.projects.locations.metadataStores.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The metadata store to purge Executions from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/executions:purge", - // "request": { - // "$ref": "GoogleCloudAiplatformV1PurgeExecutionsRequest" - // }, + // "path": "v1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77188,101 +84839,84 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs": +// method id "aiplatform.projects.locations.metadataStores.operations.delete": -type ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall struct { - s *Service - execution string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryExecutionInputsAndOutputs: Obtains the set of input and output -// Artifacts for this Execution, in the form of LineageSubgraph that -// also contains the Execution and connecting Events. +// 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`. // -// - execution: The resource name of the Execution whose input and -// output Artifacts should be retrieved as a LineageSubgraph. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) QueryExecutionInputsAndOutputs(execution string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { - c := &ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.execution = execution +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresOperationsDeleteCall{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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { - 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) 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/{+execution}:queryExecutionInputsAndOutputs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "execution": c.execution, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs" call. -// Exactly one of *GoogleCloudAiplatformV1LineageSubgraph or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1LineageSubgraph.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1LineageSubgraph, error) { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77301,7 +84935,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1LineageSubgraph{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77313,25 +84947,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs } return ret, nil // { - // "description": "Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:queryExecutionInputsAndOutputs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.operations.delete", // "parameterOrder": [ - // "execution" + // "name" // ], // "parameters": { - // "execution": { - // "description": "Required. The resource name of the Execution whose input and output Artifacts should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+execution}:queryExecutionInputsAndOutputs", + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1LineageSubgraph" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77340,106 +84974,97 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs } -// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.create": +// method id "aiplatform.projects.locations.metadataStores.operations.get": -type ProjectsLocationsMetadataStoresMetadataSchemasCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1metadataschema *GoogleCloudAiplatformV1MetadataSchema - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a MetadataSchema. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The resource name of the MetadataStore where the -// MetadataSchema should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Create(parent string, googlecloudaiplatformv1metadataschema *GoogleCloudAiplatformV1MetadataSchema) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { - c := &ProjectsLocationsMetadataStoresMetadataSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1metadataschema = googlecloudaiplatformv1metadataschema - return c -} - -// MetadataSchemaId sets the optional parameter "metadataSchemaId": The -// {metadata_schema} portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/metadataSchemas/{metadataschema}` If not provided, the -// MetadataStore's ID will be a UUID generated by the service. Must be -// 4-128 characters in length. Valid characters are `/a-z-/`. Must be -// unique across all MetadataSchemas in the parent Location. (Otherwise -// the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if -// the caller can't view the preexisting MetadataSchema.) -func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) MetadataSchemaId(metadataSchemaId string) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { - c.urlParams_.Set("metadataSchemaId", metadataSchemaId) +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresOperationsService) Get(name string) *ProjectsLocationsMetadataStoresOperationsGetCall { + c := &ProjectsLocationsMetadataStoresOperationsGetCall{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 *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsGetCall { 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 *ProjectsLocationsMetadataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresOperationsGetCall { + 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 *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsGetCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1metadataschema) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/metadataSchemas") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.create" call. -// Exactly one of *GoogleCloudAiplatformV1MetadataSchema or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1MetadataSchema.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1MetadataSchema, error) { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77458,7 +85083,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1MetadataSchema{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77470,33 +85095,25 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...go } return ret, nil // { - // "description": "Creates a MetadataSchema.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "metadataSchemaId": { - // "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+parent}/metadataSchemas", - // "request": { - // "$ref": "GoogleCloudAiplatformV1MetadataSchema" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1MetadataSchema" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77505,9 +85122,9 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...go } -// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.get": +// method id "aiplatform.projects.locations.metadataStores.operations.list": -type ProjectsLocationsMetadataStoresMetadataSchemasGetCall struct { +type ProjectsLocationsMetadataStoresOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -77516,21 +85133,42 @@ type ProjectsLocationsMetadataStoresMetadataSchemasGetCall struct { header_ http.Header } -// Get: Retrieves a specific MetadataSchema. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - name: The resource name of the MetadataSchema to retrieve. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/metadataSchemas/{metadataschema}`. -func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Get(name string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { - c := &ProjectsLocationsMetadataStoresMetadataSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresOperationsService) List(name string) *ProjectsLocationsMetadataStoresOperationsListCall { + c := &ProjectsLocationsMetadataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresOperationsListCall { + 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -77540,7 +85178,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Fields(s ...goog // 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -77548,21 +85186,21 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) IfNoneMatch(enti // 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsListCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) 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_ { @@ -77575,7 +85213,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt st var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -77588,15 +85226,15 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.get" call. -// Exactly one of *GoogleCloudAiplatformV1MetadataSchema or error will +// Do executes the "aiplatform.projects.locations.metadataStores.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 -// *GoogleCloudAiplatformV1MetadataSchema.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// *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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1MetadataSchema, error) { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77615,7 +85253,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1MetadataSchema{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77627,25 +85265,41 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googl } return ret, nil // { - // "description": "Retrieves a specific MetadataSchema.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas/{metadataSchemasId}", + // "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}/metadataStores/{metadataStoresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.get", + // "id": "aiplatform.projects.locations.metadataStores.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}`", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "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}", + // "path": "v1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1MetadataSchema" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77654,125 +85308,120 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.list": - -type ProjectsLocationsMetadataStoresMetadataSchemasListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) 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) + } } -// List: Lists MetadataSchemas. -// -// - parent: The MetadataStore whose MetadataSchemas should be listed. -// Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) List(parent string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { - c := &ProjectsLocationsMetadataStoresMetadataSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} +// method id "aiplatform.projects.locations.metadataStores.operations.wait": -// Filter sets the optional parameter "filter": A query to filter -// available MetadataSchemas for matching results. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Filter(filter string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { - c.urlParams_.Set("filter", filter) - return c +type ProjectsLocationsMetadataStoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageSize sets the optional parameter "pageSize": The maximum number -// of MetadataSchemas to return. The service may return fewer. Must be -// in range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// 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 *ProjectsLocationsMetadataStoresOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListMetadataSchemas call. -// Provide this to retrieve the next page. When paginating, all other -// provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 *ProjectsLocationsMetadataStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresOperationsWaitCall { + 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { - 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) 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/{+parent}/metadataSchemas") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.list" call. -// Exactly one of *GoogleCloudAiplatformV1ListMetadataSchemasResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1ListMetadataSchemasResponse.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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1ListMetadataSchemasResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77791,7 +85440,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1ListMetadataSchemasResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77803,41 +85452,31 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...goog } return ret, nil // { - // "description": "Lists MetadataSchemas.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.list", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "A query to filter available MetadataSchemas for matching results.", - // "location": "query", + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", + // "required": true, // "type": "string" // }, - // "pageSize": { - // "description": "The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListMetadataSchemas call. Provide this to retrieve the next page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "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" - // }, - // "parent": { - // "description": "Required. The MetadataStore whose MetadataSchemas should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1/{+parent}/metadataSchemas", + // "path": "v1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1ListMetadataSchemasResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77846,27 +85485,6 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...goog } -// 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1ListMetadataSchemasResponse) 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.migratableResources.batchMigrate": type ProjectsLocationsMigratableResourcesBatchMigrateCall struct { diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 6f0cd182d64..86f744d9e6e 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -8753,6 +8753,159 @@ "https://www.googleapis.com/auth/cloud-platform" ] } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.artifacts.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/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/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" + ] + } + } + } } }, "contexts": { @@ -9072,100 +9225,253 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "executions": { - "methods": { - "addExecutionEvents": { - "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", - "parameterOrder": [ - "execution" - ], - "parameters": { - "execution": { - "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+execution}:addExecutionEvents", - "request": { - "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "create": { - "description": "Creates an Execution associated with a MetadataStore.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.metadataStores.executions.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "executionId": { - "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/executions", - "request": { - "$ref": "GoogleCloudAiplatformV1beta1Execution" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1beta1Execution" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes an Execution.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.metadataStores.executions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "etag": { - "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", - "location": "query", - "type": "string" + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "name": { - "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.contexts.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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.contexts.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/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" + ] + } + } + } + } + }, + "executions": { + "methods": { + "addExecutionEvents": { + "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", + "parameterOrder": [ + "execution" + ], + "parameters": { + "execution": { + "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+execution}:addExecutionEvents", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates an Execution associated with a MetadataStore.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "executionId": { + "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/executions", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Execution" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Execution" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an Execution.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.executions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, "get": { "description": "Retrieves a specific Execution.", @@ -9330,32 +9636,185 @@ "https://www.googleapis.com/auth/cloud-platform" ] } - } - }, - "metadataSchemas": { - "methods": { - "create": { - "description": "Creates a MetadataSchema.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "metadataSchemaId": { - "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", - "location": "query", - "type": "string" + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "parent": { - "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - "required": true, - "type": "string" - } - }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.metadataStores.executions.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/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.executions.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/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" + ] + } + } + } + } + }, + "metadataSchemas": { + "methods": { + "create": { + "description": "Creates a MetadataSchema.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "metadataSchemaId": { + "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + "required": true, + "type": "string" + } + }, "path": "v1beta1/{+parent}/metadataSchemas", "request": { "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" @@ -9434,76 +9893,14 @@ ] } } - } - } - }, - "migratableResources": { - "methods": { - "batchMigrate": { - "description": "Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:batchMigrate", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.batchMigrate", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/migratableResources:batchMigrate", - "request": { - "$ref": "GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest" - }, - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] }, - "search": { - "description": "Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:search", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.search", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/migratableResources:search", - "request": { - "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { "operations": { "methods": { "cancel": { "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}:cancel", "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.operations.cancel", + "id": "aiplatform.projects.locations.metadataStores.operations.cancel", "parameterOrder": [ "name" ], @@ -9511,7 +9908,7 @@ "name": { "description": "The name of the operation resource to be cancelled.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -9526,9 +9923,9 @@ }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.migratableResources.operations.delete", + "id": "aiplatform.projects.locations.metadataStores.operations.delete", "parameterOrder": [ "name" ], @@ -9536,7 +9933,7 @@ "name": { "description": "The name of the operation resource to be deleted.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -9551,9 +9948,9 @@ }, "get": { "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.migratableResources.operations.get", + "id": "aiplatform.projects.locations.metadataStores.operations.get", "parameterOrder": [ "name" ], @@ -9561,7 +9958,7 @@ "name": { "description": "The name of the operation resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" } @@ -9576,9 +9973,9 @@ }, "list": { "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations", "httpMethod": "GET", - "id": "aiplatform.projects.locations.migratableResources.operations.list", + "id": "aiplatform.projects.locations.metadataStores.operations.list", "parameterOrder": [ "name" ], @@ -9591,7 +9988,7 @@ "name": { "description": "The name of the operation's parent resource.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", "required": true, "type": "string" }, @@ -9617,9 +10014,9 @@ }, "wait": { "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/operations/{operationsId}:wait", "httpMethod": "POST", - "id": "aiplatform.projects.locations.migratableResources.operations.wait", + "id": "aiplatform.projects.locations.metadataStores.operations.wait", "parameterOrder": [ "name" ], @@ -9627,7 +10024,7 @@ "name": { "description": "The name of the operation resource to wait on.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", "required": true, "type": "string" }, @@ -9650,57 +10047,270 @@ } } }, - "modelDeploymentMonitoringJobs": { + "migratableResources": { "methods": { - "create": { - "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", + "batchMigrate": { + "description": "Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:batchMigrate", "httpMethod": "POST", - "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create", + "id": "aiplatform.projects.locations.migratableResources.batchMigrate", "parameterOrder": [ "parent" ], "parameters": { "parent": { - "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + "description": "Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+parent}/modelDeploymentMonitoringJobs", + "path": "v1beta1/{+parent}/migratableResources:batchMigrate", "request": { - "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + "$ref": "GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest" }, "response": { - "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + "$ref": "GoogleLongrunningOperation" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "delete": { - "description": "Deletes a ModelDeploymentMonitoringJob.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete", + "search": { + "description": "Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:search", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.migratableResources.search", "parameterOrder": [ - "name" + "parent" ], "parameters": { - "name": { - "description": "Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + "parent": { + "description": "Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "GoogleLongrunningOperation" - }, + "path": "v1beta1/{+parent}/migratableResources:search", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.migratableResources.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.migratableResources.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.migratableResources.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.migratableResources.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/[^/]+/migratableResources/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.migratableResources.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/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" + ] + } + } + } + } + }, + "modelDeploymentMonitoringJobs": { + "methods": { + "create": { + "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/modelDeploymentMonitoringJobs", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a ModelDeploymentMonitoringJob.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] @@ -12965,45 +13575,200 @@ } } }, - "schedules": { - "methods": { - "create": { - "description": "Creates a Schedule.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/schedules", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.schedules.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The resource name of the Location to create the Schedule in. Format: `projects/{project}/locations/{location}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/schedules", - "request": { - "$ref": "GoogleCloudAiplatformV1beta1Schedule" - }, - "response": { - "$ref": "GoogleCloudAiplatformV1beta1Schedule" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a Schedule.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/schedules/{schedulesId}", - "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.schedules.delete", - "parameterOrder": [ - "name" - ], - "parameters": { + "reasoningEngines": { + "resources": { + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.reasoningEngines.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.reasoningEngines.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.reasoningEngines.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.reasoningEngines.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/[^/]+/reasoningEngines/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.reasoningEngines.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/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" + ] + } + } + } + } + }, + "schedules": { + "methods": { + "create": { + "description": "Creates a Schedule.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/schedules", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.schedules.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location to create the Schedule in. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/schedules", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Schedule" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Schedule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a Schedule.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/schedules/{schedulesId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.schedules.delete", + "parameterOrder": [ + "name" + ], + "parameters": { "name": { "description": "Required. The name of the Schedule resource to be deleted. Format: `projects/{project}/locations/{location}/schedules/{schedule}`", "location": "path", @@ -16514,7 +17279,7 @@ } } }, - "revision": "20231218", + "revision": "20231229", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -17043,6 +17808,10 @@ }, "type": "array" }, + "debugMetadata": { + "$ref": "CloudAiNlLlmProtoServiceMessageMetadata", + "description": "Debug information containing message metadata. Clients should not consume this field, and this is only populated for Flow Runner path." + }, "promptFeedback": { "$ref": "CloudAiNlLlmProtoServicePromptFeedback", "description": "Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations." @@ -17058,6 +17827,27 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServiceMessageMetadata": { + "id": "CloudAiNlLlmProtoServiceMessageMetadata", + "properties": { + "inputFilterInfo": { + "$ref": "LearningServingLlmMessageMetadata", + "description": "Filter metadata of the input messages." + }, + "modelRoutingDecision": { + "$ref": "LearningGenaiRootRoutingDecision", + "description": "This score is generated by the router model to decide which model to use" + }, + "outputFilterInfo": { + "description": "Filter metadata of the output messages.", + "items": { + "$ref": "LearningServingLlmMessageMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServicePart": { "description": "A single part of a message.", "id": "CloudAiNlLlmProtoServicePart", @@ -17173,47 +17963,212 @@ }, "type": "object" }, - "CloudAiNlLlmProtoServiceSafetyRating": { - "description": "Safety rating corresponding to the generated content.", - "id": "CloudAiNlLlmProtoServiceSafetyRating", + "CloudAiNlLlmProtoServiceRaiResult": { + "description": "The RAI results for a given text.", + "id": "CloudAiNlLlmProtoServiceRaiResult", "properties": { + "aidaRecitationResult": { + "$ref": "LanguageLabsAidaTrustRecitationProtoRecitationResult", + "description": "Recitation result from Aida recitation checker." + }, "blocked": { - "description": "Indicates whether the content was filtered out because of this rating.", + "deprecated": true, + "description": "Use `triggered_blocklist`.", "type": "boolean" }, - "category": { - "description": "Harm category.", + "errorCodes": { + "description": "The error codes indicate which RAI filters block the response.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, + "filtered": { + "description": "Whether the text should be filtered and not shown to the end user. This is determined based on a combination of `triggered_recitation`, `triggered_blocklist`, `language_filter_result`, and `triggered_safety_filter`.", + "type": "boolean" + }, + "languageFilterResult": { + "$ref": "LearningServingLlmLanguageFilterResult", + "description": "Language filter result from SAFT LangId." + }, + "raiSignals": { + "description": "The RAI signals for the text.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceRaiSignal" + }, + "type": "array" + }, + "triggeredBlocklist": { + "description": "Whether the text triggered the blocklist.", + "type": "boolean" + }, + "triggeredRecitation": { + "description": "Whether the text should be blocked by the recitation result from Aida recitation checker. It is determined from aida_recitation_result.", + "type": "boolean" + }, + "triggeredSafetyFilter": { + "description": "Whether the text triggered the safety filter. Currently, this is due to CSAI triggering or one of four categories (derogatory, sexual, toxic, violent) having a score over the filter threshold.", + "type": "boolean" + } + }, + "type": "object" + }, + "CloudAiNlLlmProtoServiceRaiSignal": { + "description": "An RAI signal for a single category.", + "id": "CloudAiNlLlmProtoServiceRaiSignal", + "properties": { + "confidence": { + "description": "The confidence level for the RAI category.", "enum": [ - "HARM_CATEGORY_UNSPECIFIED", - "HARM_CATEGORY_HATE_SPEECH", - "HARM_CATEGORY_DANGEROUS_CONTENT", - "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_SEXUALLY_EXPLICIT" + "CONFIDENCE_UNSPECIFIED", + "CONFIDENCE_NONE", + "CONFIDENCE_LOW", + "CONFIDENCE_MEDIUM", + "CONFIDENCE_HIGH" ], "enumDescriptions": [ - "The harm category is unspecified.", - "The harm category is hate speech.", - "The harm category is dengerous content.", - "The harm category is harassment.", - "The harm category is sexually explicit." + "", + "", + "", + "", + "" ], "type": "string" }, - "probability": { - "description": "Harm probability levels in the content.", + "flagged": { + "description": "Whether the category is flagged as being present. Currently, this is set to true if score \u003e= 0.5.", + "type": "boolean" + }, + "raiCategory": { + "description": "The RAI category.", "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" - ], - "enumDescriptions": [ - "Harm probability unspecified.", - "Negligible level of harm.", - "Low level of harm.", - "Medium level of harm.", - "High level of harm." + "RAI_CATEGORY_UNSPECIFIED", + "TOXIC", + "SEXUALLY_EXPLICIT", + "HATE_SPEECH", + "VIOLENT", + "PROFANITY", + "HARASSMENT", + "DEATH_HARM_TRAGEDY", + "FIREARMS_WEAPONS", + "PUBLIC_SAFETY", + "HEALTH", + "RELIGIOUS_BELIEF", + "ILLICIT_DRUGS", + "WAR_CONFLICT", + "POLITICS", + "FINANCE", + "LEGAL", + "CSAI", + "FRINGE", + "THREAT", + "SEVERE_TOXICITY", + "TOXICITY", + "SEXUAL", + "INSULT", + "DEROGATORY", + "IDENTITY_ATTACK", + "VIOLENCE_ABUSE", + "OBSCENE", + "DRUGS", + "CSAM", + "SPII", + "DANGEROUS_CONTENT", + "DANGEROUS_CONTENT_SEVERITY", + "INSULT_SEVERITY", + "DEROGATORY_SEVERITY", + "SEXUAL_SEVERITY" + ], + "enumDescriptions": [ + "", + "SafetyCat categories.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "GRAIL categories that can't be exposed to end users.", + "", + "Unused categories.", + "", + "Old category names.", + "", + "", + "", + "", + "", + "", + "", + "CSAM V2", + "SPII", + "New SafetyCat v3 categories", + "", + "", + "", + "" + ], + "type": "string" + }, + "score": { + "description": "The score for the category, in the range [0.0, 1.0].", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "CloudAiNlLlmProtoServiceSafetyRating": { + "description": "Safety rating corresponding to the generated content.", + "id": "CloudAiNlLlmProtoServiceSafetyRating", + "properties": { + "blocked": { + "description": "Indicates whether the content was filtered out because of this rating.", + "type": "boolean" + }, + "category": { + "description": "Harm category.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_SEXUALLY_EXPLICIT" + ], + "enumDescriptions": [ + "The harm category is unspecified.", + "The harm category is hate speech.", + "The harm category is dengerous content.", + "The harm category is harassment.", + "The harm category is sexually explicit." + ], + "type": "string" + }, + "probability": { + "description": "Harm probability levels in the content.", + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "enumDescriptions": [ + "Harm probability unspecified.", + "Negligible level of harm.", + "Low level of harm.", + "Medium level of harm.", + "High level of harm." ], "type": "string" } @@ -21872,12 +22827,12 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint": { - "description": "The dedicated serving endpoint for this FeatureOnlineStore. Only need to set when you choose Optimized storage type or enable EmbeddingManagement. Will use public endpoint by default.", + "description": "The dedicated serving endpoint for this FeatureOnlineStore. Only need to set when you choose Optimized storage type or enable EmbeddingManagement. Will use public endpoint by default. Note, for EmbeddingManagement use case, only [DedicatedServingEndpoint.public_endpoint_domain_name] is available now.", "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint", "properties": { "privateServiceConnectConfig": { "$ref": "GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig", - "description": "Optional. Private service connect config. If PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use private service connection to send request. Otherwise, the connection will set to public endpoint." + "description": "Optional. Private service connect config. The private service connection is available only for Optimized storage type, not for embedding management now. If PrivateServiceConnectConfig.enable_private_service_connect set to true, customers will use private service connection to send request. Otherwise, the connection will set to public endpoint." }, "publicEndpointDomainName": { "description": "Output only. This field will be populated with the domain name to use for this FeatureOnlineStore", @@ -22850,11 +23805,6 @@ }, "type": "array" }, - "endpoint": { - "deprecated": true, - "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", - "type": "string" - }, "generationConfig": { "$ref": "GoogleCloudAiplatformV1beta1GenerationConfig", "description": "Optional. Generation config." @@ -28217,6 +29167,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open fine-tuning pipeline of the PublisherModel." }, + "openFineTuningPipelines": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines", + "description": "Optional. Open fine-tuning pipelines of the PublisherModel." + }, "openGenerationAiStudio": { "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open in Generation AI Studio." @@ -28229,6 +29183,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open notebook of the PublisherModel." }, + "openNotebooks": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks", + "description": "Optional. Open notebooks of the PublisherModel." + }, "openPromptTuningPipeline": { "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", "description": "Optional. Open prompt-tuning pipeline of the PublisherModel." @@ -28287,6 +29245,34 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines": { + "description": "Open fine tuning pipelines.", + "id": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines", + "properties": { + "fineTuningPipelines": { + "description": "Required. Regional resource references to fine tuning pipelines.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks": { + "description": "Open notebooks.", + "id": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks", + "properties": { + "notebooks": { + "description": "Required. Regional resource references to notebooks.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences": { "description": "The regional resource name or the URI. Key is region, e.g., us-central1, europe-west2, global, etc..", "id": "GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences", @@ -28298,8 +29284,20 @@ "description": "Required.", "type": "object" }, + "resourceDescription": { + "description": "Optional. Description of the resource.", + "type": "string" + }, + "resourceTitle": { + "description": "Optional. Title of the resource.", + "type": "string" + }, + "resourceUseCase": { + "description": "Optional. Use case (CUJ) of the resource.", + "type": "string" + }, "title": { - "description": "Required. The title of the regional resource reference.", + "description": "Required. ", "type": "string" } }, @@ -28358,6 +29356,7 @@ "id": "GoogleCloudAiplatformV1beta1PublisherModelResourceReference", "properties": { "description": { + "deprecated": true, "description": "Description of the resource.", "type": "string" }, @@ -28370,6 +29369,7 @@ "type": "string" }, "useCase": { + "deprecated": true, "description": "Use case (CUJ) of the resource.", "type": "string" } @@ -35933,6 +36933,4169 @@ } }, "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoDocAttribution": { + "description": "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id:28", + "id": "LanguageLabsAidaTrustRecitationProtoDocAttribution", + "properties": { + "amarnaId": { + "type": "string" + }, + "arxivId": { + "type": "string" + }, + "author": { + "type": "string" + }, + "bibkey": { + "type": "string" + }, + "bookTitle": { + "type": "string" + }, + "bookVolumeId": { + "description": "The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set.", + "format": "int64", + "type": "string" + }, + "category": { + "enum": [ + "CATEGORY_UNSPECIFIED", + "CATEGORY_NEWS", + "CATEGORY_NON_NEWS_WEBDOC", + "CATEGORY_UNKNOWN_MISSING_SIGNAL" + ], + "enumDescriptions": [ + "", + "The doc has a url and the news classifier has classified this doc as news.", + "The doc has a url and the news classifier classified this doc as non-news.", + "The doc has a url but the url was missing from the news classifier URL table." + ], + "type": "string" + }, + "conversationId": { + "type": "string" + }, + "dataset": { + "description": "The dataset this document comes from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset.", + "Mobile assistant finetune datasets.", + "", + "Genesis fine-tune datasets.", + "Cloud Security fine-tune datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "filepath": { + "type": "string" + }, + "geminiId": { + "type": "string" + }, + "gnewsArticleTitle": { + "type": "string" + }, + "goodallExampleId": { + "type": "string" + }, + "isOptOut": { + "description": "Whether the document is opted out.", + "type": "boolean" + }, + "isPrompt": { + "type": "boolean" + }, + "lamdaExampleId": { + "type": "string" + }, + "license": { + "type": "string" + }, + "meenaConversationId": { + "type": "string" + }, + "naturalLanguageCode": { + "description": "Natural (not programming) language of the document. Language code as defined by http://www.unicode.org/reports/tr35/#Identifiers and https://tools.ietf.org/html/bcp47. Currently applicable to full-view books. Use docinfo-util.h to set \u0026 read language fields. See go/iii.", + "type": "string" + }, + "noAttribution": { + "description": "True if this doc has no attribution information available. We use an explicit field for this instead of just implicitly leaving all the DocAttribution fields blank to distinguish a case where a bug/oversight has left the attribution information empty vs when we really have no attribution information available.", + "type": "boolean" + }, + "podcastUtteranceId": { + "type": "string" + }, + "publicationDate": { + "$ref": "GoogleTypeDate" + }, + "qualityScoreExperimentOnly": { + "description": "This field is for opt-out experiment only, MUST never be used during actual production/serving. ", + "format": "double", + "type": "number" + }, + "repo": { + "description": "Github repository", + "type": "string" + }, + "url": { + "description": "URL of a webdoc", + "type": "string" + }, + "volumeId": { + "type": "string" + }, + "wikipediaArticleTitle": { + "description": "Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset.", + "type": "string" + } + }, + "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoRecitationResult": { + "description": "The recitation result for one input", + "id": "LanguageLabsAidaTrustRecitationProtoRecitationResult", + "properties": { + "dynamicSegmentResults": { + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + }, + "recitationAction": { + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "trainingSegmentResults": { + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoSegmentResult": { + "description": "The recitation result for each segment in a given input.", + "id": "LanguageLabsAidaTrustRecitationProtoSegmentResult", + "properties": { + "attributionDataset": { + "description": "The dataset the segment came from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset.", + "Mobile assistant finetune datasets.", + "", + "Genesis fine-tune datasets.", + "Cloud Security fine-tune datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "displayAttributionMessage": { + "description": "human-friendly string that contains information from doc_attribution which could be shown by clients", + "type": "string" + }, + "docAttribution": { + "$ref": "LanguageLabsAidaTrustRecitationProtoDocAttribution", + "description": "populated when recitation_action == CITE" + }, + "docOccurrences": { + "description": "number of documents that contained this segment", + "format": "int32", + "type": "integer" + }, + "endIndex": { + "format": "int32", + "type": "integer" + }, + "rawText": { + "description": "The raw text in the given input that is corresponding to the segment. It will be available only when 'return_segment_raw_text' is enabled in the request options.", + "type": "string" + }, + "segmentRecitationAction": { + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "startIndex": { + "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LanguageLabsAidaTrustRecitationProtoStreamRecitationResult": { + "description": "The recitation result for one stream input", + "id": "LanguageLabsAidaTrustRecitationProtoStreamRecitationResult", + "properties": { + "dynamicSegmentResults": { + "description": "The recitation result against the given dynamic data source.", + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + }, + "fullyCheckedTextIndex": { + "description": "Last index of input text fully checked for recitation in the entire streaming context. Would return `-1` if no Input was checked for recitation.", + "format": "int32", + "type": "integer" + }, + "recitationAction": { + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "trainingSegmentResults": { + "description": "The recitation result against model training data.", + "items": { + "$ref": "LanguageLabsAidaTrustRecitationProtoSegmentResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRecitationDocAttribution": { + "description": "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 28", + "id": "LearningGenaiRecitationDocAttribution", + "properties": { + "amarnaId": { + "type": "string" + }, + "arxivId": { + "type": "string" + }, + "author": { + "type": "string" + }, + "bibkey": { + "type": "string" + }, + "bookTitle": { + "type": "string" + }, + "bookVolumeId": { + "description": "The Oceanographers full-view books dataset uses a 'volume id' as the unique ID of a book. There is a deterministic function from a volume id to a URL under the books.google.com domain. Marked as 'optional' since a volume ID of zero is potentially possible and we want to distinguish that from the volume ID not being set.", + "format": "int64", + "type": "string" + }, + "conversationId": { + "type": "string" + }, + "dataset": { + "description": "The dataset this document comes from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset", + "Mobile assistant finetune datasets.", + "", + "Genesis fine tuned datasets.", + "Cloud Security fine tuned datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "filepath": { + "type": "string" + }, + "geminiId": { + "type": "string" + }, + "gnewsArticleTitle": { + "type": "string" + }, + "goodallExampleId": { + "type": "string" + }, + "isOptOut": { + "description": "Whether the document is opted out.", + "type": "boolean" + }, + "isPrompt": { + "description": "When true, this attribution came from the user's prompt.", + "type": "boolean" + }, + "lamdaExampleId": { + "type": "string" + }, + "license": { + "type": "string" + }, + "meenaConversationId": { + "type": "string" + }, + "naturalLanguageCode": { + "description": "Natural (not programming) language of the document. Language code as defined by http://www.unicode.org/reports/tr35/#Identifiers and https://tools.ietf.org/html/bcp47. Currently applicable to full-view books. Use docinfo-util.h to set \u0026 read language fields. See go/iii.", + "type": "string" + }, + "noAttribution": { + "description": "True if this doc has no attribution information available. We use an explicit field for this instead of just implicitly leaving all the DocAttribution fields blank to distinguish a case where a bug/oversight has left the attribution information empty vs when we really have no attribution information available.", + "type": "boolean" + }, + "podcastUtteranceId": { + "type": "string" + }, + "publicationDate": { + "$ref": "GoogleTypeDate" + }, + "qualityScoreExperimentOnly": { + "description": "This field is for opt-out experiment only, MUST never be used during actual production/serving. ", + "format": "double", + "type": "number" + }, + "repo": { + "description": "Github repository", + "type": "string" + }, + "url": { + "description": "URL of a webdoc", + "type": "string" + }, + "volumeId": { + "type": "string" + }, + "wikipediaArticleTitle": { + "description": "Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRecitationRecitationResult": { + "description": "The recitation result for one input", + "id": "LearningGenaiRecitationRecitationResult", + "properties": { + "dynamicSegmentResults": { + "items": { + "$ref": "LearningGenaiRecitationSegmentResult" + }, + "type": "array" + }, + "recitationAction": { + "description": "The recitation action for one given input. When its segments contain different actions, the overall action will be returned in the precedence of BLOCK \u003e CITE \u003e NO_ACTION.", + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "trainingSegmentResults": { + "items": { + "$ref": "LearningGenaiRecitationSegmentResult" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRecitationSegmentResult": { + "description": "The recitation result for each segment in a given input.", + "id": "LearningGenaiRecitationSegmentResult", + "properties": { + "attributionDataset": { + "description": "The dataset the segment came from.", + "enum": [ + "DATASET_UNSPECIFIED", + "WIKIPEDIA", + "WEBDOCS", + "WEBDOCS_FINETUNE", + "GITHUB_MIRROR", + "BOOKS_FULL_VIEW", + "BOOKS_PRIVATE", + "GNEWS", + "ULM_DOCJOINS", + "ULM_DOCJOINS_DEDUPED", + "MEENA_FC", + "PODCAST", + "AQUA", + "WEB_ASR", + "BARD_GOLDEN", + "COMMON_SENSE_REASONING", + "MATH", + "MATH_REASONING", + "CLEAN_ARXIV", + "LAMDA_FACTUALITY_E2E_QUERY_GENERATION", + "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION", + "MASSIVE_FORUM_THREAD_SCORED_BARD", + "MASSIVE_FORUM_THREAD_SCORED_LONG_200", + "MASSIVE_FORUM_THREAD_SCORED_LONG_500", + "DOCUMENT_CHUNKS", + "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN", + "MEENA_RESEARCH_PHASE_GOOGLERS", + "MEENA_RESPONSE_SAFETY_HUMAN_GEN", + "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST", + "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2", + "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST", + "LAMDA_FACTUALITY_TRIGGER", + "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST", + "LAMDA_SSI_DISCRIMINATIVE", + "ASSISTANT_PERSONALITY_SAFETY", + "PODCAST_FINETUNE_DIALOG", + "WORLD_QUERY_GENERATOR", + "C4_JOINED_DOCJOINS", + "HOL4_THEORIES", + "HOL_LIGHT_THEORIES", + "HOLSTEPS", + "ISABELLE_STEP", + "ISABELLE_THEORIES", + "LEAN_MATHLIB_THEORIES", + "LEAN_STEP", + "MIZAR_THEORIES", + "COQ_STEP", + "COQ_THEORIES", + "AMPS_KHAN", + "AMPS_MATHEMATICA", + "CODEY_CODE", + "CODE_QA_SE", + "CODE_QA_SO", + "CODE_QA_FT_FORMAT", + "CODE_QA_FT_KNOWLEDGE", + "CODE_QA_GITHUB_FILTERED_CODE", + "BARD_PERSONALITY_GOLDEN", + "ULM_DOCJOINS_WITH_URLS_EN", + "ULM_DOCJOINS_WITH_URLS_I18N", + "GOODALL_MTV5_GITHUB", + "GOODALL_MTV5_BOOKS", + "GOODALL_MTV5_C4", + "GOODALL_MTV5_WIKIPEDIA", + "GOODALL_MW_TOP_100B", + "GOODALL_MW_STACK_EXCHANGE", + "GOODALL_MW_TOP_0_10B", + "GOODALL_MW_TOP_10B_20B", + "CODEY_NOTEBOOK_LM_PRETRAINING", + "VERTEX_SAFE_FLAN", + "GITHUB_MIRROR_V1_0_1", + "GITHUB_MIRROR_V2_1_0", + "CMS_WIKIPEDIA_LANG_FILTERED", + "CMS_STACKOVERFLOW_MULTILINGUAL", + "CMS_STACKEXCHANGE", + "PUBMED", + "GEMINI_DOCJOINS_EN_TOP10B_GCC", + "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC", + "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_GCC", + "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC", + "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC", + "SIMPLIFIED_HTML_V1_GCC", + "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC", + "CMS_GITHUB_V4", + "GITHUB_HTML_V4", + "GITHUB_OTHER_V4", + "GITHUB_LONG_TAIL_V4", + "CMS_GITHUB_MULTIFILE_V4", + "GITHUB_DIFFS_WITH_COMMIT_MESSAGE", + "ULM_ARXIV", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY", + "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY", + "QUORA", + "PODCASTS_ROBOTSTXT", + "COMBINED_REDDIT", + "CANARIES_SHUFFLED", + "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "TECHDOCS_DATA_SOURCE", + "SCIENCE_PDF_70M_DOCS_FILTERED", + "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED", + "GEMINI_V1_WIKIPEDIA_DIFFS", + "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523", + "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523", + "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC", + "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2", + "GEMINI_V1_CMS_STACKEXCHANGE_DECONT", + "GEMINI_V1_QUORA", + "GEMINI_V1_COMBINED_REDDIT", + "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS", + "GEMINI_V1_PUBMED", + "GEMINI_V1_WEB_MATH_V2", + "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7", + "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2", + "GEMINI_V1_GITHUB_HTML_CSS_XML_V4", + "GEMINI_V1_GITHUB_OTHER_V4", + "GEMINI_V1_GITHUB_LONG_TAIL_V4", + "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE", + "GEMINI_V1_ULM_ARXIV_SSTABLE", + "GEMINI_V1_PODCASTS_ROBOTSTXT", + "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC", + "GEMINI_V1_GITHUB_TECHDOCS_V2", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN", + "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN", + "GEMINI_V1_STEM_BOOKS_650K_TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED", + "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT", + "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX", + "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR", + "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX", + "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE", + "DUET_CLOUD_SECURITY_DOCS", + "DUET_GITHUB_CODE_SNIPPETS", + "DUET_GITHUB_FILES", + "DUET_GOBYEXAMPLE", + "DUET_GOLANG_DOCS", + "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES", + "DUET_DEVSITE_DOCS", + "DUET_CLOUD_BLOG_POSTS", + "DUET_CLOUD_PODCAST_EPISODES", + "DUET_YOUTUBE_VIDEOS", + "DUET_CLOUD_SKILLS_BOOST", + "DUET_CLOUD_DOCS", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED", + "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN", + "DUET_GOOGLESQL_GENERATION", + "DUET_CLOUD_IX_PROMPTS", + "DUET_RAD", + "BARD_ARCADE_GITHUB", + "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K", + "MOBILE_ASSISTANT_PALM24B_FILTERED_400K", + "GENESIS_NEWS_INSIGHTS", + "CLOUD_SECURITY_PRETRAINING", + "CLOUD_SECURITY_FINETUNING", + "LABS_AQA_DSCOUT", + "LABS_AQA_TAILWIND", + "LABS_AQA_DELEWARE", + "GEMINI_MULTIMODAL_FT_URL", + "GEMINI_MULTIMODAL_FT_YT", + "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK", + "GEMINI_MULTIMODAL_FT_NONE", + "GEMINI_MULTIMODAL_FT_OTHER", + "GEMINI_MULTIMODAL_FT_INK", + "GEMINI_MULTIMODAL_IT", + "GEMINI_IT_SHUTTERSTOCK", + "GEMINI_IT_M3W", + "GEMINI_IT_HEDGING", + "GEMINI_IT_DSCOUT_FACTUALITY", + "GEMINI_IT_AQUAMUSE", + "GEMINI_IT_SHOTGUN", + "GEMINI_IT_ACI_BENCH", + "GEMINI_IT_SPIDER_FILTERED", + "GEMINI_IT_TAB_SUM_BQ", + "GEMINI_IT_QA_WITH_URL", + "GEMINI_IT_CODE_INSTRUCT", + "GEMINI_IT_MED_PALM", + "GEMINI_IT_TASK_ORIENTED_DIALOG", + "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT", + "GEMINI_IT_EITL_GEN", + "GEMINI_IT_HITL_GEN", + "GEMINI_IT_MECH", + "GEMINI_IT_TABLE_GEN", + "GEMINI_IT_NIMBUS_DECIBEL", + "GEMIT_BRIDGE_SUFFIX_FT", + "GEMINI_IT_CLOUD_CODE_IF", + "GEMINI_IT_CLOUD_EUR_LEX_JSON", + "GEMINI_IT_CLOUD_OASST", + "GEMINI_IT_CLOUD_SELF_INSTRUCT", + "GEMINI_IT_CLOUD_UCS_AQUAMUSE", + "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII", + "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONARTICLES_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTICLES_COMPLIANT", + "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED", + "GEMINI_V2_QUORA_COMPLIANT", + "GEMINI_V2_FORUMS_V2_COMPLIANT", + "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT", + "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT", + "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT", + "GEMINI_V2_CODEWEB_V1_COMPLIANT", + "GEMINI_V2_LEETCODE_GCC_PII", + "GEMINI_V2_CODE_CONTESTS_COMPLIANT", + "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS", + "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT", + "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT", + "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT", + "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT", + "GEMINI_V2_GITHUB_DIFFS_COMPLIANT", + "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT", + "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX", + "GEMINI_V2_ARXIV_2023_COMPLIANT", + "GEMINI_V2_FORMAL_COMPLIANT", + "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT", + "GEMINI_V2_PUBMED_COMPLIANT", + "GEMINI_V2_WEB_MATH_V3_COMPLIANT", + "GEMINI_V2_SCIENCEWEB_V0_GCC_PII", + "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT", + "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2", + "GEMINI_V2_CHESS_COMPLIANT", + "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT", + "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT", + "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT", + "GEMINI_V2_PODCASTS_COMPLIANT", + "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT", + "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT", + "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTERED_SOFT", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTION_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT", + "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX", + "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5", + "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5", + "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5", + "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + ], + "enumDescriptions": [ + "", + "Wikipedia article Tensorflow datasets used by Tarzan and maintained by TFDS team.", + "Webdocs that have been filtered from the docjoins by the Tarzan team for use in the Tarzan training set.", + "", + "", + "'Full view' books dataset maintained by Oceanographers team, meaning 'ok to view the book in full in all localities'. Largely the same as 'public domain', but with potentially subtle distinction.", + "Filtered private books used by ULM: http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. which corresponds with /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_resharded@50000", + "Google news dataset referenced in: http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668", + "The docjoins data for ULM /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_docstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929", + "", + "Meena full conversations. http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Academic dataset of math text. http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Datasets managed by the Goodall team: deepmind-goodall@google.com", + "", + "", + "", + "", + "", + "", + "", + "Datasets used by Codepoet", + "Datasets used by Vertex", + "", + "", + "Datasets used by Gemini Public data", + "", + "", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "Arxiv", + "Others", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemini V1, order by precedence. Wikipedia", + "", + "Public webdocs", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Github", + "", + "", + "", + "", + "", + "ArXiv", + "Citable misc", + "", + "", + "Non-public books", + "", + "", + "Other", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Duet AI finetune datasets, order by precedence.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Bard ARCADE finetune dataset", + "Mobile assistant finetune datasets.", + "", + "Genesis fine tuned datasets.", + "Cloud Security fine tuned datasets.", + "", + "LABS AQA fine-tune datasets.", + "", + "", + "Gemini multimodal instruction tune(IT) and fine tune(FT) datasets datasets.", + "", + "", + "", + "", + "", + "", + "Gemini IT 1.2.7 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Gemit Bridge ULM FT dataset", + "Gemini IT Cloud Build datasets.", + "", + "", + "", + "", + "Gemini V2 datasets", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "displayAttributionMessage": { + "description": "human-friendly string that contains information from doc_attribution which could be shown by clients", + "type": "string" + }, + "docAttribution": { + "$ref": "LearningGenaiRecitationDocAttribution", + "description": "populated when recitation_action == CITE" + }, + "docOccurrences": { + "description": "number of documents that contained this segment", + "format": "int32", + "type": "integer" + }, + "endIndex": { + "format": "int32", + "type": "integer" + }, + "rawText": { + "description": "The raw text in the given input that is corresponding to the segment. It will be available only when 'return_segment_raw_text' is enabled in the request options.", + "type": "string" + }, + "segmentRecitationAction": { + "enum": [ + "ACTION_UNSPECIFIED", + "CITE", + "BLOCK", + "NO_ACTION", + "EXEMPT_FOUND_IN_PROMPT" + ], + "enumDescriptions": [ + "", + "indicate that attribution must be shown for a Segment", + "indicate that a Segment should be blocked from being used", + "for tagging high-frequency code snippets", + "The recitation was found in prompt and is exempted from overall results" + ], + "type": "string" + }, + "startIndex": { + "description": "The segment boundary start (inclusive) and end index (exclusive) in the given text. In the streaming RPC, the indexes always start from the beginning of the first text in the entire stream. The indexes are measured in UTF-16 code units.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "LearningGenaiRootCalculationType": { + "description": "The type used for final weights calculation.", + "id": "LearningGenaiRootCalculationType", + "properties": { + "scoreType": { + "enum": [ + "TYPE_UNKNOWN", + "TYPE_SAFE", + "TYPE_POLICY", + "TYPE_GENERATION" + ], + "enumDescriptions": [ + "Unknown scorer type.", + "Safety scorer.", + "Policy scorer.", + "Generation scorer." + ], + "type": "string" + }, + "weights": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootClassifierOutput": { + "id": "LearningGenaiRootClassifierOutput", + "properties": { + "ruleOutput": { + "$ref": "LearningGenaiRootRuleOutput", + "deprecated": true, + "description": "If set, this is the output of the first matching rule." + }, + "ruleOutputs": { + "description": "outputs of all matching rule.", + "items": { + "$ref": "LearningGenaiRootRuleOutput" + }, + "type": "array" + }, + "state": { + "$ref": "LearningGenaiRootClassifierState", + "description": "The results of data_providers and metrics." + } + }, + "type": "object" + }, + "LearningGenaiRootClassifierOutputSummary": { + "id": "LearningGenaiRootClassifierOutputSummary", + "properties": { + "metrics": { + "items": { + "$ref": "LearningGenaiRootMetricOutput" + }, + "type": "array" + }, + "ruleOutput": { + "$ref": "LearningGenaiRootRuleOutput", + "deprecated": true, + "description": "Output of the first matching rule." + }, + "ruleOutputs": { + "description": "outputs of all matching rule.", + "items": { + "$ref": "LearningGenaiRootRuleOutput" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootClassifierState": { + "description": "DataProviderOutput and MetricOutput can be saved between calls to the Classifier framework. For instance, you can run the query classifier, get outputs from those metrics, then use them in a result classifier as well. Example rule based on this idea: and_rules { rule { metric_name: 'query_safesearch_v2' ... } rule { metric_name: 'response_safesearch_v2' ... } }", + "id": "LearningGenaiRootClassifierState", + "properties": { + "dataProviderOutput": { + "items": { + "$ref": "LearningGenaiRootDataProviderOutput" + }, + "type": "array" + }, + "metricOutput": { + "items": { + "$ref": "LearningGenaiRootMetricOutput" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootDataProviderOutput": { + "id": "LearningGenaiRootDataProviderOutput", + "properties": { + "name": { + "type": "string" + }, + "status": { + "$ref": "UtilStatusProto", + "description": "If set, this DataProvider failed and this is the error message." + } + }, + "type": "object" + }, + "LearningGenaiRootFilterMetadata": { + "id": "LearningGenaiRootFilterMetadata", + "properties": { + "confidence": { + "description": "Filter confidence.", + "enum": [ + "FILTER_CONFIDENCE_UNKNOWN", + "FILTER_CONFIDENCE_VERY_LOW", + "FILTER_CONFIDENCE_LOW", + "FILTER_CONFIDENCE_MEDIUM", + "FILTER_CONFIDENCE_HIGH", + "FILTER_CONFIDENCE_VERY_HIGH" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "debugInfo": { + "$ref": "LearningGenaiRootFilterMetadataFilterDebugInfo", + "description": "Debug info for the message." + }, + "fallback": { + "description": "A fallback message chosen by the applied filter.", + "type": "string" + }, + "info": { + "description": "Additional info for the filter.", + "type": "string" + }, + "name": { + "description": "Name of the filter that triggered.", + "type": "string" + }, + "reason": { + "description": "Filter reason.", + "enum": [ + "FILTER_REASON_UNKNOWN", + "FILTER_REASON_NOT_FILTERED", + "FILTER_REASON_SENSITIVE", + "FILTER_REASON_RECITATION", + "FILTER_REASON_LANGUAGE", + "FILTER_REASON_TAKEDOWN", + "FILTER_REASON_CLASSIFIER", + "FILTER_REASON_EMPTY_RESPONSE", + "FILTER_REASON_SIMILARITY_TAKEDOWN", + "FILTER_REASON_UNSAFE", + "FILTER_REASON_PAIRWISE_CLASSIFIER", + "FILTER_REASON_CODEY", + "FILTER_REASON_URL", + "FILTER_REASON_EMAIL", + "FILTER_REASON_SAFETY_CAT", + "FILTER_REASON_REQUEST_RESPONSE_TAKEDOWN", + "FILTER_REASON_RAI_PQC", + "FILTER_REASON_ATLAS", + "FILTER_REASON_RAI_CSAM", + "FILTER_REASON_RAI_FRINGE", + "FILTER_REASON_RAI_SPII", + "FILTER_REASON_RAI_IMAGE_VIOLENCE", + "FILTER_REASON_RAI_IMAGE_PORN", + "FILTER_REASON_RAI_IMAGE_CSAM", + "FILTER_REASON_RAI_IMAGE_PEDO", + "FILTER_REASON_RAI_VIDEO_FRAME_VIOLENCE", + "FILTER_REASON_RAI_VIDEO_FRAME_PORN", + "FILTER_REASON_RAI_VIDEO_FRAME_CSAM", + "FILTER_REASON_RAI_VIDEO_FRAME_PEDO", + "FILTER_REASON_RAI_CONTEXTUAL_DANGEROUS", + "FILTER_REASON_RAI_SAFETYCAT", + "FILTER_REASON_TOXICITY", + "FILTER_REASON_ATLAS_PRICING", + "FILTER_REASON_ATLAS_BILLING", + "FILTER_REASON_ATLAS_NON_ENGLISH_QUESTION", + "FILTER_REASON_ATLAS_NOT_RELATED_TO_GCP", + "FILTER_REASON_ATLAS_AWS_AZURE_RELATED" + ], + "enumDescriptions": [ + "Unknown filter reason.", + "Input not filtered.", + "Sensitive content.", + "Recited content.", + "Language filtering", + "Takedown policy", + "Classifier Module", + "Empty response message.", + "Similarity takedown.", + "Unsafe responses from scorers.", + "Pairwise classifier.", + "Codey Filter.", + "URLs Filter.", + "Emails Filter.", + "SafetyCat filter.", + "Request Response takedown.", + "RAI Filter.", + "Atlas specific topic filter", + "RAI Filter.", + "RAI Filter.", + "RAI Filter.", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "RAI Filter", + "SafetyCat.", + "Toxic content.", + "Atlas specific topic filter for pricing questions.", + "Atlas specific topic filter for billing questions.", + "Atlas specific topic filter for non english questions.", + "Atlas specific topic filter for non GCP questions.", + "Atlas specific topic filter aws/azure related questions." + ], + "type": "string" + }, + "text": { + "description": "The input query or generated response that is getting filtered.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootFilterMetadataFilterDebugInfo": { + "id": "LearningGenaiRootFilterMetadataFilterDebugInfo", + "properties": { + "classifierOutput": { + "$ref": "LearningGenaiRootClassifierOutput" + }, + "defaultMetadata": { + "type": "string" + }, + "languageFilterResult": { + "$ref": "LearningServingLlmLanguageFilterResult" + }, + "raiOutput": { + "$ref": "LearningGenaiRootRAIOutput", + "description": "Safety filter output information for LLM Root RAI harm check." + }, + "raiResult": { + "$ref": "CloudAiNlLlmProtoServiceRaiResult" + }, + "raiSignal": { + "$ref": "CloudAiNlLlmProtoServiceRaiSignal", + "deprecated": true + }, + "streamRecitationResult": { + "$ref": "LanguageLabsAidaTrustRecitationProtoStreamRecitationResult", + "deprecated": true + }, + "takedownResult": { + "$ref": "LearningGenaiRootTakedownResult" + }, + "toxicityResult": { + "$ref": "LearningGenaiRootToxicityResult" + } + }, + "type": "object" + }, + "LearningGenaiRootHarm": { + "id": "LearningGenaiRootHarm", + "properties": { + "contextualDangerous": { + "description": "Please do not use, this is still under development.", + "type": "boolean" + }, + "csam": { + "type": "boolean" + }, + "fringe": { + "type": "boolean" + }, + "grailImageHarmType": { + "$ref": "LearningGenaiRootHarmGrailImageHarmType" + }, + "grailTextHarmType": { + "$ref": "LearningGenaiRootHarmGrailTextHarmType" + }, + "imageCsam": { + "type": "boolean" + }, + "imagePedo": { + "type": "boolean" + }, + "imagePorn": { + "description": "Image signals", + "type": "boolean" + }, + "imageViolence": { + "type": "boolean" + }, + "pqc": { + "type": "boolean" + }, + "safetycat": { + "$ref": "LearningGenaiRootHarmSafetyCatCategories" + }, + "spii": { + "$ref": "LearningGenaiRootHarmSpiiFilter" + }, + "threshold": { + "format": "double", + "type": "number" + }, + "videoFrameCsam": { + "type": "boolean" + }, + "videoFramePedo": { + "type": "boolean" + }, + "videoFramePorn": { + "description": "Video frame signals", + "type": "boolean" + }, + "videoFrameViolence": { + "type": "boolean" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmGrailImageHarmType": { + "description": "Harm type for images", + "id": "LearningGenaiRootHarmGrailImageHarmType", + "properties": { + "imageHarmType": { + "items": { + "enum": [ + "IMAGE_HARM_TYPE_UNSPECIFIED", + "IMAGE_HARM_TYPE_PORN", + "IMAGE_HARM_TYPE_VIOLENCE", + "IMAGE_HARM_TYPE_CSAI", + "IMAGE_HARM_TYPE_PEDO", + "IMAGE_HARM_TYPE_MINORS", + "IMAGE_HARM_TYPE_DANGEROUS", + "IMAGE_HARM_TYPE_MEDICAL", + "IMAGE_HARM_TYPE_RACY", + "IMAGE_HARM_TYPE_OBSCENE", + "IMAGE_HARM_TYPE_MINOR_PRESENCE", + "IMAGE_HARM_TYPE_GENERATIVE_MINOR_PRESENCE", + "IMAGE_HARM_TYPE_GENERATIVE_REALISTIC_VISIBLE_FACE" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmGrailTextHarmType": { + "description": "Harm type for text", + "id": "LearningGenaiRootHarmGrailTextHarmType", + "properties": { + "harmType": { + "items": { + "enum": [ + "HARM_TYPE_UNSPECIFIED", + "HARM_TYPE_HATE", + "HARM_TYPE_TOXICITY", + "HARM_TYPE_VIOLENCE", + "HARM_TYPE_CSAI", + "HARM_TYPE_SEXUAL", + "HARM_TYPE_FRINGE", + "HARM_TYPE_POLITICAL", + "HARM_TYPE_MEMORIZATION", + "HARM_TYPE_SPII", + "HARM_TYPE_NEW_DANGEROUS", + "HARM_TYPE_MEDICAL", + "HARM_TYPE_HARASSMENT" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "New definition of dangerous.", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmSafetyCatCategories": { + "id": "LearningGenaiRootHarmSafetyCatCategories", + "properties": { + "categories": { + "items": { + "enum": [ + "SAFETYCAT_CATEGORY_UNSPECIFIED", + "TOXICITY", + "OBSCENE", + "SEXUAL", + "INSULT", + "IDENTITY_HATE", + "DEATH_HARM_TRAGEDY", + "VIOLENCE_ABUSE", + "FIREARMS_WEAPONS", + "PUBLIC_SAFETY", + "HEALTH", + "RELIGION_BELIEF", + "DRUGS", + "WAR_CONFLICT", + "POLITICS", + "FINANCE", + "LEGAL", + "DANGEROUS", + "DANGEROUS_SEVERITY", + "HARASSMENT_SEVERITY", + "HATE_SEVERITY", + "SEXUAL_SEVERITY" + ], + "enumDescriptions": [ + "", + "SafetyCat categories.", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "Following categories are only supported in SAFETY_CAT_TEXT_V3_PAX model", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootHarmSpiiFilter": { + "id": "LearningGenaiRootHarmSpiiFilter", + "properties": { + "usBankRoutingMicr": { + "type": "boolean" + }, + "usEmployerIdentificationNumber": { + "type": "boolean" + }, + "usSocialSecurityNumber": { + "type": "boolean" + } + }, + "type": "object" + }, + "LearningGenaiRootInternalMetadata": { + "id": "LearningGenaiRootInternalMetadata", + "properties": { + "scoredTokens": { + "items": { + "$ref": "LearningGenaiRootScoredToken" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootMetricOutput": { + "id": "LearningGenaiRootMetricOutput", + "properties": { + "debug": { + "type": "string" + }, + "name": { + "description": "Name of the metric.", + "type": "string" + }, + "numericValue": { + "format": "double", + "type": "number" + }, + "status": { + "$ref": "UtilStatusProto" + }, + "stringValue": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRAIOutput": { + "description": "This is per harm.", + "id": "LearningGenaiRootRAIOutput", + "properties": { + "allowed": { + "type": "boolean" + }, + "harm": { + "$ref": "LearningGenaiRootHarm" + }, + "name": { + "type": "string" + }, + "score": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootRegexTakedownResult": { + "id": "LearningGenaiRootRegexTakedownResult", + "properties": { + "allowed": { + "description": "False when query or response should be taken down due to match with a blocked regex, true otherwise.", + "type": "boolean" + }, + "takedownRegex": { + "description": "Regex used to decide that query or response should be taken down. Empty when query or response is kept.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRequestResponseTakedownResult": { + "id": "LearningGenaiRootRequestResponseTakedownResult", + "properties": { + "allowed": { + "description": "False when response has to be taken down per above config.", + "type": "boolean" + }, + "requestTakedownRegex": { + "description": "Regex used to match the request.", + "type": "string" + }, + "responseTakedownRegex": { + "description": "Regex used to decide that response should be taken down. Empty when response is kept.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecision": { + "description": "Holds the final routing decision, by storing the model_config_id. And individual scores each model got.", + "id": "LearningGenaiRootRoutingDecision", + "properties": { + "metadata": { + "$ref": "LearningGenaiRootRoutingDecisionMetadata" + }, + "modelConfigId": { + "description": "The selected model to route traffic to.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadata": { + "description": "Debug metadata about the routing decision.", + "id": "LearningGenaiRootRoutingDecisionMetadata", + "properties": { + "scoreBasedRoutingMetadata": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataScoreBased" + }, + "tokenLengthBasedRoutingMetadata": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBased" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataScoreBased": { + "description": "If we are routing using scored based configuration, then the metadata about that is available in this proto.", + "id": "LearningGenaiRootRoutingDecisionMetadataScoreBased", + "properties": { + "matchedRule": { + "$ref": "LearningGenaiRootScoreBasedRoutingConfigRule", + "description": "The rule that was matched." + }, + "score": { + "$ref": "LearningGenaiRootScore", + "description": "The score that was generated by the router i.e. the model." + }, + "usedDefaultFallback": { + "description": "No rules were matched \u0026 therefore used the default fallback.", + "type": "boolean" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataTokenLengthBased": { + "id": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBased", + "properties": { + "modelInputTokenMetadata": { + "items": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata" + }, + "type": "array" + }, + "modelMaxTokenMetadata": { + "items": { + "$ref": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata": { + "id": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata", + "properties": { + "computedInputTokenLength": { + "description": "The length computed by backends using the formatter \u0026 tokenizer specific to the model", + "format": "int32", + "type": "integer" + }, + "modelId": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata": { + "id": "LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata", + "properties": { + "maxNumInputTokens": { + "format": "int32", + "type": "integer" + }, + "maxNumOutputTokens": { + "format": "int32", + "type": "integer" + }, + "modelId": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootRuleOutput": { + "id": "LearningGenaiRootRuleOutput", + "properties": { + "decision": { + "enum": [ + "NO_MATCH", + "MATCH" + ], + "enumDescriptions": [ + "This rule was not matched. When used in a ClassifierOutput, this means that no rules were matched.", + "This is a generic \"match\" message, indicating that a rule was triggered. Usually you would use this for a categorization classifier." + ], + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootScore": { + "id": "LearningGenaiRootScore", + "properties": { + "calculationType": { + "$ref": "LearningGenaiRootCalculationType" + }, + "internalMetadata": { + "$ref": "LearningGenaiRootInternalMetadata", + "description": "The internal_metadata is intended to be used by internal processors and will be cleared before returns." + }, + "thresholdType": { + "$ref": "LearningGenaiRootThresholdType" + }, + "tokensAndLogprobPerDecodingStep": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStep", + "description": "Top candidate tokens and log probabilities at each decoding step." + }, + "value": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootScoreBasedRoutingConfigRule": { + "id": "LearningGenaiRootScoreBasedRoutingConfigRule", + "properties": { + "equalOrGreaterThan": { + "$ref": "LearningGenaiRootScore", + "description": "NOTE: Hardest examples have smaller values in their routing scores." + }, + "lessThan": { + "$ref": "LearningGenaiRootScore" + }, + "modelConfigId": { + "description": "This model_config_id points to ModelConfig::id which allows us to find the ModelConfig to route to. This is part of the banks specified in the ModelBankConfig.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootScoredSimilarityTakedownPhrase": { + "description": "Proto containing the results from the Universal Sentence Encoder / Other models", + "id": "LearningGenaiRootScoredSimilarityTakedownPhrase", + "properties": { + "phrase": { + "$ref": "LearningGenaiRootSimilarityTakedownPhrase" + }, + "similarityScore": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootScoredToken": { + "description": "A token with its own score.", + "id": "LearningGenaiRootScoredToken", + "properties": { + "endTokenScore": { + "description": "Each end_token_score is a logprob for how well the completion would end at a particular token. See http://google3/labs/language/aida/config/proto/model_config.proto;l=376;rcl=573039459", + "format": "float", + "type": "number" + }, + "score": { + "description": "Each score is the logprob for the token in model response.", + "format": "float", + "type": "number" + }, + "token": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootSimilarityTakedownPhrase": { + "description": "Each SimilarityTakedownPhrase treats a logical group of blocked and allowed phrases together along with a corresponding punt If the closest matching response is of the allowed type, we allow the response If the closest matching response is of the blocked type, we block the response. eg: Blocked phrase - \"All lives matter\"", + "id": "LearningGenaiRootSimilarityTakedownPhrase", + "properties": { + "blockedPhrase": { + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootSimilarityTakedownResult": { + "id": "LearningGenaiRootSimilarityTakedownResult", + "properties": { + "allowed": { + "description": "False when query or response should be taken down by any of the takedown rules, true otherwise.", + "type": "boolean" + }, + "scoredPhrases": { + "description": "List of similar phrases with score. Set only if allowed=false.", + "items": { + "$ref": "LearningGenaiRootScoredSimilarityTakedownPhrase" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootTakedownResult": { + "id": "LearningGenaiRootTakedownResult", + "properties": { + "allowed": { + "description": "False when query or response should be taken down by any of the takedown rules, true otherwise.", + "type": "boolean" + }, + "regexTakedownResult": { + "$ref": "LearningGenaiRootRegexTakedownResult" + }, + "requestResponseTakedownResult": { + "$ref": "LearningGenaiRootRequestResponseTakedownResult" + }, + "similarityTakedownResult": { + "$ref": "LearningGenaiRootSimilarityTakedownResult" + } + }, + "type": "object" + }, + "LearningGenaiRootThresholdType": { + "description": "The type of score that bundled with a threshold, and will not be attending the final score calculation. How each score type uses the threshold can be implementation details.", + "id": "LearningGenaiRootThresholdType", + "properties": { + "scoreType": { + "enum": [ + "TYPE_UNKNOWN", + "TYPE_SAFE", + "TYPE_POLICY", + "TYPE_GENERATION" + ], + "enumDescriptions": [ + "Unknown scorer type.", + "Safety scorer.", + "Policy scorer.", + "Generation scorer." + ], + "type": "string" + }, + "threshold": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "LearningGenaiRootTokensAndLogProbPerDecodingStep": { + "description": "Results of RandomSamplingParams::top_k_logprob_per_decoding_step.", + "id": "LearningGenaiRootTokensAndLogProbPerDecodingStep", + "properties": { + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate" + }, + "type": "array" + }, + "topCandidates": { + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate": { + "description": "A candidate at a decoding step.", + "id": "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate", + "properties": { + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" + }, + "token": { + "description": "The candidate’s token value.", + "type": "string" + } + }, + "type": "object" + }, + "LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", + "id": "LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates", + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootToxicityResult": { + "description": "A model can generate multiple signals and this captures all the generated signals for a single message.", + "id": "LearningGenaiRootToxicityResult", + "properties": { + "signals": { + "items": { + "$ref": "LearningGenaiRootToxicitySignal" + }, + "type": "array" + } + }, + "type": "object" + }, + "LearningGenaiRootToxicitySignal": { + "description": "Proto to capture a signal generated by the toxicity model.", + "id": "LearningGenaiRootToxicitySignal", + "properties": { + "allowed": { + "type": "boolean" + }, + "label": { + "enum": [ + "LABEL_UNSPECIFIED", + "NOT_SENSITIVE", + "SENSITIVE", + "ACCIDENTS_DISASTERS", + "ADULT", + "COMPUTER_SECURITY", + "CONTROVERSIAL_SOCIAL_ISSUES", + "DEATH_TRAGEDY", + "DRUGS", + "IDENTITY_ETHNICITY", + "FINANCIAL_HARDSHIP", + "FIREARMS_WEAPONS", + "HEALTH", + "INSULT", + "LEGAL", + "MENTAL_HEALTH", + "POLITICS", + "RELIGION_BELIEFS", + "SAFETY", + "SELF_HARM", + "SPECIAL_NEEDS", + "TERRORISM", + "TOXIC", + "TROUBLED_RELATIONSHIP", + "VIOLENCE_ABUSE", + "VULGAR", + "WAR_CONFLICT" + ], + "enumDescriptions": [ + "Default label.", + "Input is not sensitive.", + "Input is sensitive.", + "Input is related to accidents or disasters.", + "Input contains adult content.", + "Input is related to computer security.", + "Input contains controversial social issues.", + "Input is related to death tragedy.", + "Input is related to drugs.", + "Input is related to identity or ethnicity.", + "Input is related to financial hardship.", + "Input is related to firearms or weapons.", + "Input contains health related information.", + "Input may be an insult.", + "Input is related to legal content.", + "Input contains mental health related information.", + "Input is related to politics.", + "Input is related to religions or beliefs.", + "Input is related to safety.", + "Input is related to self-harm.", + "Input is related to special needs.", + "Input is related to terrorism.", + "Input is toxic.", + "Input is related to troubled relationships.", + "Input contains content about violence or abuse.", + "Input is vulgar.", + "Input is related to war and conflict." + ], + "type": "string" + }, + "score": { + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningServingLlmLanguageFilterResult": { + "id": "LearningServingLlmLanguageFilterResult", + "properties": { + "allowed": { + "description": "False when query or response should be filtered out due to unsupported language.", + "type": "boolean" + }, + "detectedLanguage": { + "description": "Language of the query or response.", + "type": "string" + }, + "detectedLanguageProbability": { + "description": "Probability of the language predicted as returned by LangID.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "LearningServingLlmMessageMetadata": { + "description": "LINT.IfChange This metadata contains additional information required for debugging.", + "id": "LearningServingLlmMessageMetadata", + "properties": { + "classifierSummary": { + "$ref": "LearningGenaiRootClassifierOutputSummary", + "description": "Summary of classifier output. We attach this to all messages regardless of whether classification rules triggered or not." + }, + "currentStreamTextLength": { + "format": "uint32", + "type": "integer" + }, + "deleted": { + "description": "Whether the corresponding message has been deleted.", + "type": "boolean" + }, + "filterMeta": { + "description": "Metadata for filters that triggered.", + "items": { + "$ref": "LearningGenaiRootFilterMetadata" + }, + "type": "array" + }, + "finalMessageScore": { + "$ref": "LearningGenaiRootScore", + "description": "This score is finally used for ranking the message. This will be same as the score present in `Message.score` field." + }, + "finishReason": { + "description": "NOT YET IMPLEMENTED.", + "enum": [ + "UNSPECIFIED", + "RETURN", + "STOP", + "MAX_TOKENS", + "FILTER" + ], + "enumDescriptions": [ + "", + "Return all the tokens back. This typically implies no filtering or stop sequence was triggered.", + "Finished due to provided stop sequence.", + "Model has emitted the maximum number of tokens as specified by max_decoding_steps.", + "Finished due to triggering some post-processing filter." + ], + "type": "string" + }, + "isFallback": { + "description": "Applies to Response message only. Indicates whether the message is a fallback and the response would have otherwise been empty.", + "type": "boolean" + }, + "langidResult": { + "$ref": "NlpSaftLangIdResult", + "description": "Result from nlp_saft DetectLanguage method. Currently the predicted language code and language probability is used." + }, + "language": { + "description": "Detected language.", + "type": "string" + }, + "lmPrefix": { + "description": "The LM prefix used to generate this response.", + "type": "string" + }, + "originalText": { + "description": "The original text generated by LLM. This is the raw output for debugging purposes.", + "type": "string" + }, + "perStreamDecodedTokenCount": { + "description": "NOT YET IMPLEMENTED. Applies to streaming only. Number of tokens decoded / emitted by the model as part of this stream. This may be different from token_count, which contains number of tokens returned in this response after any response rewriting / truncation.", + "format": "int32", + "type": "integer" + }, + "raiOutputs": { + "description": "Results of running RAI on the query or this response candidate. One output per rai_config. It will be populated regardless of whether the threshold is exceeded or not.", + "items": { + "$ref": "LearningGenaiRootRAIOutput" + }, + "type": "array" + }, + "recitationResult": { + "$ref": "LearningGenaiRecitationRecitationResult", + "description": "Recitation Results. It will be populated as long as Recitation processing is enabled, regardless of recitation outcome." + }, + "returnTokenCount": { + "description": "NOT YET IMPLEMENTED. Number of tokens returned as part of this candidate.", + "format": "int32", + "type": "integer" + }, + "scores": { + "description": "All the different scores for a message are logged here.", + "items": { + "$ref": "LearningGenaiRootScore" + }, + "type": "array" + }, + "streamTerminated": { + "description": "Whether the response is terminated during streaming return. Only used for streaming requests.", + "type": "boolean" + }, + "totalDecodedTokenCount": { + "description": "NOT YET IMPLEMENTED. Aggregated number of total tokens decoded so far. For streaming, this is sum of all the tokens decoded so far i.e. aggregated count.", + "format": "int32", + "type": "integer" + }, + "translatedUserPrompts": { + "description": "Translated user-prompt used for RAI post processing. This is for internal processing only. We will translate in pre-processor and pass the translated text to the post processor using this field. It will be empty if non of the signals requested need translation.", + "items": { + "type": "string" + }, + "type": "array" + }, + "vertexRaiResult": { + "$ref": "CloudAiNlLlmProtoServiceRaiResult", + "description": "The metadata from Vertex SafetyCat processors" + } + }, + "type": "object" + }, + "NlpSaftLangIdLocalesResult": { + "id": "NlpSaftLangIdLocalesResult", + "properties": { + "predictions": { + "description": "List of locales in which the text would be considered acceptable. Sorted in descending order according to each locale's respective likelihood. For example, if a Portuguese text is acceptable in both Brazil and Portugal, but is more strongly associated with Brazil, then the predictions would be [\"pt-BR\", \"pt-PT\"], in that order. May be empty, indicating that the model did not predict any acceptable locales.", + "items": { + "$ref": "NlpSaftLangIdLocalesResultLocale" + }, + "type": "array" + } + }, + "type": "object" + }, + "NlpSaftLangIdLocalesResultLocale": { + "id": "NlpSaftLangIdLocalesResultLocale", + "properties": { + "languageCode": { + "description": "A BCP 47 language code that includes region information. For example, \"pt-BR\" or \"pt-PT\". This field will always be populated.", + "type": "string" + } + }, + "type": "object" + }, + "NlpSaftLangIdResult": { + "id": "NlpSaftLangIdResult", + "properties": { + "modelVersion": { + "description": "The version of the model used to create these annotations.", + "enum": [ + "VERSION_UNSPECIFIED", + "INDEXING_20181017", + "INDEXING_20191206", + "INDEXING_20200313", + "INDEXING_20210618", + "STANDARD_20220516" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "predictions": { + "description": "This field stores the n-best list of possible BCP 47 language code strings for a given input sorted in descending order according to each code's respective probability.", + "items": { + "$ref": "NlpSaftLanguageSpan" + }, + "type": "array" + }, + "spanPredictions": { + "description": "This field stores language predictions of subspans of the input, when available. Each LanguageSpanSequence is a sequence of LanguageSpans. A particular sequence of LanguageSpans has an associated probability, and need not necessarily cover the entire input. If no language could be predicted for any span, then this field may be empty.", + "items": { + "$ref": "NlpSaftLanguageSpanSequence" + }, + "type": "array" + } + }, + "type": "object" + }, + "NlpSaftLanguageSpan": { + "id": "NlpSaftLanguageSpan", + "properties": { + "end": { + "format": "int32", + "type": "integer" + }, + "languageCode": { + "description": "A BCP 47 language code for this span.", + "type": "string" + }, + "locales": { + "$ref": "NlpSaftLangIdLocalesResult", + "description": "Optional field containing any information that was predicted about the specific locale(s) of the span." + }, + "probability": { + "description": "A probability associated with this prediction.", + "format": "float", + "type": "number" + }, + "start": { + "description": "Start and end byte offsets, inclusive, within the given input string. A value of -1 implies that this field is not set. Both fields must either be set with a nonnegative value or both are unset. If both are unset then this LanguageSpan applies to the entire input.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "NlpSaftLanguageSpanSequence": { + "id": "NlpSaftLanguageSpanSequence", + "properties": { + "languageSpans": { + "description": "A sequence of LanguageSpan objects, each assigning a language to a subspan of the input.", + "items": { + "$ref": "NlpSaftLanguageSpan" + }, + "type": "array" + }, + "probability": { + "description": "The probability of this sequence of LanguageSpans.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "Proto2BridgeMessageSet": { + "description": "This is proto2's version of MessageSet.", + "id": "Proto2BridgeMessageSet", + "properties": {}, + "type": "object" + }, + "UtilStatusProto": { + "description": "Wire-format for a Status object", + "id": "UtilStatusProto", + "properties": { + "canonicalCode": { + "description": "The canonical error code (see codes.proto) that most closely corresponds to this status. This may be missing, and in the common case of the generic space, it definitely will be.", + "format": "int32", + "type": "integer" + }, + "code": { + "description": "Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto", + "format": "int32", + "type": "integer" + }, + "message": { + "description": "Detail message", + "type": "string" + }, + "messageSet": { + "$ref": "Proto2BridgeMessageSet", + "description": "message_set associates an arbitrary proto message with the status." + }, + "space": { + "description": "The following are usually only present when code != 0 Space to which this status belongs", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 676befe5abe..9838e20c5a5 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -207,6 +207,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.PersistentResources = NewProjectsLocationsPersistentResourcesService(s) rs.PipelineJobs = NewProjectsLocationsPipelineJobsService(s) rs.Publishers = NewProjectsLocationsPublishersService(s) + rs.ReasoningEngines = NewProjectsLocationsReasoningEnginesService(s) rs.Schedules = NewProjectsLocationsSchedulesService(s) rs.Solvers = NewProjectsLocationsSolversService(s) rs.SpecialistPools = NewProjectsLocationsSpecialistPoolsService(s) @@ -277,6 +278,8 @@ type ProjectsLocationsService struct { Publishers *ProjectsLocationsPublishersService + ReasoningEngines *ProjectsLocationsReasoningEnginesService + Schedules *ProjectsLocationsSchedulesService Solvers *ProjectsLocationsSolversService @@ -860,6 +863,7 @@ func NewProjectsLocationsMetadataStoresService(s *Service) *ProjectsLocationsMet rs.Contexts = NewProjectsLocationsMetadataStoresContextsService(s) rs.Executions = NewProjectsLocationsMetadataStoresExecutionsService(s) rs.MetadataSchemas = NewProjectsLocationsMetadataStoresMetadataSchemasService(s) + rs.Operations = NewProjectsLocationsMetadataStoresOperationsService(s) return rs } @@ -873,33 +877,71 @@ type ProjectsLocationsMetadataStoresService struct { Executions *ProjectsLocationsMetadataStoresExecutionsService MetadataSchemas *ProjectsLocationsMetadataStoresMetadataSchemasService + + Operations *ProjectsLocationsMetadataStoresOperationsService } func NewProjectsLocationsMetadataStoresArtifactsService(s *Service) *ProjectsLocationsMetadataStoresArtifactsService { rs := &ProjectsLocationsMetadataStoresArtifactsService{s: s} + rs.Operations = NewProjectsLocationsMetadataStoresArtifactsOperationsService(s) return rs } type ProjectsLocationsMetadataStoresArtifactsService struct { s *Service + + Operations *ProjectsLocationsMetadataStoresArtifactsOperationsService +} + +func NewProjectsLocationsMetadataStoresArtifactsOperationsService(s *Service) *ProjectsLocationsMetadataStoresArtifactsOperationsService { + rs := &ProjectsLocationsMetadataStoresArtifactsOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresArtifactsOperationsService struct { + s *Service } func NewProjectsLocationsMetadataStoresContextsService(s *Service) *ProjectsLocationsMetadataStoresContextsService { rs := &ProjectsLocationsMetadataStoresContextsService{s: s} + rs.Operations = NewProjectsLocationsMetadataStoresContextsOperationsService(s) return rs } type ProjectsLocationsMetadataStoresContextsService struct { s *Service + + Operations *ProjectsLocationsMetadataStoresContextsOperationsService +} + +func NewProjectsLocationsMetadataStoresContextsOperationsService(s *Service) *ProjectsLocationsMetadataStoresContextsOperationsService { + rs := &ProjectsLocationsMetadataStoresContextsOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresContextsOperationsService struct { + s *Service } func NewProjectsLocationsMetadataStoresExecutionsService(s *Service) *ProjectsLocationsMetadataStoresExecutionsService { rs := &ProjectsLocationsMetadataStoresExecutionsService{s: s} + rs.Operations = NewProjectsLocationsMetadataStoresExecutionsOperationsService(s) return rs } type ProjectsLocationsMetadataStoresExecutionsService struct { s *Service + + Operations *ProjectsLocationsMetadataStoresExecutionsOperationsService +} + +func NewProjectsLocationsMetadataStoresExecutionsOperationsService(s *Service) *ProjectsLocationsMetadataStoresExecutionsOperationsService { + rs := &ProjectsLocationsMetadataStoresExecutionsOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresExecutionsOperationsService struct { + s *Service } func NewProjectsLocationsMetadataStoresMetadataSchemasService(s *Service) *ProjectsLocationsMetadataStoresMetadataSchemasService { @@ -911,6 +953,15 @@ type ProjectsLocationsMetadataStoresMetadataSchemasService struct { s *Service } +func NewProjectsLocationsMetadataStoresOperationsService(s *Service) *ProjectsLocationsMetadataStoresOperationsService { + rs := &ProjectsLocationsMetadataStoresOperationsService{s: s} + return rs +} + +type ProjectsLocationsMetadataStoresOperationsService struct { + s *Service +} + func NewProjectsLocationsMigratableResourcesService(s *Service) *ProjectsLocationsMigratableResourcesService { rs := &ProjectsLocationsMigratableResourcesService{s: s} rs.Operations = NewProjectsLocationsMigratableResourcesOperationsService(s) @@ -1151,6 +1202,27 @@ type ProjectsLocationsPublishersModelsService struct { s *Service } +func NewProjectsLocationsReasoningEnginesService(s *Service) *ProjectsLocationsReasoningEnginesService { + rs := &ProjectsLocationsReasoningEnginesService{s: s} + rs.Operations = NewProjectsLocationsReasoningEnginesOperationsService(s) + return rs +} + +type ProjectsLocationsReasoningEnginesService struct { + s *Service + + Operations *ProjectsLocationsReasoningEnginesOperationsService +} + +func NewProjectsLocationsReasoningEnginesOperationsService(s *Service) *ProjectsLocationsReasoningEnginesOperationsService { + rs := &ProjectsLocationsReasoningEnginesOperationsService{s: s} + return rs +} + +type ProjectsLocationsReasoningEnginesOperationsService struct { + s *Service +} + func NewProjectsLocationsSchedulesService(s *Service) *ProjectsLocationsSchedulesService { rs := &ProjectsLocationsSchedulesService{s: s} rs.Operations = NewProjectsLocationsSchedulesOperationsService(s) @@ -2214,6 +2286,11 @@ type CloudAiNlLlmProtoServiceGenerateMultiModalResponse struct { // this point. Candidates []*CloudAiNlLlmProtoServiceCandidate `json:"candidates,omitempty"` + // DebugMetadata: Debug information containing message metadata. Clients + // should not consume this field, and this is only populated for Flow + // Runner path. + DebugMetadata *CloudAiNlLlmProtoServiceMessageMetadata `json:"debugMetadata,omitempty"` + // PromptFeedback: Content filter results for a prompt sent in the // request. Note: Sent only in the first stream chunk. Only happens when // no candidates were generated due to content violations. @@ -2248,6 +2325,41 @@ func (s *CloudAiNlLlmProtoServiceGenerateMultiModalResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type CloudAiNlLlmProtoServiceMessageMetadata struct { + // InputFilterInfo: Filter metadata of the input messages. + InputFilterInfo *LearningServingLlmMessageMetadata `json:"inputFilterInfo,omitempty"` + + // ModelRoutingDecision: This score is generated by the router model to + // decide which model to use + ModelRoutingDecision *LearningGenaiRootRoutingDecision `json:"modelRoutingDecision,omitempty"` + + // OutputFilterInfo: Filter metadata of the output messages. + OutputFilterInfo []*LearningServingLlmMessageMetadata `json:"outputFilterInfo,omitempty"` + + // ForceSendFields is a list of field names (e.g. "InputFilterInfo") 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. "InputFilterInfo") 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 *CloudAiNlLlmProtoServiceMessageMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceMessageMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudAiNlLlmProtoServicePart: A single part of a message. type CloudAiNlLlmProtoServicePart struct { // FileData: URI-based data. @@ -2430,6 +2542,167 @@ func (s *CloudAiNlLlmProtoServicePromptFeedback) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServiceRaiResult: The RAI results for a given text. +type CloudAiNlLlmProtoServiceRaiResult struct { + // AidaRecitationResult: Recitation result from Aida recitation checker. + AidaRecitationResult *LanguageLabsAidaTrustRecitationProtoRecitationResult `json:"aidaRecitationResult,omitempty"` + + // Blocked: Use `triggered_blocklist`. + Blocked bool `json:"blocked,omitempty"` + + // ErrorCodes: The error codes indicate which RAI filters block the + // response. + ErrorCodes []int64 `json:"errorCodes,omitempty"` + + // Filtered: Whether the text should be filtered and not shown to the + // end user. This is determined based on a combination of + // `triggered_recitation`, `triggered_blocklist`, + // `language_filter_result`, and `triggered_safety_filter`. + Filtered bool `json:"filtered,omitempty"` + + // LanguageFilterResult: Language filter result from SAFT LangId. + LanguageFilterResult *LearningServingLlmLanguageFilterResult `json:"languageFilterResult,omitempty"` + + // RaiSignals: The RAI signals for the text. + RaiSignals []*CloudAiNlLlmProtoServiceRaiSignal `json:"raiSignals,omitempty"` + + // TriggeredBlocklist: Whether the text triggered the blocklist. + TriggeredBlocklist bool `json:"triggeredBlocklist,omitempty"` + + // TriggeredRecitation: Whether the text should be blocked by the + // recitation result from Aida recitation checker. It is determined from + // aida_recitation_result. + TriggeredRecitation bool `json:"triggeredRecitation,omitempty"` + + // TriggeredSafetyFilter: Whether the text triggered the safety filter. + // Currently, this is due to CSAI triggering or one of four categories + // (derogatory, sexual, toxic, violent) having a score over the filter + // threshold. + TriggeredSafetyFilter bool `json:"triggeredSafetyFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AidaRecitationResult") 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. "AidaRecitationResult") 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 *CloudAiNlLlmProtoServiceRaiResult) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceRaiResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// CloudAiNlLlmProtoServiceRaiSignal: An RAI signal for a single +// category. +type CloudAiNlLlmProtoServiceRaiSignal struct { + // Confidence: The confidence level for the RAI category. + // + // Possible values: + // "CONFIDENCE_UNSPECIFIED" + // "CONFIDENCE_NONE" + // "CONFIDENCE_LOW" + // "CONFIDENCE_MEDIUM" + // "CONFIDENCE_HIGH" + Confidence string `json:"confidence,omitempty"` + + // Flagged: Whether the category is flagged as being present. Currently, + // this is set to true if score >= 0.5. + Flagged bool `json:"flagged,omitempty"` + + // RaiCategory: The RAI category. + // + // Possible values: + // "RAI_CATEGORY_UNSPECIFIED" + // "TOXIC" - SafetyCat categories. + // "SEXUALLY_EXPLICIT" + // "HATE_SPEECH" + // "VIOLENT" + // "PROFANITY" + // "HARASSMENT" + // "DEATH_HARM_TRAGEDY" + // "FIREARMS_WEAPONS" + // "PUBLIC_SAFETY" + // "HEALTH" + // "RELIGIOUS_BELIEF" + // "ILLICIT_DRUGS" + // "WAR_CONFLICT" + // "POLITICS" + // "FINANCE" + // "LEGAL" + // "CSAI" - GRAIL categories that can't be exposed to end users. + // "FRINGE" + // "THREAT" - Unused categories. + // "SEVERE_TOXICITY" + // "TOXICITY" - Old category names. + // "SEXUAL" + // "INSULT" + // "DEROGATORY" + // "IDENTITY_ATTACK" + // "VIOLENCE_ABUSE" + // "OBSCENE" + // "DRUGS" + // "CSAM" - CSAM V2 + // "SPII" - SPII + // "DANGEROUS_CONTENT" - New SafetyCat v3 categories + // "DANGEROUS_CONTENT_SEVERITY" + // "INSULT_SEVERITY" + // "DEROGATORY_SEVERITY" + // "SEXUAL_SEVERITY" + RaiCategory string `json:"raiCategory,omitempty"` + + // Score: The score for the category, in the range [0.0, 1.0]. + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *CloudAiNlLlmProtoServiceRaiSignal) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceRaiSignal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServiceRaiSignal) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServiceRaiSignal + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + // CloudAiNlLlmProtoServiceSafetyRating: Safety rating corresponding to // the generated content. type CloudAiNlLlmProtoServiceSafetyRating struct { @@ -11311,12 +11584,17 @@ func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling) Mars // GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint // : The dedicated serving endpoint for this FeatureOnlineStore. Only // need to set when you choose Optimized storage type or enable -// EmbeddingManagement. Will use public endpoint by default. +// EmbeddingManagement. Will use public endpoint by default. Note, for +// EmbeddingManagement use case, only +// [DedicatedServingEndpoint.public_endpoint_domain_name] is available +// now. type GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint struct { // PrivateServiceConnectConfig: Optional. Private service connect - // config. If PrivateServiceConnectConfig.enable_private_service_connect - // set to true, customers will use private service connection to send - // request. Otherwise, the connection will set to public endpoint. + // config. The private service connection is available only for + // Optimized storage type, not for embedding management now. If + // PrivateServiceConnectConfig.enable_private_service_connect set to + // true, customers will use private service connection to send request. + // Otherwise, the connection will set to public endpoint. PrivateServiceConnectConfig *GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` // PublicEndpointDomainName: Output only. This field will be populated @@ -13314,11 +13592,6 @@ type GoogleCloudAiplatformV1beta1GenerateContentRequest struct { // conversation history + latest request. Contents []*GoogleCloudAiplatformV1beta1Content `json:"contents,omitempty"` - // Endpoint: Required. The name of the Endpoint requested to serve the - // prediction. Format: - // `projects/{project}/locations/{location}/endpoints/{endpoint}` - Endpoint string `json:"endpoint,omitempty"` - // GenerationConfig: Optional. Generation config. GenerationConfig *GoogleCloudAiplatformV1beta1GenerationConfig `json:"generationConfig,omitempty"` @@ -22546,6 +22819,10 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToAction struct { // PublisherModel. OpenFineTuningPipeline *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openFineTuningPipeline,omitempty"` + // OpenFineTuningPipelines: Optional. Open fine-tuning pipelines of the + // PublisherModel. + OpenFineTuningPipelines *GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines `json:"openFineTuningPipelines,omitempty"` + // OpenGenerationAiStudio: Optional. Open in Generation AI Studio. OpenGenerationAiStudio *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openGenerationAiStudio,omitempty"` @@ -22555,6 +22832,9 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToAction struct { // OpenNotebook: Optional. Open notebook of the PublisherModel. OpenNotebook *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openNotebook,omitempty"` + // OpenNotebooks: Optional. Open notebooks of the PublisherModel. + OpenNotebooks *GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks `json:"openNotebooks,omitempty"` + // OpenPromptTuningPipeline: Optional. Open prompt-tuning pipeline of // the PublisherModel. OpenPromptTuningPipeline *GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"openPromptTuningPipeline,omitempty"` @@ -22655,6 +22935,66 @@ func (s *GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy) MarshalJS return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPi +// pelines: Open fine tuning pipelines. +type GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines struct { + // FineTuningPipelines: Required. Regional resource references to fine + // tuning pipelines. + FineTuningPipelines []*GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"fineTuningPipelines,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FineTuningPipelines") + // 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. "FineTuningPipelines") 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 *GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenFineTuningPipelines + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks: +// Open notebooks. +type GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks struct { + // Notebooks: Required. Regional resource references to notebooks. + Notebooks []*GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences `json:"notebooks,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Notebooks") 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. "Notebooks") 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 *GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PublisherModelCallToActionOpenNotebooks + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResource // References: The regional resource name or the URI. Key is region, // e.g., us-central1, europe-west2, global, etc.. @@ -22662,7 +23002,16 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceRefer // References: Required. References map[string]GoogleCloudAiplatformV1beta1PublisherModelResourceReference `json:"references,omitempty"` - // Title: Required. The title of the regional resource reference. + // ResourceDescription: Optional. Description of the resource. + ResourceDescription string `json:"resourceDescription,omitempty"` + + // ResourceTitle: Optional. Title of the resource. + ResourceTitle string `json:"resourceTitle,omitempty"` + + // ResourceUseCase: Optional. Use case (CUJ) of the resource. + ResourceUseCase string `json:"resourceUseCase,omitempty"` + + // Title: Required. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "References") to @@ -38062,251 +38411,9035 @@ func (s *IntelligenceCloudAutomlXpsReportingMetrics) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// method id "aiplatform.projects.locations.get": +// LanguageLabsAidaTrustRecitationProtoDocAttribution: The proto defines +// the attribution information for a document using whatever fields are +// most applicable for that document's datasource. For example, a +// Wikipedia article's attribution is in the form of its article title, +// a website is in the form of a URL, and a Github repo is in the form +// of a repo name. Next id:28 +type LanguageLabsAidaTrustRecitationProtoDocAttribution struct { + AmarnaId string `json:"amarnaId,omitempty"` -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} + ArxivId string `json:"arxivId,omitempty"` -// Get: Gets information about a location. -// -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} + Author string `json:"author,omitempty"` -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} + Bibkey string `json:"bibkey,omitempty"` -// 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} + BookTitle string `json:"bookTitle,omitempty"` -// 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { - c.ctx_ = ctx - return c -} + // BookVolumeId: The Oceanographers full-view books dataset uses a + // 'volume id' as the unique ID of a book. There is a deterministic + // function from a volume id to a URL under the books.google.com domain. + // Marked as 'optional' since a volume ID of zero is potentially + // possible and we want to distinguish that from the volume ID not being + // set. + BookVolumeId int64 `json:"bookVolumeId,omitempty,string"` -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} + // Possible values: + // "CATEGORY_UNSPECIFIED" + // "CATEGORY_NEWS" - The doc has a url and the news classifier has + // classified this doc as news. + // "CATEGORY_NON_NEWS_WEBDOC" - The doc has a url and the news + // classifier classified this doc as non-news. + // "CATEGORY_UNKNOWN_MISSING_SIGNAL" - The doc has a url but the url + // was missing from the news classifier URL table. + Category string `json:"category,omitempty"` -func (c *ProjectsLocationsGetCall) 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) -} + ConversationId string `json:"conversationId,omitempty"` -// Do executes the "aiplatform.projects.locations.get" call. -// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleCloudLocationLocation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets information about a location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Resource name for the location.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudLocationLocation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } + // Dataset: The dataset this document comes from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset. + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + Dataset string `json:"dataset,omitempty"` -} + Filepath string `json:"filepath,omitempty"` -// method id "aiplatform.projects.locations.list": + GeminiId string `json:"geminiId,omitempty"` -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} + GnewsArticleTitle string `json:"gnewsArticleTitle,omitempty"` -// List: Lists information about the supported locations for this -// service. -// -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} + GoodallExampleId string `json:"goodallExampleId,omitempty"` -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} + // IsOptOut: Whether the document is opted out. + IsOptOut bool `json:"isOptOut,omitempty"` -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} + IsPrompt bool `json:"isPrompt,omitempty"` -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} + LamdaExampleId string `json:"lamdaExampleId,omitempty"` -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} + License string `json:"license,omitempty"` -// 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} + MeenaConversationId string `json:"meenaConversationId,omitempty"` -// 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { - c.ctx_ = ctx - return c + // NaturalLanguageCode: Natural (not programming) language of the + // document. Language code as defined by + // http://www.unicode.org/reports/tr35/#Identifiers and + // https://tools.ietf.org/html/bcp47. Currently applicable to full-view + // books. Use docinfo-util.h to set & read language fields. See go/iii. + NaturalLanguageCode string `json:"naturalLanguageCode,omitempty"` + + // NoAttribution: True if this doc has no attribution information + // available. We use an explicit field for this instead of just + // implicitly leaving all the DocAttribution fields blank to distinguish + // a case where a bug/oversight has left the attribution information + // empty vs when we really have no attribution information available. + NoAttribution bool `json:"noAttribution,omitempty"` + + PodcastUtteranceId string `json:"podcastUtteranceId,omitempty"` + + PublicationDate *GoogleTypeDate `json:"publicationDate,omitempty"` + + // QualityScoreExperimentOnly: This field is for opt-out experiment + // only, MUST never be used during actual production/serving. + QualityScoreExperimentOnly float64 `json:"qualityScoreExperimentOnly,omitempty"` + + // Repo: Github repository + Repo string `json:"repo,omitempty"` + + // Url: URL of a webdoc + Url string `json:"url,omitempty"` + + VolumeId string `json:"volumeId,omitempty"` + + // WikipediaArticleTitle: Wikipedia article title. The Wikipedia TFDS + // dataset includes article titles but not URLs. While a URL is to the + // best of our knowledge a deterministic function of the title, we store + // the original title to reflect the information in the original + // dataset. + WikipediaArticleTitle string `json:"wikipediaArticleTitle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AmarnaId") 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. "AmarnaId") 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:"-"` } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ +func (s *LanguageLabsAidaTrustRecitationProtoDocAttribution) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoDocAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -func (c *ProjectsLocationsListCall) 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_) +func (s *LanguageLabsAidaTrustRecitationProtoDocAttribution) UnmarshalJSON(data []byte) error { + type NoMethod LanguageLabsAidaTrustRecitationProtoDocAttribution + var s1 struct { + QualityScoreExperimentOnly gensupport.JSONFloat64 `json:"qualityScoreExperimentOnly"` + *NoMethod } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.QualityScoreExperimentOnly = float64(s1.QualityScoreExperimentOnly) + return nil +} + +// LanguageLabsAidaTrustRecitationProtoRecitationResult: The recitation +// result for one input +type LanguageLabsAidaTrustRecitationProtoRecitationResult struct { + DynamicSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"dynamicSegmentResults,omitempty"` + + // RecitationAction: The recitation action for one given input. When its + // segments contain different actions, the overall action will be + // returned in the precedence of BLOCK > CITE > NO_ACTION. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + + TrainingSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"trainingSegmentResults,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DynamicSegmentResults") 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. "DynamicSegmentResults") 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 *LanguageLabsAidaTrustRecitationProtoRecitationResult) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoRecitationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LanguageLabsAidaTrustRecitationProtoSegmentResult: The recitation +// result for each segment in a given input. +type LanguageLabsAidaTrustRecitationProtoSegmentResult struct { + // AttributionDataset: The dataset the segment came from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset. + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine-tune datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine-tune datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + AttributionDataset string `json:"attributionDataset,omitempty"` + + // DisplayAttributionMessage: human-friendly string that contains + // information from doc_attribution which could be shown by clients + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + + // DocAttribution: populated when recitation_action == CITE + DocAttribution *LanguageLabsAidaTrustRecitationProtoDocAttribution `json:"docAttribution,omitempty"` + + // DocOccurrences: number of documents that contained this segment + DocOccurrences int64 `json:"docOccurrences,omitempty"` + + EndIndex int64 `json:"endIndex,omitempty"` + + // RawText: The raw text in the given input that is corresponding to the + // segment. It will be available only when 'return_segment_raw_text' is + // enabled in the request options. + RawText string `json:"rawText,omitempty"` + + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + + // StartIndex: The segment boundary start (inclusive) and end index + // (exclusive) in the given text. In the streaming RPC, the indexes + // always start from the beginning of the first text in the entire + // stream. The indexes are measured in UTF-16 code units. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttributionDataset") + // 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. "AttributionDataset") 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 *LanguageLabsAidaTrustRecitationProtoSegmentResult) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoSegmentResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LanguageLabsAidaTrustRecitationProtoStreamRecitationResult: The +// recitation result for one stream input +type LanguageLabsAidaTrustRecitationProtoStreamRecitationResult struct { + // DynamicSegmentResults: The recitation result against the given + // dynamic data source. + DynamicSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"dynamicSegmentResults,omitempty"` + + // FullyCheckedTextIndex: Last index of input text fully checked for + // recitation in the entire streaming context. Would return `-1` if no + // Input was checked for recitation. + FullyCheckedTextIndex int64 `json:"fullyCheckedTextIndex,omitempty"` + + // RecitationAction: The recitation action for one given input. When its + // segments contain different actions, the overall action will be + // returned in the precedence of BLOCK > CITE > NO_ACTION. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + + // TrainingSegmentResults: The recitation result against model training + // data. + TrainingSegmentResults []*LanguageLabsAidaTrustRecitationProtoSegmentResult `json:"trainingSegmentResults,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DynamicSegmentResults") 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. "DynamicSegmentResults") 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 *LanguageLabsAidaTrustRecitationProtoStreamRecitationResult) MarshalJSON() ([]byte, error) { + type NoMethod LanguageLabsAidaTrustRecitationProtoStreamRecitationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRecitationDocAttribution: The proto defines the +// attribution information for a document using whatever fields are most +// applicable for that document's datasource. For example, a Wikipedia +// article's attribution is in the form of its article title, a website +// is in the form of a URL, and a Github repo is in the form of a repo +// name. Next id: 28 +type LearningGenaiRecitationDocAttribution struct { + AmarnaId string `json:"amarnaId,omitempty"` + + ArxivId string `json:"arxivId,omitempty"` + + Author string `json:"author,omitempty"` + + Bibkey string `json:"bibkey,omitempty"` + + BookTitle string `json:"bookTitle,omitempty"` + + // BookVolumeId: The Oceanographers full-view books dataset uses a + // 'volume id' as the unique ID of a book. There is a deterministic + // function from a volume id to a URL under the books.google.com domain. + // Marked as 'optional' since a volume ID of zero is potentially + // possible and we want to distinguish that from the volume ID not being + // set. + BookVolumeId int64 `json:"bookVolumeId,omitempty,string"` + + ConversationId string `json:"conversationId,omitempty"` + + // Dataset: The dataset this document comes from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + Dataset string `json:"dataset,omitempty"` + + Filepath string `json:"filepath,omitempty"` + + GeminiId string `json:"geminiId,omitempty"` + + GnewsArticleTitle string `json:"gnewsArticleTitle,omitempty"` + + GoodallExampleId string `json:"goodallExampleId,omitempty"` + + // IsOptOut: Whether the document is opted out. + IsOptOut bool `json:"isOptOut,omitempty"` + + // IsPrompt: When true, this attribution came from the user's prompt. + IsPrompt bool `json:"isPrompt,omitempty"` + + LamdaExampleId string `json:"lamdaExampleId,omitempty"` + + License string `json:"license,omitempty"` + + MeenaConversationId string `json:"meenaConversationId,omitempty"` + + // NaturalLanguageCode: Natural (not programming) language of the + // document. Language code as defined by + // http://www.unicode.org/reports/tr35/#Identifiers and + // https://tools.ietf.org/html/bcp47. Currently applicable to full-view + // books. Use docinfo-util.h to set & read language fields. See go/iii. + NaturalLanguageCode string `json:"naturalLanguageCode,omitempty"` + + // NoAttribution: True if this doc has no attribution information + // available. We use an explicit field for this instead of just + // implicitly leaving all the DocAttribution fields blank to distinguish + // a case where a bug/oversight has left the attribution information + // empty vs when we really have no attribution information available. + NoAttribution bool `json:"noAttribution,omitempty"` + + PodcastUtteranceId string `json:"podcastUtteranceId,omitempty"` + + PublicationDate *GoogleTypeDate `json:"publicationDate,omitempty"` + + // QualityScoreExperimentOnly: This field is for opt-out experiment + // only, MUST never be used during actual production/serving. + QualityScoreExperimentOnly float64 `json:"qualityScoreExperimentOnly,omitempty"` + + // Repo: Github repository + Repo string `json:"repo,omitempty"` + + // Url: URL of a webdoc + Url string `json:"url,omitempty"` + + VolumeId string `json:"volumeId,omitempty"` + + // WikipediaArticleTitle: Wikipedia article title. The Wikipedia TFDS + // dataset includes article titles but not URLs. While a URL is to the + // best of our knowledge a deterministic function of the title, we store + // the original title to reflect the information in the original + // dataset. + WikipediaArticleTitle string `json:"wikipediaArticleTitle,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AmarnaId") 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. "AmarnaId") 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 *LearningGenaiRecitationDocAttribution) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationDocAttribution + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRecitationDocAttribution) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRecitationDocAttribution + var s1 struct { + QualityScoreExperimentOnly gensupport.JSONFloat64 `json:"qualityScoreExperimentOnly"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.QualityScoreExperimentOnly = float64(s1.QualityScoreExperimentOnly) + return nil +} + +// LearningGenaiRecitationRecitationResult: The recitation result for +// one input +type LearningGenaiRecitationRecitationResult struct { + DynamicSegmentResults []*LearningGenaiRecitationSegmentResult `json:"dynamicSegmentResults,omitempty"` + + // RecitationAction: The recitation action for one given input. When its + // segments contain different actions, the overall action will be + // returned in the precedence of BLOCK > CITE > NO_ACTION. + // + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + RecitationAction string `json:"recitationAction,omitempty"` + + TrainingSegmentResults []*LearningGenaiRecitationSegmentResult `json:"trainingSegmentResults,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "DynamicSegmentResults") 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. "DynamicSegmentResults") 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 *LearningGenaiRecitationRecitationResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationRecitationResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRecitationSegmentResult: The recitation result for each +// segment in a given input. +type LearningGenaiRecitationSegmentResult struct { + // AttributionDataset: The dataset the segment came from. + // + // Possible values: + // "DATASET_UNSPECIFIED" + // "WIKIPEDIA" - Wikipedia article Tensorflow datasets used by Tarzan + // and maintained by TFDS team. + // "WEBDOCS" - Webdocs that have been filtered from the docjoins by + // the Tarzan team for use in the Tarzan training set. + // "WEBDOCS_FINETUNE" + // "GITHUB_MIRROR" + // "BOOKS_FULL_VIEW" - 'Full view' books dataset maintained by + // Oceanographers team, meaning 'ok to view the book in full in all + // localities'. Largely the same as 'public domain', but with + // potentially subtle distinction. + // "BOOKS_PRIVATE" - Filtered private books used by ULM: + // http://google3/learning/multipod/pax/lm/params/ulm/tasks.py;l=123;rcl=494241309. + // which corresponds with + // /cns/mf-d/home/multipod-language-data/private_books/books_filtered_en_ + // resharded@50000 + // "GNEWS" - Google news dataset referenced in: + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_tasks.py;l=922;rcl=496534668 + // "ULM_DOCJOINS" - The docjoins data for ULM + // /cns/yo-d/home/multipod-language-data/docjoins/rs=6.3/20220728/100B_do + // cstructure_split/examples_en.tfrecord_lattice_05_score_01_HFV13@3929 + // "ULM_DOCJOINS_DEDUPED" + // "MEENA_FC" - Meena full conversations. + // http://google3/learning/brain/research/conversation/meena/t5/pretrain_mixtures.py;l=675;rcl=496583228 + // "PODCAST" + // "AQUA" + // "WEB_ASR" + // "BARD_GOLDEN" + // "COMMON_SENSE_REASONING" + // "MATH" + // "MATH_REASONING" + // "CLEAN_ARXIV" + // "LAMDA_FACTUALITY_E2E_QUERY_GENERATION" + // "LAMDA_FACTUALITY_E2E_RESPONSE_GENERATION" + // "MASSIVE_FORUM_THREAD_SCORED_BARD" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_200" + // "MASSIVE_FORUM_THREAD_SCORED_LONG_500" + // "DOCUMENT_CHUNKS" + // "MEENA_RESEARCH_PHASE_GOLDEN_MARKDOWN" + // "MEENA_RESEARCH_PHASE_GOOGLERS" + // "MEENA_RESPONSE_SAFETY_HUMAN_GEN" + // "MEENA_RESPONSE_SAFETY_SCHEMA_NO_BROADCAST" + // "MEENA_RESPONSE_SAFETY_V3_HUMAN_GEN2" + // "MEENA_RESPONSE_SAFETY_V3_SCHEMA_NO_BROADCAST" + // "LAMDA_FACTUALITY_TRIGGER" + // "LAMDA_SAFETY_V2_SCHEMA_NO_BROADCAST" + // "LAMDA_SSI_DISCRIMINATIVE" + // "ASSISTANT_PERSONALITY_SAFETY" + // "PODCAST_FINETUNE_DIALOG" + // "WORLD_QUERY_GENERATOR" + // "C4_JOINED_DOCJOINS" + // "HOL4_THEORIES" + // "HOL_LIGHT_THEORIES" + // "HOLSTEPS" + // "ISABELLE_STEP" + // "ISABELLE_THEORIES" + // "LEAN_MATHLIB_THEORIES" + // "LEAN_STEP" + // "MIZAR_THEORIES" + // "COQ_STEP" + // "COQ_THEORIES" + // "AMPS_KHAN" - Academic dataset of math text. + // http://google3/learning/brain/research/conversation/meena/seqio/mixtures/experimental/bard.py;rcl=500222380 + // "AMPS_MATHEMATICA" + // "CODEY_CODE" + // "CODE_QA_SE" + // "CODE_QA_SO" + // "CODE_QA_FT_FORMAT" + // "CODE_QA_FT_KNOWLEDGE" + // "CODE_QA_GITHUB_FILTERED_CODE" + // "BARD_PERSONALITY_GOLDEN" + // "ULM_DOCJOINS_WITH_URLS_EN" + // "ULM_DOCJOINS_WITH_URLS_I18N" + // "GOODALL_MTV5_GITHUB" - Datasets managed by the Goodall team: + // deepmind-goodall@google.com + // "GOODALL_MTV5_BOOKS" + // "GOODALL_MTV5_C4" + // "GOODALL_MTV5_WIKIPEDIA" + // "GOODALL_MW_TOP_100B" + // "GOODALL_MW_STACK_EXCHANGE" + // "GOODALL_MW_TOP_0_10B" + // "GOODALL_MW_TOP_10B_20B" + // "CODEY_NOTEBOOK_LM_PRETRAINING" - Datasets used by Codepoet + // "VERTEX_SAFE_FLAN" - Datasets used by Vertex + // "GITHUB_MIRROR_V1_0_1" + // "GITHUB_MIRROR_V2_1_0" + // "CMS_WIKIPEDIA_LANG_FILTERED" - Datasets used by Gemini Public data + // "CMS_STACKOVERFLOW_MULTILINGUAL" + // "CMS_STACKEXCHANGE" + // "PUBMED" + // "GEMINI_DOCJOINS_EN_TOP10B_GCC" - Public webdocs + // "GEMINI_DOCJOINS_EN_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_EN_TOP20B_TOP100B_GCC" + // "GEMINI_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP10B_TOP20B_GCC" + // "GEMINI_DOCJOINS_I18N_TOP20B_TOP100B_GCC" + // "SIMPLIFIED_HTML_V1_GCC" + // "GEMINI_DOCJOINS_TOXICITY_TAGGED_GCC" + // "CMS_GITHUB_V4" - Github + // "GITHUB_HTML_V4" + // "GITHUB_OTHER_V4" + // "GITHUB_LONG_TAIL_V4" + // "CMS_GITHUB_MULTIFILE_V4" + // "GITHUB_DIFFS_WITH_COMMIT_MESSAGE" + // "ULM_ARXIV" - Arxiv + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_ENONLY" - + // Others + // "NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_040623_LONG_DEDUP_NONENONLY" + // "QUORA" + // "PODCASTS_ROBOTSTXT" + // "COMBINED_REDDIT" + // "CANARIES_SHUFFLED" + // "CLM_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "TECHDOCS_DATA_SOURCE" + // "SCIENCE_PDF_70M_DOCS_FILTERED" + // "GEMINI_V1_CMS_WIKIPEDIA_LANG_FILTERED" - Gemini V1, order by + // precedence. Wikipedia + // "GEMINI_V1_WIKIPEDIA_DIFFS" + // "GEMINI_V1_DOCJOINS_EN_TOP10B_GCC_NODEDUP_050523" - Public webdocs + // "GEMINI_V1_DOCJOINS_EN_TOP10B_TOP20B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP20B_TOP100B_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_EN_TOP100B_ALL_INDEXED_GCC_NODEDUP_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP10B_TOP20B_GCC_050523" + // "GEMINI_V1_DOCJOINS_I18N_TOP20B_TOP100B_GCC_050523" + // "GEMINI_V1_SIMPLIFIED_HTML_V2_GCC" + // "GEMINI_V1_CMS_STACKOVERFLOW_MULTILINGUAL_V2" + // "GEMINI_V1_CMS_STACKEXCHANGE_DECONT" + // "GEMINI_V1_QUORA" + // "GEMINI_V1_COMBINED_REDDIT" + // "GEMINI_V1_DOCJOIN_100B_EN_TOXICITY_TAGGED_GCC_FIXED_TAGS" + // "GEMINI_V1_PUBMED" + // "GEMINI_V1_WEB_MATH_V2" + // "GEMINI_V1_CMS_GITHUB_DECONTAMINATED_V_7" - Github + // "GEMINI_V1_GITHUB_DIFF_WITH_COMMIT_MESSAGE_V2" + // "GEMINI_V1_GITHUB_HTML_CSS_XML_V4" + // "GEMINI_V1_GITHUB_OTHER_V4" + // "GEMINI_V1_GITHUB_LONG_TAIL_V4" + // "GEMINI_V1_GITHUB_JUPTYER_NOTEBOOKS_SSTABLE" + // "GEMINI_V1_ULM_ARXIV_SSTABLE" - ArXiv + // "GEMINI_V1_PODCASTS_ROBOTSTXT" - Citable misc + // "GEMINI_V1_SCIENCE_PDF_68M_HQ_DOCS_GCC" + // "GEMINI_V1_GITHUB_TECHDOCS_V2" + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_EN" - + // Non-public books + // "GEMINI_V1_NONPUB_COPYRIGHT_BOOKS_V2_70_CONF_LONG_DEDUP_NONEN" + // "GEMINI_V1_STEM_BOOKS_650K_TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_M3W_V2_FILTERED" - Other + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_WEBLI_EN_V4_350M_PREFIXED_FILTERED_IMAGE + // 2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_SCREENAI_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CULTURE_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_EN_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_CC3M_I18N_PREFIXED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // + // "GEMINI_V1_VQCOCA_1B_MULTIRES_OCR_NON_EN_PREFIXED_FILTERED_IMAGE2TEXT" + // "GEMINI_V1_VQCOCA_1B_MULTIRES_VTP_4F_VIDEO2TEXT_PREFIX" + // "GEMINI_V1_FORMAL_MATH_WITHOUT_HOLSTEPS_AND_MIZAR" + // "GEMINI_V1_TRANSLATE_DATAV2_ALLTIERS_GCC_MIX" + // "GEMINI_V1_CANARIES_SHUFFLED_DOCJOIN_EN_NONEN_CODE_ARXIV_TRANSLATE" + // "DUET_CLOUD_SECURITY_DOCS" - Duet AI finetune datasets, order by + // precedence. + // "DUET_GITHUB_CODE_SNIPPETS" + // "DUET_GITHUB_FILES" + // "DUET_GOBYEXAMPLE" + // "DUET_GOLANG_DOCS" + // "DUET_CLOUD_DOCS_TROUBLESHOOTING_TABLES" + // "DUET_DEVSITE_DOCS" + // "DUET_CLOUD_BLOG_POSTS" + // "DUET_CLOUD_PODCAST_EPISODES" + // "DUET_YOUTUBE_VIDEOS" + // "DUET_CLOUD_SKILLS_BOOST" + // "DUET_CLOUD_DOCS" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_GENERATED" + // "DUET_CLOUD_GITHUB_CODE_SNIPPETS_HANDWRITTEN" + // "DUET_GOOGLESQL_GENERATION" + // "DUET_CLOUD_IX_PROMPTS" + // "DUET_RAD" + // "BARD_ARCADE_GITHUB" - Bard ARCADE finetune dataset + // "MOBILE_ASSISTANT_MAGI_FILTERED_0825_373K" - Mobile assistant + // finetune datasets. + // "MOBILE_ASSISTANT_PALM24B_FILTERED_400K" + // "GENESIS_NEWS_INSIGHTS" - Genesis fine tuned datasets. + // "CLOUD_SECURITY_PRETRAINING" - Cloud Security fine tuned datasets. + // "CLOUD_SECURITY_FINETUNING" + // "LABS_AQA_DSCOUT" - LABS AQA fine-tune datasets. + // "LABS_AQA_TAILWIND" + // "LABS_AQA_DELEWARE" + // "GEMINI_MULTIMODAL_FT_URL" - Gemini multimodal instruction tune(IT) + // and fine tune(FT) datasets datasets. + // "GEMINI_MULTIMODAL_FT_YT" + // "GEMINI_MULTIMODAL_FT_SHUTTERSTOCK" + // "GEMINI_MULTIMODAL_FT_NONE" + // "GEMINI_MULTIMODAL_FT_OTHER" + // "GEMINI_MULTIMODAL_FT_INK" + // "GEMINI_MULTIMODAL_IT" + // "GEMINI_IT_SHUTTERSTOCK" - Gemini IT 1.2.7 datasets + // "GEMINI_IT_M3W" + // "GEMINI_IT_HEDGING" + // "GEMINI_IT_DSCOUT_FACTUALITY" + // "GEMINI_IT_AQUAMUSE" + // "GEMINI_IT_SHOTGUN" + // "GEMINI_IT_ACI_BENCH" + // "GEMINI_IT_SPIDER_FILTERED" + // "GEMINI_IT_TAB_SUM_BQ" + // "GEMINI_IT_QA_WITH_URL" + // "GEMINI_IT_CODE_INSTRUCT" + // "GEMINI_IT_MED_PALM" + // "GEMINI_IT_TASK_ORIENTED_DIALOG" + // "GEMINI_IT_NIMBUS_GROUNDING_TO_PROMPT" + // "GEMINI_IT_EITL_GEN" + // "GEMINI_IT_HITL_GEN" + // "GEMINI_IT_MECH" + // "GEMINI_IT_TABLE_GEN" + // "GEMINI_IT_NIMBUS_DECIBEL" + // "GEMIT_BRIDGE_SUFFIX_FT" - Gemit Bridge ULM FT dataset + // "GEMINI_IT_CLOUD_CODE_IF" - Gemini IT Cloud Build datasets. + // "GEMINI_IT_CLOUD_EUR_LEX_JSON" + // "GEMINI_IT_CLOUD_OASST" + // "GEMINI_IT_CLOUD_SELF_INSTRUCT" + // "GEMINI_IT_CLOUD_UCS_AQUAMUSE" + // "GEMINI_V2_CMS_WIKIPEDIA_LANG_FILTERED_GCC_PII" - Gemini V2 + // datasets + // "GEMINI_V2_WIKIPEDIA_DIFFS_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP10B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP10B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP10B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP20B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP20B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_NONAR + // TICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP20B_111323_WITHOUT_CJKT_STOP_ARTIC + // LES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP100B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP100B_211123_PII_FILTERED" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_NONA + // RTICLES_COMPLIANT" + // + // "GEMINI_V2_GEMINI_DOCJOINS_NONEN_TOP100B_111323_WITHOUT_CJKT_STOP_ARTI + // CLES_COMPLIANT" + // "GEMINI_V2_ENGLISH_ARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_ENGLISH_NONARTICLES_TOP500B_211123_PII_FILTERED" + // "GEMINI_V2_QUORA_COMPLIANT" + // "GEMINI_V2_FORUMS_V2_COMPLIANT" + // "GEMINI_V2_CMS_STACKOVERFLOW_MULTILINGUAL_V2_COMPLIANT" + // "GEMINI_V2_SIMPLIFIED_HTML_V2_CORRECT_FORMAT_COMPLIANT" + // "GEMINI_V2_GEMINI_DOCJOINS_TOXICITY_TAGGED_FIXED_TAGS_COMPLIANT" + // "GEMINI_V2_CODEWEB_V1_COMPLIANT" + // "GEMINI_V2_LEETCODE_GCC_PII" + // "GEMINI_V2_CODE_CONTESTS_COMPLIANT" + // + // "GEMINI_V2_CMS_GITHUB_MULTI_FILE_FOR_FIM_GEMBAGZ_FIXED_BYTES_LENGTHS" + // "GEMINI_V2_GITHUB_EVALED_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_NON_EVAL_HIGH_PRI_LANGUAGES_COMPLIANT" + // "GEMINI_V2_GITHUB_LOW_PRI_LANGUAGES_AND_CONFIGS_COMPLIANT" + // "GEMINI_V2_GITHUB_LONG_TAIL_AND_STRUCTURED_DATA_COMPLIANT" + // "GEMINI_V2_GITHUB_PYTHON_NOTEBOOKS_COMPLIANT" + // "GEMINI_V2_GITHUB_DIFFS_COMPLIANT" + // "GEMINI_V2_GITHUB_TECHDOCS_COMPLIANT" + // "GEMINI_V2_HIGH_QUALITY_CODE_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_SCIENCE_PDF_68M_HQ_DOCS_DEDUP_COMPLIANT_CLEAN_TEX" + // "GEMINI_V2_ARXIV_2023_COMPLIANT" + // "GEMINI_V2_FORMAL_COMPLIANT" + // "GEMINI_V2_CMS_STACKEXCHANGE_COMPLIANT" + // "GEMINI_V2_PUBMED_COMPLIANT" + // "GEMINI_V2_WEB_MATH_V3_COMPLIANT" + // "GEMINI_V2_SCIENCEWEB_V0_GCC_PII" + // "GEMINI_V2_WEB_POLYMATH_V1_COMPLIANT" + // "GEMINI_V2_MATH_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_BIOLOGY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_PHYSICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHEMISTRY_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MACHINE_LEARNING_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_QA_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_ECONOMICS_V2_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_MEDICAL_TARGETED_DATA_COMPLIANT2" + // "GEMINI_V2_CHESS_COMPLIANT" + // "GEMINI_V2_YOUTUBE_SCIENCE_V4_FILTERED_COMPLIANT" + // "GEMINI_V2_GOALDMINE_XL_GENERATED_PLUS_GT_NO_DM_MATH_COMPLIANT" + // + // "GEMINI_V2_FIRSTTIMES_SCIENCE_PDF_DEDUP_HQ_LENGTH_FILTERED_COMPLIANT" + // "GEMINI_V2_PODCASTS_COMPLIANT" + // "GEMINI_V2_EN_NONSCIENCE_PDF_DEDUP_46M_DOCS_COMPLIANT" + // + // "GEMINI_V2_NONPUB_COPYRIGHT_BOOKS_V3_70_CONF_082323_LONG_DEDUP_ENONLY_ + // COMPLIANT" + // + // "GEMINI_V2_STEM_COPYRIGHT_BOOKS_V3_111823_LONG_DEDUP_ENONLY_COMPLIANT" + // "GEMINI_V2_STEM_BOOKS_318K_TEXT_COMPLIANT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M3W_WITH_IMAGE_TOKENS_INSERTED_INTER + // LEAVED_COMPLIANT_PII_FILTERED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_T2I_TEXT_TO_IMAGE_C + // OMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_IMAGE_TO_TEXT_COMPLIANT + // _PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_EN_V4_350M_IMAGE_TO_TEXT_COMPL + // IANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_I18N_680M_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_DOC_IMAGE_TO_TEXT_COMPLIANT_ + // PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_FULL_HTML_75M_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SCREENAI_V1_1_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_OCR_DOC_240M_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SHUTTERSTOCK_VIDEO_VIDEO_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_M4W_INTERLEAVED_COMPLIANT_PII_FILTER + // ED_SOFT" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CULTURE_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_DETECTION_IMAGE_TO_TEXT_COMPLI + // ANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WEBLI_ALT_TEXT_NONEN_500M_IMAGE_TO_T + // EXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_SPATIAL_AWARE_PALI_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_3D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_EN_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TABLE2MD_V2_NON_EN_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_3D_DOC_IMAGE_TO_TEXT_COMPLIA + // NT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CC3M_IMAGE_TO_TEXT_COMPLIANT_PII_FIL + // TERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_INFOGRAPHICS_LARGE_WEB_IMAGE_TO_TEXT + // _COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_BIORXIV_IMAGE_TO_TEXT_COMPLIANT_PII_ + // FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_IM2SOL_PROBLEM_AND_SOLUTIO + // N_IMAGE_TO_TEXT_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PLOT2TABLE_V2_IMAGE_TO_TEXT_COMPLIAN + // T_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_TIKZ_DERENDERING_MERGED_IMAGE_TO_TEX + // T_COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_CLOUDAI_TABLE2HTML_2D_IMAGE_TO_TEXT_ + // COMPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_WIKIPEDIA_EQUATIONS_IMAGE_TO_TEXT_CO + // MPLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_PHOTOMATH_EQ2LATEX_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // + // "GEMINI_V2_CACHED_VQCOCA_MMFT_17T_ARXIV_EQUATIONS_V2_IMAGE_TO_TEXT_COM + // PLIANT_PII_FILTERED" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_ASR_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_SUP_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_TTS_4M_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_ENUS_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_PODIOSET_INTERLEAVE_I18N_GEMBAGZ_V2_COMPLIANT" + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_ENUS_GEMBAGZ_V2_COMPLIANT + // " + // + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_SCIENCE_I18N_GEMBAGZ_V2_COMPLIANT + // " + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_1P5M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_USM2B_MLPV5_YT_INTERLEAVE_HEAD_4M_GEMBAGZ_V2_COMPLIANT" + // "GEMINI_V2_CLM_TRANSLATE_DATAV3_WEB_UNWMT_INCR_MIX" + // "GEMINI_V2_NTL_NTLV4A_MONOLINGUAL_DEDUP_N5" + // "GEMINI_V2_NTL_STT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_TRANSLIT_BILEX_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_BT_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_NTL_SYN_FT_FIXED_TRANSLATE_DEDUP_N5" + // "GEMINI_V2_CANARIES_SHUFFLED_COMPLIANT" + AttributionDataset string `json:"attributionDataset,omitempty"` + + // DisplayAttributionMessage: human-friendly string that contains + // information from doc_attribution which could be shown by clients + DisplayAttributionMessage string `json:"displayAttributionMessage,omitempty"` + + // DocAttribution: populated when recitation_action == CITE + DocAttribution *LearningGenaiRecitationDocAttribution `json:"docAttribution,omitempty"` + + // DocOccurrences: number of documents that contained this segment + DocOccurrences int64 `json:"docOccurrences,omitempty"` + + EndIndex int64 `json:"endIndex,omitempty"` + + // RawText: The raw text in the given input that is corresponding to the + // segment. It will be available only when 'return_segment_raw_text' is + // enabled in the request options. + RawText string `json:"rawText,omitempty"` + + // Possible values: + // "ACTION_UNSPECIFIED" + // "CITE" - indicate that attribution must be shown for a Segment + // "BLOCK" - indicate that a Segment should be blocked from being used + // "NO_ACTION" - for tagging high-frequency code snippets + // "EXEMPT_FOUND_IN_PROMPT" - The recitation was found in prompt and + // is exempted from overall results + SegmentRecitationAction string `json:"segmentRecitationAction,omitempty"` + + // StartIndex: The segment boundary start (inclusive) and end index + // (exclusive) in the given text. In the streaming RPC, the indexes + // always start from the beginning of the first text in the entire + // stream. The indexes are measured in UTF-16 code units. + StartIndex int64 `json:"startIndex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AttributionDataset") + // 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. "AttributionDataset") 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 *LearningGenaiRecitationSegmentResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRecitationSegmentResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootCalculationType: The type used for final weights +// calculation. +type LearningGenaiRootCalculationType struct { + // Possible values: + // "TYPE_UNKNOWN" - Unknown scorer type. + // "TYPE_SAFE" - Safety scorer. + // "TYPE_POLICY" - Policy scorer. + // "TYPE_GENERATION" - Generation scorer. + ScoreType string `json:"scoreType,omitempty"` + + Weights float64 `json:"weights,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScoreType") 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. "ScoreType") 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 *LearningGenaiRootCalculationType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootCalculationType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootCalculationType) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootCalculationType + var s1 struct { + Weights gensupport.JSONFloat64 `json:"weights"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Weights = float64(s1.Weights) + return nil +} + +type LearningGenaiRootClassifierOutput struct { + // RuleOutput: If set, this is the output of the first matching rule. + RuleOutput *LearningGenaiRootRuleOutput `json:"ruleOutput,omitempty"` + + // RuleOutputs: outputs of all matching rule. + RuleOutputs []*LearningGenaiRootRuleOutput `json:"ruleOutputs,omitempty"` + + // State: The results of data_providers and metrics. + State *LearningGenaiRootClassifierState `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RuleOutput") 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. "RuleOutput") 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 *LearningGenaiRootClassifierOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootClassifierOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootClassifierOutputSummary struct { + Metrics []*LearningGenaiRootMetricOutput `json:"metrics,omitempty"` + + // RuleOutput: Output of the first matching rule. + RuleOutput *LearningGenaiRootRuleOutput `json:"ruleOutput,omitempty"` + + // RuleOutputs: outputs of all matching rule. + RuleOutputs []*LearningGenaiRootRuleOutput `json:"ruleOutputs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Metrics") 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. "Metrics") 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 *LearningGenaiRootClassifierOutputSummary) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootClassifierOutputSummary + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootClassifierState: DataProviderOutput and MetricOutput +// can be saved between calls to the Classifier framework. For instance, +// you can run the query classifier, get outputs from those metrics, +// then use them in a result classifier as well. Example rule based on +// this idea: and_rules { rule { metric_name: 'query_safesearch_v2' ... +// } rule { metric_name: 'response_safesearch_v2' ... } } +type LearningGenaiRootClassifierState struct { + DataProviderOutput []*LearningGenaiRootDataProviderOutput `json:"dataProviderOutput,omitempty"` + + MetricOutput []*LearningGenaiRootMetricOutput `json:"metricOutput,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataProviderOutput") + // 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. "DataProviderOutput") 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 *LearningGenaiRootClassifierState) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootClassifierState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootDataProviderOutput struct { + Name string `json:"name,omitempty"` + + // Status: If set, this DataProvider failed and this is the error + // message. + Status *UtilStatusProto `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LearningGenaiRootDataProviderOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootDataProviderOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootFilterMetadata struct { + // Confidence: Filter confidence. + // + // Possible values: + // "FILTER_CONFIDENCE_UNKNOWN" + // "FILTER_CONFIDENCE_VERY_LOW" + // "FILTER_CONFIDENCE_LOW" + // "FILTER_CONFIDENCE_MEDIUM" + // "FILTER_CONFIDENCE_HIGH" + // "FILTER_CONFIDENCE_VERY_HIGH" + Confidence string `json:"confidence,omitempty"` + + // DebugInfo: Debug info for the message. + DebugInfo *LearningGenaiRootFilterMetadataFilterDebugInfo `json:"debugInfo,omitempty"` + + // Fallback: A fallback message chosen by the applied filter. + Fallback string `json:"fallback,omitempty"` + + // Info: Additional info for the filter. + Info string `json:"info,omitempty"` + + // Name: Name of the filter that triggered. + Name string `json:"name,omitempty"` + + // Reason: Filter reason. + // + // Possible values: + // "FILTER_REASON_UNKNOWN" - Unknown filter reason. + // "FILTER_REASON_NOT_FILTERED" - Input not filtered. + // "FILTER_REASON_SENSITIVE" - Sensitive content. + // "FILTER_REASON_RECITATION" - Recited content. + // "FILTER_REASON_LANGUAGE" - Language filtering + // "FILTER_REASON_TAKEDOWN" - Takedown policy + // "FILTER_REASON_CLASSIFIER" - Classifier Module + // "FILTER_REASON_EMPTY_RESPONSE" - Empty response message. + // "FILTER_REASON_SIMILARITY_TAKEDOWN" - Similarity takedown. + // "FILTER_REASON_UNSAFE" - Unsafe responses from scorers. + // "FILTER_REASON_PAIRWISE_CLASSIFIER" - Pairwise classifier. + // "FILTER_REASON_CODEY" - Codey Filter. + // "FILTER_REASON_URL" - URLs Filter. + // "FILTER_REASON_EMAIL" - Emails Filter. + // "FILTER_REASON_SAFETY_CAT" - SafetyCat filter. + // "FILTER_REASON_REQUEST_RESPONSE_TAKEDOWN" - Request Response + // takedown. + // "FILTER_REASON_RAI_PQC" - RAI Filter. + // "FILTER_REASON_ATLAS" - Atlas specific topic filter + // "FILTER_REASON_RAI_CSAM" - RAI Filter. + // "FILTER_REASON_RAI_FRINGE" - RAI Filter. + // "FILTER_REASON_RAI_SPII" - RAI Filter. + // "FILTER_REASON_RAI_IMAGE_VIOLENCE" - RAI Filter + // "FILTER_REASON_RAI_IMAGE_PORN" - RAI Filter + // "FILTER_REASON_RAI_IMAGE_CSAM" - RAI Filter + // "FILTER_REASON_RAI_IMAGE_PEDO" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_VIOLENCE" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_PORN" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_CSAM" - RAI Filter + // "FILTER_REASON_RAI_VIDEO_FRAME_PEDO" - RAI Filter + // "FILTER_REASON_RAI_CONTEXTUAL_DANGEROUS" - RAI Filter + // "FILTER_REASON_RAI_SAFETYCAT" - SafetyCat. + // "FILTER_REASON_TOXICITY" - Toxic content. + // "FILTER_REASON_ATLAS_PRICING" - Atlas specific topic filter for + // pricing questions. + // "FILTER_REASON_ATLAS_BILLING" - Atlas specific topic filter for + // billing questions. + // "FILTER_REASON_ATLAS_NON_ENGLISH_QUESTION" - Atlas specific topic + // filter for non english questions. + // "FILTER_REASON_ATLAS_NOT_RELATED_TO_GCP" - Atlas specific topic + // filter for non GCP questions. + // "FILTER_REASON_ATLAS_AWS_AZURE_RELATED" - Atlas specific topic + // filter aws/azure related questions. + Reason string `json:"reason,omitempty"` + + // Text: The input query or generated response that is getting filtered. + Text string `json:"text,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Confidence") 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. "Confidence") 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 *LearningGenaiRootFilterMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootFilterMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootFilterMetadataFilterDebugInfo struct { + ClassifierOutput *LearningGenaiRootClassifierOutput `json:"classifierOutput,omitempty"` + + DefaultMetadata string `json:"defaultMetadata,omitempty"` + + LanguageFilterResult *LearningServingLlmLanguageFilterResult `json:"languageFilterResult,omitempty"` + + // RaiOutput: Safety filter output information for LLM Root RAI harm + // check. + RaiOutput *LearningGenaiRootRAIOutput `json:"raiOutput,omitempty"` + + RaiResult *CloudAiNlLlmProtoServiceRaiResult `json:"raiResult,omitempty"` + + RaiSignal *CloudAiNlLlmProtoServiceRaiSignal `json:"raiSignal,omitempty"` + + StreamRecitationResult *LanguageLabsAidaTrustRecitationProtoStreamRecitationResult `json:"streamRecitationResult,omitempty"` + + TakedownResult *LearningGenaiRootTakedownResult `json:"takedownResult,omitempty"` + + ToxicityResult *LearningGenaiRootToxicityResult `json:"toxicityResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClassifierOutput") 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. "ClassifierOutput") 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 *LearningGenaiRootFilterMetadataFilterDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootFilterMetadataFilterDebugInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootHarm struct { + // ContextualDangerous: Please do not use, this is still under + // development. + ContextualDangerous bool `json:"contextualDangerous,omitempty"` + + Csam bool `json:"csam,omitempty"` + + Fringe bool `json:"fringe,omitempty"` + + GrailImageHarmType *LearningGenaiRootHarmGrailImageHarmType `json:"grailImageHarmType,omitempty"` + + GrailTextHarmType *LearningGenaiRootHarmGrailTextHarmType `json:"grailTextHarmType,omitempty"` + + ImageCsam bool `json:"imageCsam,omitempty"` + + ImagePedo bool `json:"imagePedo,omitempty"` + + // ImagePorn: Image signals + ImagePorn bool `json:"imagePorn,omitempty"` + + ImageViolence bool `json:"imageViolence,omitempty"` + + Pqc bool `json:"pqc,omitempty"` + + Safetycat *LearningGenaiRootHarmSafetyCatCategories `json:"safetycat,omitempty"` + + Spii *LearningGenaiRootHarmSpiiFilter `json:"spii,omitempty"` + + Threshold float64 `json:"threshold,omitempty"` + + VideoFrameCsam bool `json:"videoFrameCsam,omitempty"` + + VideoFramePedo bool `json:"videoFramePedo,omitempty"` + + // VideoFramePorn: Video frame signals + VideoFramePorn bool `json:"videoFramePorn,omitempty"` + + VideoFrameViolence bool `json:"videoFrameViolence,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ContextualDangerous") + // 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. "ContextualDangerous") 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 *LearningGenaiRootHarm) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarm + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootHarm) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootHarm + var s1 struct { + Threshold gensupport.JSONFloat64 `json:"threshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Threshold = float64(s1.Threshold) + return nil +} + +// LearningGenaiRootHarmGrailImageHarmType: Harm type for images +type LearningGenaiRootHarmGrailImageHarmType struct { + // Possible values: + // "IMAGE_HARM_TYPE_UNSPECIFIED" + // "IMAGE_HARM_TYPE_PORN" + // "IMAGE_HARM_TYPE_VIOLENCE" + // "IMAGE_HARM_TYPE_CSAI" + // "IMAGE_HARM_TYPE_PEDO" + // "IMAGE_HARM_TYPE_MINORS" + // "IMAGE_HARM_TYPE_DANGEROUS" + // "IMAGE_HARM_TYPE_MEDICAL" + // "IMAGE_HARM_TYPE_RACY" + // "IMAGE_HARM_TYPE_OBSCENE" + // "IMAGE_HARM_TYPE_MINOR_PRESENCE" + // "IMAGE_HARM_TYPE_GENERATIVE_MINOR_PRESENCE" + // "IMAGE_HARM_TYPE_GENERATIVE_REALISTIC_VISIBLE_FACE" + ImageHarmType []string `json:"imageHarmType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ImageHarmType") 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. "ImageHarmType") 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 *LearningGenaiRootHarmGrailImageHarmType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmGrailImageHarmType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootHarmGrailTextHarmType: Harm type for text +type LearningGenaiRootHarmGrailTextHarmType struct { + // Possible values: + // "HARM_TYPE_UNSPECIFIED" + // "HARM_TYPE_HATE" + // "HARM_TYPE_TOXICITY" + // "HARM_TYPE_VIOLENCE" + // "HARM_TYPE_CSAI" + // "HARM_TYPE_SEXUAL" + // "HARM_TYPE_FRINGE" + // "HARM_TYPE_POLITICAL" + // "HARM_TYPE_MEMORIZATION" + // "HARM_TYPE_SPII" + // "HARM_TYPE_NEW_DANGEROUS" - New definition of dangerous. + // "HARM_TYPE_MEDICAL" + // "HARM_TYPE_HARASSMENT" + HarmType []string `json:"harmType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "HarmType") 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. "HarmType") 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 *LearningGenaiRootHarmGrailTextHarmType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmGrailTextHarmType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootHarmSafetyCatCategories struct { + // Possible values: + // "SAFETYCAT_CATEGORY_UNSPECIFIED" + // "TOXICITY" - SafetyCat categories. + // "OBSCENE" + // "SEXUAL" + // "INSULT" + // "IDENTITY_HATE" + // "DEATH_HARM_TRAGEDY" + // "VIOLENCE_ABUSE" + // "FIREARMS_WEAPONS" + // "PUBLIC_SAFETY" + // "HEALTH" + // "RELIGION_BELIEF" + // "DRUGS" + // "WAR_CONFLICT" + // "POLITICS" + // "FINANCE" + // "LEGAL" + // "DANGEROUS" - Following categories are only supported in + // SAFETY_CAT_TEXT_V3_PAX model + // "DANGEROUS_SEVERITY" + // "HARASSMENT_SEVERITY" + // "HATE_SEVERITY" + // "SEXUAL_SEVERITY" + Categories []string `json:"categories,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") 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. "Categories") 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 *LearningGenaiRootHarmSafetyCatCategories) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmSafetyCatCategories + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootHarmSpiiFilter struct { + UsBankRoutingMicr bool `json:"usBankRoutingMicr,omitempty"` + + UsEmployerIdentificationNumber bool `json:"usEmployerIdentificationNumber,omitempty"` + + UsSocialSecurityNumber bool `json:"usSocialSecurityNumber,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UsBankRoutingMicr") + // 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. "UsBankRoutingMicr") 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 *LearningGenaiRootHarmSpiiFilter) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootHarmSpiiFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootInternalMetadata struct { + ScoredTokens []*LearningGenaiRootScoredToken `json:"scoredTokens,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScoredTokens") 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. "ScoredTokens") 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 *LearningGenaiRootInternalMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootInternalMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootMetricOutput struct { + Debug string `json:"debug,omitempty"` + + // Name: Name of the metric. + Name string `json:"name,omitempty"` + + NumericValue float64 `json:"numericValue,omitempty"` + + Status *UtilStatusProto `json:"status,omitempty"` + + StringValue string `json:"stringValue,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Debug") 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. "Debug") 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 *LearningGenaiRootMetricOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootMetricOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootMetricOutput) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootMetricOutput + var s1 struct { + NumericValue gensupport.JSONFloat64 `json:"numericValue"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.NumericValue = float64(s1.NumericValue) + return nil +} + +// LearningGenaiRootRAIOutput: This is per harm. +type LearningGenaiRootRAIOutput struct { + Allowed bool `json:"allowed,omitempty"` + + Harm *LearningGenaiRootHarm `json:"harm,omitempty"` + + Name string `json:"name,omitempty"` + + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootRAIOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRAIOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootRAIOutput) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootRAIOutput + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +type LearningGenaiRootRegexTakedownResult struct { + // Allowed: False when query or response should be taken down due to + // match with a blocked regex, true otherwise. + Allowed bool `json:"allowed,omitempty"` + + // TakedownRegex: Regex used to decide that query or response should be + // taken down. Empty when query or response is kept. + TakedownRegex string `json:"takedownRegex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootRegexTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRegexTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRequestResponseTakedownResult struct { + // Allowed: False when response has to be taken down per above config. + Allowed bool `json:"allowed,omitempty"` + + // RequestTakedownRegex: Regex used to match the request. + RequestTakedownRegex string `json:"requestTakedownRegex,omitempty"` + + // ResponseTakedownRegex: Regex used to decide that response should be + // taken down. Empty when response is kept. + ResponseTakedownRegex string `json:"responseTakedownRegex,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootRequestResponseTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRequestResponseTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootRoutingDecision: Holds the final routing decision, +// by storing the model_config_id. And individual scores each model got. +type LearningGenaiRootRoutingDecision struct { + Metadata *LearningGenaiRootRoutingDecisionMetadata `json:"metadata,omitempty"` + + // ModelConfigId: The selected model to route traffic to. + ModelConfigId string `json:"modelConfigId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Metadata") 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. "Metadata") 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 *LearningGenaiRootRoutingDecision) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecision + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootRoutingDecisionMetadata: Debug metadata about the +// routing decision. +type LearningGenaiRootRoutingDecisionMetadata struct { + ScoreBasedRoutingMetadata *LearningGenaiRootRoutingDecisionMetadataScoreBased `json:"scoreBasedRoutingMetadata,omitempty"` + + TokenLengthBasedRoutingMetadata *LearningGenaiRootRoutingDecisionMetadataTokenLengthBased `json:"tokenLengthBasedRoutingMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ScoreBasedRoutingMetadata") 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. + // "ScoreBasedRoutingMetadata") 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 *LearningGenaiRootRoutingDecisionMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootRoutingDecisionMetadataScoreBased: If we are routing +// using scored based configuration, then the metadata about that is +// available in this proto. +type LearningGenaiRootRoutingDecisionMetadataScoreBased struct { + // MatchedRule: The rule that was matched. + MatchedRule *LearningGenaiRootScoreBasedRoutingConfigRule `json:"matchedRule,omitempty"` + + // Score: The score that was generated by the router i.e. the model. + Score *LearningGenaiRootScore `json:"score,omitempty"` + + // UsedDefaultFallback: No rules were matched & therefore used the + // default fallback. + UsedDefaultFallback bool `json:"usedDefaultFallback,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchedRule") 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. "MatchedRule") 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 *LearningGenaiRootRoutingDecisionMetadataScoreBased) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataScoreBased + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRoutingDecisionMetadataTokenLengthBased struct { + ModelInputTokenMetadata []*LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata `json:"modelInputTokenMetadata,omitempty"` + + ModelMaxTokenMetadata []*LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata `json:"modelMaxTokenMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ModelInputTokenMetadata") 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. "ModelInputTokenMetadata") + // 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 *LearningGenaiRootRoutingDecisionMetadataTokenLengthBased) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataTokenLengthBased + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata struct { + // ComputedInputTokenLength: The length computed by backends using the + // formatter & tokenizer specific to the model + ComputedInputTokenLength int64 `json:"computedInputTokenLength,omitempty"` + + ModelId string `json:"modelId,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ComputedInputTokenLength") 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. "ComputedInputTokenLength") + // 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 *LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelInputTokenMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata struct { + MaxNumInputTokens int64 `json:"maxNumInputTokens,omitempty"` + + MaxNumOutputTokens int64 `json:"maxNumOutputTokens,omitempty"` + + ModelId string `json:"modelId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaxNumInputTokens") + // 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. "MaxNumInputTokens") 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 *LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRoutingDecisionMetadataTokenLengthBasedModelMaxTokenMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootRuleOutput struct { + // Possible values: + // "NO_MATCH" - This rule was not matched. When used in a + // ClassifierOutput, this means that no rules were matched. + // "MATCH" - This is a generic "match" message, indicating that a rule + // was triggered. Usually you would use this for a categorization + // classifier. + Decision string `json:"decision,omitempty"` + + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Decision") 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. "Decision") 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 *LearningGenaiRootRuleOutput) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootRuleOutput + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootScore struct { + CalculationType *LearningGenaiRootCalculationType `json:"calculationType,omitempty"` + + // InternalMetadata: The internal_metadata is intended to be used by + // internal processors and will be cleared before returns. + InternalMetadata *LearningGenaiRootInternalMetadata `json:"internalMetadata,omitempty"` + + ThresholdType *LearningGenaiRootThresholdType `json:"thresholdType,omitempty"` + + // TokensAndLogprobPerDecodingStep: Top candidate tokens and log + // probabilities at each decoding step. + TokensAndLogprobPerDecodingStep *LearningGenaiRootTokensAndLogProbPerDecodingStep `json:"tokensAndLogprobPerDecodingStep,omitempty"` + + Value float64 `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CalculationType") 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. "CalculationType") 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 *LearningGenaiRootScore) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScore + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootScore) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootScore + var s1 struct { + Value gensupport.JSONFloat64 `json:"value"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Value = float64(s1.Value) + return nil +} + +type LearningGenaiRootScoreBasedRoutingConfigRule struct { + // EqualOrGreaterThan: NOTE: Hardest examples have smaller values in + // their routing scores. + EqualOrGreaterThan *LearningGenaiRootScore `json:"equalOrGreaterThan,omitempty"` + + LessThan *LearningGenaiRootScore `json:"lessThan,omitempty"` + + // ModelConfigId: This model_config_id points to ModelConfig::id which + // allows us to find the ModelConfig to route to. This is part of the + // banks specified in the ModelBankConfig. + ModelConfigId string `json:"modelConfigId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EqualOrGreaterThan") + // 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. "EqualOrGreaterThan") 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 *LearningGenaiRootScoreBasedRoutingConfigRule) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScoreBasedRoutingConfigRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootScoredSimilarityTakedownPhrase: Proto containing the +// results from the Universal Sentence Encoder / Other models +type LearningGenaiRootScoredSimilarityTakedownPhrase struct { + Phrase *LearningGenaiRootSimilarityTakedownPhrase `json:"phrase,omitempty"` + + SimilarityScore float64 `json:"similarityScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Phrase") 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. "Phrase") 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 *LearningGenaiRootScoredSimilarityTakedownPhrase) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScoredSimilarityTakedownPhrase + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootScoredSimilarityTakedownPhrase) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootScoredSimilarityTakedownPhrase + var s1 struct { + SimilarityScore gensupport.JSONFloat64 `json:"similarityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.SimilarityScore = float64(s1.SimilarityScore) + return nil +} + +// LearningGenaiRootScoredToken: A token with its own score. +type LearningGenaiRootScoredToken struct { + // EndTokenScore: Each end_token_score is a logprob for how well the + // completion would end at a particular token. See + // http://google3/labs/language/aida/config/proto/model_config.proto;l=376;rcl=573039459 + EndTokenScore float64 `json:"endTokenScore,omitempty"` + + // Score: Each score is the logprob for the token in model response. + Score float64 `json:"score,omitempty"` + + Token string `json:"token,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTokenScore") 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. "EndTokenScore") 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 *LearningGenaiRootScoredToken) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootScoredToken + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootScoredToken) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootScoredToken + var s1 struct { + EndTokenScore gensupport.JSONFloat64 `json:"endTokenScore"` + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.EndTokenScore = float64(s1.EndTokenScore) + s.Score = float64(s1.Score) + return nil +} + +// LearningGenaiRootSimilarityTakedownPhrase: Each +// SimilarityTakedownPhrase treats a logical group of blocked and +// allowed phrases together along with a corresponding punt If the +// closest matching response is of the allowed type, we allow the +// response If the closest matching response is of the blocked type, we +// block the response. eg: Blocked phrase - "All lives matter" +type LearningGenaiRootSimilarityTakedownPhrase struct { + BlockedPhrase string `json:"blockedPhrase,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BlockedPhrase") 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. "BlockedPhrase") 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 *LearningGenaiRootSimilarityTakedownPhrase) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootSimilarityTakedownPhrase + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootSimilarityTakedownResult struct { + // Allowed: False when query or response should be taken down by any of + // the takedown rules, true otherwise. + Allowed bool `json:"allowed,omitempty"` + + // ScoredPhrases: List of similar phrases with score. Set only if + // allowed=false. + ScoredPhrases []*LearningGenaiRootScoredSimilarityTakedownPhrase `json:"scoredPhrases,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootSimilarityTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootSimilarityTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type LearningGenaiRootTakedownResult struct { + // Allowed: False when query or response should be taken down by any of + // the takedown rules, true otherwise. + Allowed bool `json:"allowed,omitempty"` + + RegexTakedownResult *LearningGenaiRootRegexTakedownResult `json:"regexTakedownResult,omitempty"` + + RequestResponseTakedownResult *LearningGenaiRootRequestResponseTakedownResult `json:"requestResponseTakedownResult,omitempty"` + + SimilarityTakedownResult *LearningGenaiRootSimilarityTakedownResult `json:"similarityTakedownResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootTakedownResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTakedownResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootThresholdType: The type of score that bundled with a +// threshold, and will not be attending the final score calculation. How +// each score type uses the threshold can be implementation details. +type LearningGenaiRootThresholdType struct { + // Possible values: + // "TYPE_UNKNOWN" - Unknown scorer type. + // "TYPE_SAFE" - Safety scorer. + // "TYPE_POLICY" - Policy scorer. + // "TYPE_GENERATION" - Generation scorer. + ScoreType string `json:"scoreType,omitempty"` + + Threshold float64 `json:"threshold,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ScoreType") 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. "ScoreType") 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 *LearningGenaiRootThresholdType) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootThresholdType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootThresholdType) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootThresholdType + var s1 struct { + Threshold gensupport.JSONFloat64 `json:"threshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Threshold = float64(s1.Threshold) + return nil +} + +// LearningGenaiRootTokensAndLogProbPerDecodingStep: Results of +// RandomSamplingParams::top_k_logprob_per_decoding_step. +type LearningGenaiRootTokensAndLogProbPerDecodingStep struct { + // ChosenCandidates: Length = total number of decoding steps. The chosen + // candidates may or may not be in top_candidates. + ChosenCandidates []*LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate `json:"chosenCandidates,omitempty"` + + // TopCandidates: Length = total number of decoding steps. + TopCandidates []*LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates `json:"topCandidates,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ChosenCandidates") 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. "ChosenCandidates") 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 *LearningGenaiRootTokensAndLogProbPerDecodingStep) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStep + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate: A +// candidate at a decoding step. +type LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate struct { + // LogProbability: The candidate's log probability. + LogProbability float64 `json:"logProbability,omitempty"` + + // Token: The candidate’s token value. + Token string `json:"token,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LogProbability") 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. "LogProbability") 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 *LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate + var s1 struct { + LogProbability gensupport.JSONFloat64 `json:"logProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LogProbability = float64(s1.LogProbability) + return nil +} + +// LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates: +// Candidates with top log probabilities at each decoding step. +type LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates struct { + // Candidates: Sorted by log probability in descending order. + Candidates []*LearningGenaiRootTokensAndLogProbPerDecodingStepCandidate `json:"candidates,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Candidates") 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. "Candidates") 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 *LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootTokensAndLogProbPerDecodingStepTopCandidates + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootToxicityResult: A model can generate multiple +// signals and this captures all the generated signals for a single +// message. +type LearningGenaiRootToxicityResult struct { + Signals []*LearningGenaiRootToxicitySignal `json:"signals,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Signals") 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. "Signals") 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 *LearningGenaiRootToxicityResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootToxicityResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// LearningGenaiRootToxicitySignal: Proto to capture a signal generated +// by the toxicity model. +type LearningGenaiRootToxicitySignal struct { + Allowed bool `json:"allowed,omitempty"` + + // Possible values: + // "LABEL_UNSPECIFIED" - Default label. + // "NOT_SENSITIVE" - Input is not sensitive. + // "SENSITIVE" - Input is sensitive. + // "ACCIDENTS_DISASTERS" - Input is related to accidents or disasters. + // "ADULT" - Input contains adult content. + // "COMPUTER_SECURITY" - Input is related to computer security. + // "CONTROVERSIAL_SOCIAL_ISSUES" - Input contains controversial social + // issues. + // "DEATH_TRAGEDY" - Input is related to death tragedy. + // "DRUGS" - Input is related to drugs. + // "IDENTITY_ETHNICITY" - Input is related to identity or ethnicity. + // "FINANCIAL_HARDSHIP" - Input is related to financial hardship. + // "FIREARMS_WEAPONS" - Input is related to firearms or weapons. + // "HEALTH" - Input contains health related information. + // "INSULT" - Input may be an insult. + // "LEGAL" - Input is related to legal content. + // "MENTAL_HEALTH" - Input contains mental health related information. + // "POLITICS" - Input is related to politics. + // "RELIGION_BELIEFS" - Input is related to religions or beliefs. + // "SAFETY" - Input is related to safety. + // "SELF_HARM" - Input is related to self-harm. + // "SPECIAL_NEEDS" - Input is related to special needs. + // "TERRORISM" - Input is related to terrorism. + // "TOXIC" - Input is toxic. + // "TROUBLED_RELATIONSHIP" - Input is related to troubled + // relationships. + // "VIOLENCE_ABUSE" - Input contains content about violence or abuse. + // "VULGAR" - Input is vulgar. + // "WAR_CONFLICT" - Input is related to war and conflict. + Label string `json:"label,omitempty"` + + Score float64 `json:"score,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningGenaiRootToxicitySignal) MarshalJSON() ([]byte, error) { + type NoMethod LearningGenaiRootToxicitySignal + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningGenaiRootToxicitySignal) UnmarshalJSON(data []byte) error { + type NoMethod LearningGenaiRootToxicitySignal + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +type LearningServingLlmLanguageFilterResult struct { + // Allowed: False when query or response should be filtered out due to + // unsupported language. + Allowed bool `json:"allowed,omitempty"` + + // DetectedLanguage: Language of the query or response. + DetectedLanguage string `json:"detectedLanguage,omitempty"` + + // DetectedLanguageProbability: Probability of the language predicted as + // returned by LangID. + DetectedLanguageProbability float64 `json:"detectedLanguageProbability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Allowed") 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. "Allowed") 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 *LearningServingLlmLanguageFilterResult) MarshalJSON() ([]byte, error) { + type NoMethod LearningServingLlmLanguageFilterResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *LearningServingLlmLanguageFilterResult) UnmarshalJSON(data []byte) error { + type NoMethod LearningServingLlmLanguageFilterResult + var s1 struct { + DetectedLanguageProbability gensupport.JSONFloat64 `json:"detectedLanguageProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DetectedLanguageProbability = float64(s1.DetectedLanguageProbability) + return nil +} + +// LearningServingLlmMessageMetadata: LINT.IfChange This metadata +// contains additional information required for debugging. +type LearningServingLlmMessageMetadata struct { + // ClassifierSummary: Summary of classifier output. We attach this to + // all messages regardless of whether classification rules triggered or + // not. + ClassifierSummary *LearningGenaiRootClassifierOutputSummary `json:"classifierSummary,omitempty"` + + CurrentStreamTextLength int64 `json:"currentStreamTextLength,omitempty"` + + // Deleted: Whether the corresponding message has been deleted. + Deleted bool `json:"deleted,omitempty"` + + // FilterMeta: Metadata for filters that triggered. + FilterMeta []*LearningGenaiRootFilterMetadata `json:"filterMeta,omitempty"` + + // FinalMessageScore: This score is finally used for ranking the + // message. This will be same as the score present in `Message.score` + // field. + FinalMessageScore *LearningGenaiRootScore `json:"finalMessageScore,omitempty"` + + // FinishReason: NOT YET IMPLEMENTED. + // + // Possible values: + // "UNSPECIFIED" + // "RETURN" - Return all the tokens back. This typically implies no + // filtering or stop sequence was triggered. + // "STOP" - Finished due to provided stop sequence. + // "MAX_TOKENS" - Model has emitted the maximum number of tokens as + // specified by max_decoding_steps. + // "FILTER" - Finished due to triggering some post-processing filter. + FinishReason string `json:"finishReason,omitempty"` + + // IsFallback: Applies to Response message only. Indicates whether the + // message is a fallback and the response would have otherwise been + // empty. + IsFallback bool `json:"isFallback,omitempty"` + + // LangidResult: Result from nlp_saft DetectLanguage method. Currently + // the predicted language code and language probability is used. + LangidResult *NlpSaftLangIdResult `json:"langidResult,omitempty"` + + // Language: Detected language. + Language string `json:"language,omitempty"` + + // LmPrefix: The LM prefix used to generate this response. + LmPrefix string `json:"lmPrefix,omitempty"` + + // OriginalText: The original text generated by LLM. This is the raw + // output for debugging purposes. + OriginalText string `json:"originalText,omitempty"` + + // PerStreamDecodedTokenCount: NOT YET IMPLEMENTED. Applies to streaming + // only. Number of tokens decoded / emitted by the model as part of this + // stream. This may be different from token_count, which contains number + // of tokens returned in this response after any response rewriting / + // truncation. + PerStreamDecodedTokenCount int64 `json:"perStreamDecodedTokenCount,omitempty"` + + // RaiOutputs: Results of running RAI on the query or this response + // candidate. One output per rai_config. It will be populated regardless + // of whether the threshold is exceeded or not. + RaiOutputs []*LearningGenaiRootRAIOutput `json:"raiOutputs,omitempty"` + + // RecitationResult: Recitation Results. It will be populated as long as + // Recitation processing is enabled, regardless of recitation outcome. + RecitationResult *LearningGenaiRecitationRecitationResult `json:"recitationResult,omitempty"` + + // ReturnTokenCount: NOT YET IMPLEMENTED. Number of tokens returned as + // part of this candidate. + ReturnTokenCount int64 `json:"returnTokenCount,omitempty"` + + // Scores: All the different scores for a message are logged here. + Scores []*LearningGenaiRootScore `json:"scores,omitempty"` + + // StreamTerminated: Whether the response is terminated during streaming + // return. Only used for streaming requests. + StreamTerminated bool `json:"streamTerminated,omitempty"` + + // TotalDecodedTokenCount: NOT YET IMPLEMENTED. Aggregated number of + // total tokens decoded so far. For streaming, this is sum of all the + // tokens decoded so far i.e. aggregated count. + TotalDecodedTokenCount int64 `json:"totalDecodedTokenCount,omitempty"` + + // TranslatedUserPrompts: Translated user-prompt used for RAI post + // processing. This is for internal processing only. We will translate + // in pre-processor and pass the translated text to the post processor + // using this field. It will be empty if non of the signals requested + // need translation. + TranslatedUserPrompts []string `json:"translatedUserPrompts,omitempty"` + + // VertexRaiResult: The metadata from Vertex SafetyCat processors + VertexRaiResult *CloudAiNlLlmProtoServiceRaiResult `json:"vertexRaiResult,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClassifierSummary") + // 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. "ClassifierSummary") 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 *LearningServingLlmMessageMetadata) MarshalJSON() ([]byte, error) { + type NoMethod LearningServingLlmMessageMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLangIdLocalesResult struct { + // Predictions: List of locales in which the text would be considered + // acceptable. Sorted in descending order according to each locale's + // respective likelihood. For example, if a Portuguese text is + // acceptable in both Brazil and Portugal, but is more strongly + // associated with Brazil, then the predictions would be ["pt-BR", + // "pt-PT"], in that order. May be empty, indicating that the model did + // not predict any acceptable locales. + Predictions []*NlpSaftLangIdLocalesResultLocale `json:"predictions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Predictions") 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. "Predictions") 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 *NlpSaftLangIdLocalesResult) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLangIdLocalesResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLangIdLocalesResultLocale struct { + // LanguageCode: A BCP 47 language code that includes region + // information. For example, "pt-BR" or "pt-PT". This field will always + // be populated. + LanguageCode string `json:"languageCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LanguageCode") 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. "LanguageCode") 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 *NlpSaftLangIdLocalesResultLocale) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLangIdLocalesResultLocale + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLangIdResult struct { + // ModelVersion: The version of the model used to create these + // annotations. + // + // Possible values: + // "VERSION_UNSPECIFIED" + // "INDEXING_20181017" + // "INDEXING_20191206" + // "INDEXING_20200313" + // "INDEXING_20210618" + // "STANDARD_20220516" + ModelVersion string `json:"modelVersion,omitempty"` + + // Predictions: This field stores the n-best list of possible BCP 47 + // language code strings for a given input sorted in descending order + // according to each code's respective probability. + Predictions []*NlpSaftLanguageSpan `json:"predictions,omitempty"` + + // SpanPredictions: This field stores language predictions of subspans + // of the input, when available. Each LanguageSpanSequence is a sequence + // of LanguageSpans. A particular sequence of LanguageSpans has an + // associated probability, and need not necessarily cover the entire + // input. If no language could be predicted for any span, then this + // field may be empty. + SpanPredictions []*NlpSaftLanguageSpanSequence `json:"spanPredictions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ModelVersion") 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. "ModelVersion") 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 *NlpSaftLangIdResult) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLangIdResult + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type NlpSaftLanguageSpan struct { + End int64 `json:"end,omitempty"` + + // LanguageCode: A BCP 47 language code for this span. + LanguageCode string `json:"languageCode,omitempty"` + + // Locales: Optional field containing any information that was predicted + // about the specific locale(s) of the span. + Locales *NlpSaftLangIdLocalesResult `json:"locales,omitempty"` + + // Probability: A probability associated with this prediction. + Probability float64 `json:"probability,omitempty"` + + // Start: Start and end byte offsets, inclusive, within the given input + // string. A value of -1 implies that this field is not set. Both fields + // must either be set with a nonnegative value or both are unset. If + // both are unset then this LanguageSpan applies to the entire input. + Start int64 `json:"start,omitempty"` + + // ForceSendFields is a list of field names (e.g. "End") 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. "End") 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 *NlpSaftLanguageSpan) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLanguageSpan + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *NlpSaftLanguageSpan) UnmarshalJSON(data []byte) error { + type NoMethod NlpSaftLanguageSpan + var s1 struct { + Probability gensupport.JSONFloat64 `json:"probability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Probability = float64(s1.Probability) + return nil +} + +type NlpSaftLanguageSpanSequence struct { + // LanguageSpans: A sequence of LanguageSpan objects, each assigning a + // language to a subspan of the input. + LanguageSpans []*NlpSaftLanguageSpan `json:"languageSpans,omitempty"` + + // Probability: The probability of this sequence of LanguageSpans. + Probability float64 `json:"probability,omitempty"` + + // ForceSendFields is a list of field names (e.g. "LanguageSpans") 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. "LanguageSpans") 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 *NlpSaftLanguageSpanSequence) MarshalJSON() ([]byte, error) { + type NoMethod NlpSaftLanguageSpanSequence + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *NlpSaftLanguageSpanSequence) UnmarshalJSON(data []byte) error { + type NoMethod NlpSaftLanguageSpanSequence + var s1 struct { + Probability gensupport.JSONFloat64 `json:"probability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Probability = float64(s1.Probability) + return nil +} + +// Proto2BridgeMessageSet: This is proto2's version of MessageSet. +type Proto2BridgeMessageSet struct { +} + +// UtilStatusProto: Wire-format for a Status object +type UtilStatusProto struct { + // CanonicalCode: The canonical error code (see codes.proto) that most + // closely corresponds to this status. This may be missing, and in the + // common case of the generic space, it definitely will be. + CanonicalCode int64 `json:"canonicalCode,omitempty"` + + // Code: Numeric code drawn from the space specified below. Often, this + // is the canonical error space, and code is drawn from + // google3/util/task/codes.proto + Code int64 `json:"code,omitempty"` + + // Message: Detail message + Message string `json:"message,omitempty"` + + // MessageSet: message_set associates an arbitrary proto message with + // the status. + MessageSet *Proto2BridgeMessageSet `json:"messageSet,omitempty"` + + // Space: The following are usually only present when code != 0 Space to + // which this status belongs + Space string `json:"space,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CanonicalCode") 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. "CanonicalCode") 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 *UtilStatusProto) MarshalJSON() ([]byte, error) { + type NoMethod UtilStatusProto + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "aiplatform.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + 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 *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := 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.get" call. +// Exactly one of *GoogleCloudLocationLocation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudLocationLocation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudLocationLocation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudLocationLocation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) 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}/locations") + 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.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, 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 := &GoogleCloudLocationListLocationsResponse{ + 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 information about the supported locations for this service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "GoogleCloudLocationListLocationsResponse" + // }, + // "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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) 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.batchPredictionJobs.cancel": + +type ProjectsLocationsBatchPredictionJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a BatchPredictionJob. Starts asynchronous +// cancellation on the BatchPredictionJob. The server makes the best +// effort to cancel the job, but success is not guaranteed. Clients can +// use JobService.GetBatchPredictionJob or other methods to check +// whether the cancellation succeeded or whether the job completed +// despite cancellation. On a successful cancellation, the +// BatchPredictionJob is not deleted;instead its +// BatchPredictionJob.state is set to `CANCELLED`. Any files already +// outputted by the job are not deleted. +// +// - name: The name of the BatchPredictionJob to cancel. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ +// prediction_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest) *ProjectsLocationsBatchPredictionJobsCancelCall { + c := &ProjectsLocationsBatchPredictionJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest = googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCancelCall { + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCancelCall { + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest) + 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 += "?" + 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.batchPredictionJobs.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 *ProjectsLocationsBatchPredictionJobsCancelCall) 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": "Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any files already outputted by the job are not deleted.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.batchPredictionJobs.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BatchPredictionJob to cancel. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.create": + +type ProjectsLocationsBatchPredictionJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchpredictionjob *GoogleCloudAiplatformV1beta1BatchPredictionJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a BatchPredictionJob. A BatchPredictionJob once +// created will right away be attempted to start. +// +// - parent: The resource name of the Location to create the +// BatchPredictionJob in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Create(parent string, googlecloudaiplatformv1beta1batchpredictionjob *GoogleCloudAiplatformV1beta1BatchPredictionJob) *ProjectsLocationsBatchPredictionJobsCreateCall { + c := &ProjectsLocationsBatchPredictionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchpredictionjob = googlecloudaiplatformv1beta1batchpredictionjob + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCreateCall { + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCreateCall { + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchpredictionjob) + 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/{+parent}/batchPredictionJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.batchPredictionJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1BatchPredictionJob or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1BatchPredictionJob.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, 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 := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ + 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": "Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.batchPredictionJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to create the BatchPredictionJob in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/batchPredictionJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.delete": + +type ProjectsLocationsBatchPredictionJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a BatchPredictionJob. Can only be called on jobs that +// already finished. +// +// - name: The name of the BatchPredictionJob resource to be deleted. +// Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ +// prediction_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Delete(name string) *ProjectsLocationsBatchPredictionJobsDeleteCall { + c := &ProjectsLocationsBatchPredictionJobsDeleteCall{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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsDeleteCall { + 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsDeleteCall { + 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) 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.batchPredictionJobs.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 *ProjectsLocationsBatchPredictionJobsDeleteCall) 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": "Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.batchPredictionJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BatchPredictionJob resource to be deleted. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.get": + +type ProjectsLocationsBatchPredictionJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a BatchPredictionJob +// +// - name: The name of the BatchPredictionJob resource. Format: +// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ +// prediction_job}`. +func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *ProjectsLocationsBatchPredictionJobsGetCall { + c := &ProjectsLocationsBatchPredictionJobsGetCall{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 *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsGetCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsGetCall) 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.batchPredictionJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1BatchPredictionJob or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1BatchPredictionJob.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, 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 := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ + 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 a BatchPredictionJob", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.batchPredictionJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the BatchPredictionJob resource. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.batchPredictionJobs.list": + +type ProjectsLocationsBatchPredictionJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists BatchPredictionJobs in a Location. +// +// - parent: The resource name of the Location to list the +// BatchPredictionJobs from. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsBatchPredictionJobsService) List(parent string) *ProjectsLocationsBatchPredictionJobsListCall { + c := &ProjectsLocationsBatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `model_display_name` supports `=`, +// `!=` comparisons. * `state` supports `=`, `!=` comparisons. * +// `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. +// `create_time` must be in RFC 3339 format. * `labels` supports general +// map functions that is: `labels.key=value` - key:value equality +// `labels.key:* - key existence Some examples of using the filter are: +// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * +// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT +// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * +// `labels.keyA=valueA` * `labels.keyB:*` +func (c *ProjectsLocationsBatchPredictionJobsListCall) Filter(filter string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsBatchPredictionJobsListCall) PageSize(pageSize int64) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListBatchPredictionJobsResponse.next_page_token of the previous +// JobService.ListBatchPredictionJobs call. +func (c *ProjectsLocationsBatchPredictionJobsListCall) PageToken(pageToken string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) *ProjectsLocationsBatchPredictionJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsListCall { + 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 *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsListCall { + 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 *ProjectsLocationsBatchPredictionJobsListCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsListCall { + 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 *ProjectsLocationsBatchPredictionJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBatchPredictionJobsListCall) 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/{+parent}/batchPredictionJobs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.ServerRes +// ponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse, 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 := &GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse{ + 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 BatchPredictionJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.batchPredictionJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the BatchPredictionJobs from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/batchPredictionJobs", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse" + // }, + // "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 *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse) 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.customJobs.cancel": + +type ProjectsLocationsCustomJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1cancelcustomjobrequest *GoogleCloudAiplatformV1beta1CancelCustomJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a CustomJob. Starts asynchronous cancellation on the +// CustomJob. The server makes a best effort to cancel the job, but +// success is not guaranteed. Clients can use JobService.GetCustomJob or +// other methods to check whether the cancellation succeeded or whether +// the job completed despite cancellation. On successful cancellation, +// the CustomJob is not deleted; instead it becomes a job with a +// CustomJob.error value with a google.rpc.Status.code of 1, +// corresponding to `Code.CANCELLED`, and CustomJob.state is set to +// `CANCELLED`. +// +// - name: The name of the CustomJob to cancel. Format: +// `projects/{project}/locations/{location}/customJobs/{custom_job}`. +func (r *ProjectsLocationsCustomJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelcustomjobrequest *GoogleCloudAiplatformV1beta1CancelCustomJobRequest) *ProjectsLocationsCustomJobsCancelCall { + c := &ProjectsLocationsCustomJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1cancelcustomjobrequest = googlecloudaiplatformv1beta1cancelcustomjobrequest + 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 *ProjectsLocationsCustomJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCancelCall { + 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 *ProjectsLocationsCustomJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCancelCall { + 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 *ProjectsLocationsCustomJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelcustomjobrequest) + 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 += "?" + 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.customJobs.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 *ProjectsLocationsCustomJobsCancelCall) 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": "Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CustomJob to cancel. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CancelCustomJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.create": + +type ProjectsLocationsCustomJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1customjob *GoogleCloudAiplatformV1beta1CustomJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a CustomJob. A created CustomJob right away will be +// attempted to be run. +// +// - parent: The resource name of the Location to create the CustomJob +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsCustomJobsService) Create(parent string, googlecloudaiplatformv1beta1customjob *GoogleCloudAiplatformV1beta1CustomJob) *ProjectsLocationsCustomJobsCreateCall { + c := &ProjectsLocationsCustomJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1customjob = googlecloudaiplatformv1beta1customjob + 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 *ProjectsLocationsCustomJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCreateCall { + 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 *ProjectsLocationsCustomJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCreateCall { + 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 *ProjectsLocationsCustomJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1customjob) + 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/{+parent}/customJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.customJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1CustomJob or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1CustomJob.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CustomJob, 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 := &GoogleCloudAiplatformV1beta1CustomJob{ + 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": "Creates a CustomJob. A created CustomJob right away will be attempted to be run.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to create the CustomJob in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/customJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CustomJob" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1CustomJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.delete": + +type ProjectsLocationsCustomJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a CustomJob. +// +// - name: The name of the CustomJob resource to be deleted. Format: +// `projects/{project}/locations/{location}/customJobs/{custom_job}`. +func (r *ProjectsLocationsCustomJobsService) Delete(name string) *ProjectsLocationsCustomJobsDeleteCall { + c := &ProjectsLocationsCustomJobsDeleteCall{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 *ProjectsLocationsCustomJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsDeleteCall { + 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 *ProjectsLocationsCustomJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsDeleteCall { + 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 *ProjectsLocationsCustomJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsDeleteCall) 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.customJobs.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 *ProjectsLocationsCustomJobsDeleteCall) 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": "Deletes a CustomJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.customJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CustomJob resource to be deleted. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.get": + +type ProjectsLocationsCustomJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a CustomJob. +// +// - name: The name of the CustomJob resource. Format: +// `projects/{project}/locations/{location}/customJobs/{custom_job}`. +func (r *ProjectsLocationsCustomJobsService) Get(name string) *ProjectsLocationsCustomJobsGetCall { + c := &ProjectsLocationsCustomJobsGetCall{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 *ProjectsLocationsCustomJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsGetCall { + 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 *ProjectsLocationsCustomJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsGetCall { + 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 *ProjectsLocationsCustomJobsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsGetCall { + 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 *ProjectsLocationsCustomJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsGetCall) 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.customJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1CustomJob or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1CustomJob.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CustomJob, 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 := &GoogleCloudAiplatformV1beta1CustomJob{ + 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 a CustomJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the CustomJob resource. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1CustomJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.list": + +type ProjectsLocationsCustomJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists CustomJobs in a Location. +// +// - parent: The resource name of the Location to list the CustomJobs +// from. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsCustomJobsService) List(parent string) *ProjectsLocationsCustomJobsListCall { + c := &ProjectsLocationsCustomJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsCustomJobsListCall) Filter(filter string) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsCustomJobsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListCustomJobsResponse.next_page_token of the previous +// JobService.ListCustomJobs call. +func (c *ProjectsLocationsCustomJobsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsCustomJobsListCall) ReadMask(readMask string) *ProjectsLocationsCustomJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsCustomJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsListCall { + 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 *ProjectsLocationsCustomJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsListCall { + 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 *ProjectsLocationsCustomJobsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsListCall { + 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 *ProjectsLocationsCustomJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsListCall) 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/{+parent}/customJobs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.customJobs.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListCustomJobsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListCustomJobsResponse.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 *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListCustomJobsResponse, 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 := &GoogleCloudAiplatformV1beta1ListCustomJobsResponse{ + 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 CustomJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the CustomJobs from. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/customJobs", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListCustomJobsResponse" + // }, + // "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 *ProjectsLocationsCustomJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListCustomJobsResponse) 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.customJobs.operations.cancel": + +type ProjectsLocationsCustomJobsOperationsCancelCall 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 *ProjectsLocationsCustomJobsOperationsService) Cancel(name string) *ProjectsLocationsCustomJobsOperationsCancelCall { + c := &ProjectsLocationsCustomJobsOperationsCancelCall{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 *ProjectsLocationsCustomJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsCancelCall { + 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsCancelCall { + 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsCancelCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsCancelCall) 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}/customJobs/{customJobsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/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.customJobs.operations.delete": + +type ProjectsLocationsCustomJobsOperationsDeleteCall 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 *ProjectsLocationsCustomJobsOperationsService) Delete(name string) *ProjectsLocationsCustomJobsOperationsDeleteCall { + c := &ProjectsLocationsCustomJobsOperationsDeleteCall{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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsDeleteCall { + 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsDeleteCall { + 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsDeleteCall) 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}/customJobs/{customJobsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.customJobs.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.operations.get": + +type ProjectsLocationsCustomJobsOperationsGetCall 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 *ProjectsLocationsCustomJobsOperationsService) Get(name string) *ProjectsLocationsCustomJobsOperationsGetCall { + c := &ProjectsLocationsCustomJobsOperationsGetCall{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 *ProjectsLocationsCustomJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsGetCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsGetCall) 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}/customJobs/{customJobsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.customJobs.operations.list": + +type ProjectsLocationsCustomJobsOperationsListCall 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 *ProjectsLocationsCustomJobsOperationsService) List(name string) *ProjectsLocationsCustomJobsOperationsListCall { + c := &ProjectsLocationsCustomJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsCustomJobsOperationsListCall) Filter(filter string) *ProjectsLocationsCustomJobsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsCustomJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsCustomJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsListCall { + 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 *ProjectsLocationsCustomJobsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsListCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsListCall) 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}/customJobs/{customJobsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.customJobs.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/[^/]+/customJobs/[^/]+$", + // "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 *ProjectsLocationsCustomJobsOperationsListCall) 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.customJobs.operations.wait": + +type ProjectsLocationsCustomJobsOperationsWaitCall 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 *ProjectsLocationsCustomJobsOperationsService) Wait(name string) *ProjectsLocationsCustomJobsOperationsWaitCall { + c := &ProjectsLocationsCustomJobsOperationsWaitCall{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 *ProjectsLocationsCustomJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsCustomJobsOperationsWaitCall { + 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsWaitCall { + 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsWaitCall { + 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsCustomJobsOperationsWaitCall) 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.customJobs.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 *ProjectsLocationsCustomJobsOperationsWaitCall) 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}/customJobs/{customJobsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.customJobs.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/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.dataLabelingJobs.cancel": + +type ProjectsLocationsDataLabelingJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1canceldatalabelingjobrequest *GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Cancels a DataLabelingJob. Success of cancellation is not +// guaranteed. +// +// - name: The name of the DataLabelingJob. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe +// ling_job}`. +func (r *ProjectsLocationsDataLabelingJobsService) Cancel(name string, googlecloudaiplatformv1beta1canceldatalabelingjobrequest *GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest) *ProjectsLocationsDataLabelingJobsCancelCall { + c := &ProjectsLocationsDataLabelingJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1canceldatalabelingjobrequest = googlecloudaiplatformv1beta1canceldatalabelingjobrequest + 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 *ProjectsLocationsDataLabelingJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCancelCall { + 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 *ProjectsLocationsDataLabelingJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCancelCall { + 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 *ProjectsLocationsDataLabelingJobsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1canceldatalabelingjobrequest) + 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 += "?" + 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsCancelCall) 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": "Cancels a DataLabelingJob. Success of cancellation is not guaranteed.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.dataLabelingJobs.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest" + // }, + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.create": + +type ProjectsLocationsDataLabelingJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1datalabelingjob *GoogleCloudAiplatformV1beta1DataLabelingJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a DataLabelingJob. +// +// - parent: The parent of the DataLabelingJob. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDataLabelingJobsService) Create(parent string, googlecloudaiplatformv1beta1datalabelingjob *GoogleCloudAiplatformV1beta1DataLabelingJob) *ProjectsLocationsDataLabelingJobsCreateCall { + c := &ProjectsLocationsDataLabelingJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1datalabelingjob = googlecloudaiplatformv1beta1datalabelingjob + 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 *ProjectsLocationsDataLabelingJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCreateCall { + 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 *ProjectsLocationsDataLabelingJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCreateCall { + 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 *ProjectsLocationsDataLabelingJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1datalabelingjob) + 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/{+parent}/dataLabelingJobs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1DataLabelingJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1DataLabelingJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DataLabelingJob, 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 := &GoogleCloudAiplatformV1beta1DataLabelingJob{ + 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": "Creates a DataLabelingJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.dataLabelingJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/dataLabelingJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DataLabelingJob" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1DataLabelingJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.delete": + +type ProjectsLocationsDataLabelingJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a DataLabelingJob. +// +// - name: The name of the DataLabelingJob to be deleted. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe +// ling_job}`. +func (r *ProjectsLocationsDataLabelingJobsService) Delete(name string) *ProjectsLocationsDataLabelingJobsDeleteCall { + c := &ProjectsLocationsDataLabelingJobsDeleteCall{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 *ProjectsLocationsDataLabelingJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsDeleteCall { + 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsDeleteCall { + 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsDeleteCall) 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsDeleteCall) 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": "Deletes a DataLabelingJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.dataLabelingJobs.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the DataLabelingJob to be deleted. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.get": + +type ProjectsLocationsDataLabelingJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a DataLabelingJob. +// +// - name: The name of the DataLabelingJob. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe +// ling_job}`. +func (r *ProjectsLocationsDataLabelingJobsService) Get(name string) *ProjectsLocationsDataLabelingJobsGetCall { + c := &ProjectsLocationsDataLabelingJobsGetCall{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 *ProjectsLocationsDataLabelingJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsGetCall { + 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 *ProjectsLocationsDataLabelingJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsGetCall { + 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 *ProjectsLocationsDataLabelingJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsGetCall { + 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 *ProjectsLocationsDataLabelingJobsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsGetCall) 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.dataLabelingJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1DataLabelingJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1DataLabelingJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DataLabelingJob, 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 := &GoogleCloudAiplatformV1beta1DataLabelingJob{ + 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 a DataLabelingJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.dataLabelingJobs.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1DataLabelingJob" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.list": + +type ProjectsLocationsDataLabelingJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists DataLabelingJobs in a Location. +// +// - parent: The parent of the DataLabelingJob. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDataLabelingJobsService) List(parent string) *ProjectsLocationsDataLabelingJobsListCall { + c := &ProjectsLocationsDataLabelingJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsDataLabelingJobsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order by default. Use +// `desc` after a field name for descending. +func (c *ProjectsLocationsDataLabelingJobsListCall) OrderBy(orderBy string) *ProjectsLocationsDataLabelingJobsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDataLabelingJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDataLabelingJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. FieldMask represents a set of symbolic field +// paths. For example, the mask can be `paths: "name". The "name" here +// is a field in DataLabelingJob. If this field is not set, all fields +// of the DataLabelingJob are returned. +func (c *ProjectsLocationsDataLabelingJobsListCall) ReadMask(readMask string) *ProjectsLocationsDataLabelingJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDataLabelingJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsListCall { + 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 *ProjectsLocationsDataLabelingJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsListCall { + 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 *ProjectsLocationsDataLabelingJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsListCall { + 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 *ProjectsLocationsDataLabelingJobsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsListCall) 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/{+parent}/dataLabelingJobs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.dataLabelingJobs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse, 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 := &GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse{ + 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 DataLabelingJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.dataLabelingJobs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For example, the mask can be `paths: \"name\"`. The \"name\" here is a field in DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are returned.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/dataLabelingJobs", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse" + // }, + // "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 *ProjectsLocationsDataLabelingJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse) 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.dataLabelingJobs.operations.cancel": + +type ProjectsLocationsDataLabelingJobsOperationsCancelCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) Cancel(name string) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { + c := &ProjectsLocationsDataLabelingJobsOperationsCancelCall{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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.cancel", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be cancelled.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/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.dataLabelingJobs.operations.delete": + +type ProjectsLocationsDataLabelingJobsOperationsDeleteCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) Delete(name string) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { + c := &ProjectsLocationsDataLabelingJobsOperationsDeleteCall{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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.get": + +type ProjectsLocationsDataLabelingJobsOperationsGetCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) Get(name string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { + c := &ProjectsLocationsDataLabelingJobsOperationsGetCall{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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsGetCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsGetCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.dataLabelingJobs.operations.list": + +type ProjectsLocationsDataLabelingJobsOperationsListCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) List(name string) *ProjectsLocationsDataLabelingJobsOperationsListCall { + c := &ProjectsLocationsDataLabelingJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsOperationsListCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsListCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsListCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsListCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsListCall) 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}/dataLabelingJobs/{dataLabelingJobsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.dataLabelingJobs.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/[^/]+/dataLabelingJobs/[^/]+$", + // "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 *ProjectsLocationsDataLabelingJobsOperationsListCall) 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.dataLabelingJobs.operations.wait": + +type ProjectsLocationsDataLabelingJobsOperationsWaitCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) Wait(name string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { + c := &ProjectsLocationsDataLabelingJobsOperationsWaitCall{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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/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.datasets.create": + +type ProjectsLocationsDatasetsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Dataset. +// +// - parent: The resource name of the Location to create the Dataset in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDatasetsService) Create(parent string, googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *ProjectsLocationsDatasetsCreateCall { + c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset + 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 *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall { + 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 *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall { + 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 *ProjectsLocationsDatasetsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1dataset) + 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/{+parent}/datasets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsCreateCall) 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": "Creates a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to create the Dataset in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/datasets", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Dataset" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.datasets.delete": + +type ProjectsLocationsDatasetsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Dataset. +// +// - name: The resource name of the Dataset to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall { + c := &ProjectsLocationsDatasetsDeleteCall{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 *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall { + 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 *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall { + 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 *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDeleteCall) 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.datasets.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 *ProjectsLocationsDatasetsDeleteCall) 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": "Deletes a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.datasets.export": + +type ProjectsLocationsDatasetsExportCall struct { + s *Service + name string + googlecloudaiplatformv1beta1exportdatarequest *GoogleCloudAiplatformV1beta1ExportDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Exports data from a Dataset. +// +// - name: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) Export(name string, googlecloudaiplatformv1beta1exportdatarequest *GoogleCloudAiplatformV1beta1ExportDataRequest) *ProjectsLocationsDatasetsExportCall { + c := &ProjectsLocationsDatasetsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1exportdatarequest = googlecloudaiplatformv1beta1exportdatarequest + 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 *ProjectsLocationsDatasetsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsExportCall { + 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 *ProjectsLocationsDatasetsExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsExportCall { + 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 *ProjectsLocationsDatasetsExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1exportdatarequest) + 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}:export") + 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.datasets.export" 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 *ProjectsLocationsDatasetsExportCall) 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": "Exports data from a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:export", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.export", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:export", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ExportDataRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.datasets.get": + +type ProjectsLocationsDatasetsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a Dataset. +// +// - name: The name of the Dataset resource. +func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall { + c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsGetCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall { + 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 *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall { + 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 *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall { + 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 *ProjectsLocationsDatasetsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsGetCall) 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{ @@ -38315,16 +47448,15 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.list" call. -// Exactly one of *GoogleCloudLocationListLocationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// Do executes the "aiplatform.projects.locations.datasets.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Dataset or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Dataset.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { +func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38343,7 +47475,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudLocationListLocationsResponse{ + ret := &GoogleCloudAiplatformV1beta1Dataset{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38355,41 +47487,393 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "description": "Gets a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.list", + // "id": "aiplatform.projects.locations.datasets.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", + // "name": { + // "description": "Required. The name of the Dataset resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "required": true, // "type": "string" // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1Dataset" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.datasets.import": + +type ProjectsLocationsDatasetsImportCall struct { + s *Service + name string + googlecloudaiplatformv1beta1importdatarequest *GoogleCloudAiplatformV1beta1ImportDataRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports data into a Dataset. +// +// - name: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) Import(name string, googlecloudaiplatformv1beta1importdatarequest *GoogleCloudAiplatformV1beta1ImportDataRequest) *ProjectsLocationsDatasetsImportCall { + c := &ProjectsLocationsDatasetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1importdatarequest = googlecloudaiplatformv1beta1importdatarequest + 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 *ProjectsLocationsDatasetsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsImportCall { + 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 *ProjectsLocationsDatasetsImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsImportCall { + 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 *ProjectsLocationsDatasetsImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1importdatarequest) + 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}:import") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsImportCall) 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": "Imports data into a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.import", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { // "name": { - // "description": "The resource that owns the locations collection, if applicable.", + // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:import", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ImportDataRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.datasets.list": + +type ProjectsLocationsDatasetsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Datasets in a Location. +// +// - parent: The name of the Dataset's parent resource. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall { + c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `display_name`: supports = and != * +// `metadata_schema_uri`: supports = and != * `labels` supports general +// map functions that is: * `labels.key=value` - key:value equality * +// `labels.key:* or labels:key - key existence * A key including a space +// must be quoted. `labels."a key". Some examples: * +// `displayName="myDisplayName" * `labels.myKey="myValue" +func (c *ProjectsLocationsDatasetsListCall) Filter(filter string) *ProjectsLocationsDatasetsListCall { + 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` +func (c *ProjectsLocationsDatasetsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall { + 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 *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall { + 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 *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall { + 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 *ProjectsLocationsDatasetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsListCall) 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/{+parent}/datasets") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.datasets.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListDatasetsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListDatasetsResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDatasetsResponse, 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 := &GoogleCloudAiplatformV1beta1ListDatasetsResponse{ + 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 Datasets in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "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`", + // "location": "query", + // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}/locations", + // "path": "v1beta1/{+parent}/datasets", // "response": { - // "$ref": "GoogleCloudLocationListLocationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListDatasetsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38401,7 +47885,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleClo // 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { +func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDatasetsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -38419,41 +47903,40 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleClo } } -// method id "aiplatform.projects.locations.batchPredictionJobs.cancel": +// method id "aiplatform.projects.locations.datasets.patch": -type ProjectsLocationsBatchPredictionJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a BatchPredictionJob. Starts asynchronous -// cancellation on the BatchPredictionJob. The server makes the best -// effort to cancel the job, but success is not guaranteed. Clients can -// use JobService.GetBatchPredictionJob or other methods to check -// whether the cancellation succeeded or whether the job completed -// despite cancellation. On a successful cancellation, the -// BatchPredictionJob is not deleted;instead its -// BatchPredictionJob.state is set to `CANCELLED`. Any files already -// outputted by the job are not deleted. +// Patch: Updates a Dataset. // -// - name: The name of the BatchPredictionJob to cancel. Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ -// prediction_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest *GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest) *ProjectsLocationsBatchPredictionJobsCancelCall { - c := &ProjectsLocationsBatchPredictionJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Dataset. +func (r *ProjectsLocationsDatasetsService) Patch(name string, googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *ProjectsLocationsDatasetsPatchCall { + c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest = googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest + c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. For the `FieldMask` definition, +// see google.protobuf.FieldMask. Updatable fields: * `display_name` * +// `description` * `labels` +func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall { + 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCancelCall { +func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -38461,21 +47944,21 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCancelCall { +func (c *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall { 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 *ProjectsLocationsBatchPredictionJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsPatchCall) 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_ { @@ -38483,16 +47966,16 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelbatchpredictionjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1dataset) 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}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -38503,14 +47986,15 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.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 *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.datasets.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Dataset or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Dataset.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38529,7 +48013,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1Dataset{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38541,28 +48025,34 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetBatchPredictionJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its BatchPredictionJob.state is set to `CANCELLED`. Any files already outputted by the job are not deleted.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.batchPredictionJobs.cancel", + // "description": "Updates a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.datasets.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BatchPredictionJob to cancel. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "description": "Output only. The resource name of the Dataset.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest" + // "$ref": "GoogleCloudAiplatformV1beta1Dataset" // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1Dataset" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38571,93 +48061,216 @@ func (c *ProjectsLocationsBatchPredictionJobsCancelCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.batchPredictionJobs.create": +// method id "aiplatform.projects.locations.datasets.searchDataItems": -type ProjectsLocationsBatchPredictionJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchpredictionjob *GoogleCloudAiplatformV1beta1BatchPredictionJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsSearchDataItemsCall struct { + s *Service + dataset string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a BatchPredictionJob. A BatchPredictionJob once -// created will right away be attempted to start. +// SearchDataItems: Searches DataItems in a Dataset. // -// - parent: The resource name of the Location to create the -// BatchPredictionJob in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Create(parent string, googlecloudaiplatformv1beta1batchpredictionjob *GoogleCloudAiplatformV1beta1BatchPredictionJob) *ProjectsLocationsBatchPredictionJobsCreateCall { - c := &ProjectsLocationsBatchPredictionJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1batchpredictionjob = googlecloudaiplatformv1beta1batchpredictionjob +// - dataset: The resource name of the Dataset from which to search +// DataItems. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsService) SearchDataItems(dataset string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c := &ProjectsLocationsDatasetsSearchDataItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.dataset = dataset + return c +} + +// AnnotationFilters sets the optional parameter "annotationFilters": An +// expression that specifies what Annotations will be returned per +// DataItem. Annotations satisfied either of the conditions will be +// returned. * `annotation_spec_id` - for = or !=. Must specify +// `saved_query_id=` - saved query id that annotations should belong to. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationFilters(annotationFilters ...string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.SetMulti("annotationFilters", append([]string{}, annotationFilters...)) + return c +} + +// AnnotationsFilter sets the optional parameter "annotationsFilter": An +// expression for filtering the Annotations that will be returned per +// DataItem. * `annotation_spec_id` - for = or !=. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsFilter(annotationsFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("annotationsFilter", annotationsFilter) + return c +} + +// AnnotationsLimit sets the optional parameter "annotationsLimit": If +// set, only up to this many of Annotations will be returned per +// DataItemView. The maximum value is 1000. If not set, the maximum +// value will be used. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsLimit(annotationsLimit int64) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("annotationsLimit", fmt.Sprint(annotationsLimit)) + return c +} + +// DataItemFilter sets the optional parameter "dataItemFilter": An +// expression for filtering the DataItem that will be returned. * +// `data_item_id` - for = or !=. * `labeled` - for = or !=. * +// `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that +// have at least one annotation with annotation_spec_id = +// `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. +// For example: * `data_item=1` * `has_annotation(5)` +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataItemFilter(dataItemFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("dataItemFilter", dataItemFilter) + return c +} + +// DataLabelingJob sets the optional parameter "dataLabelingJob": The +// resource name of a DataLabelingJob. Format: +// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeli +// ng_job}` If this field is set, all of the search will be done in the +// context of this DataLabelingJob. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataLabelingJob(dataLabelingJob string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("dataLabelingJob", dataLabelingJob) + return c +} + +// FieldMask sets the optional parameter "fieldMask": Mask specifying +// which fields of DataItemView to read. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) FieldMask(fieldMask string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("fieldMask", fieldMask) + 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. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// OrderByAnnotationOrderBy sets the optional parameter +// "orderByAnnotation.orderBy": A comma-separated list of annotation +// fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Must also specify saved_query. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationOrderBy(orderByAnnotationOrderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderByAnnotation.orderBy", orderByAnnotationOrderBy) + return c +} + +// OrderByAnnotationSavedQuery sets the optional parameter +// "orderByAnnotation.savedQuery": Required. Saved query of the +// Annotation. Only Annotations belong to this saved query will be +// considered for ordering. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationSavedQuery(orderByAnnotationSavedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderByAnnotation.savedQuery", orderByAnnotationSavedQuery) + return c +} + +// OrderByDataItem sets the optional parameter "orderByDataItem": A +// comma-separated list of data item fields to order by, sorted in +// ascending order. Use "desc" after a field name for descending. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByDataItem(orderByDataItem string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("orderByDataItem", orderByDataItem) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. +// Server may return fewer results than requested. Default and maximum +// page size is 100. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token +// identifying a page of results for the server to return Typically +// obtained via SearchDataItemsResponse.next_page_token of the previous +// DatasetService.SearchDataItems call. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// SavedQuery sets the optional parameter "savedQuery": The resource +// name of a SavedQuery(annotation set in UI). Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueri +// es/{saved_query}` All of the search will be done in the context of +// this SavedQuery. +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) SavedQuery(savedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { + c.urlParams_.Set("savedQuery", savedQuery) 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsCreateCall { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSearchDataItemsCall { 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 *ProjectsLocationsDatasetsSearchDataItemsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSearchDataItemsCall { + 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsCreateCall { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSearchDataItemsCall { 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 *ProjectsLocationsBatchPredictionJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchpredictionjob) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/batchPredictionJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+dataset}:searchDataItems") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "dataset": c.dataset, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1BatchPredictionJob or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1BatchPredictionJob.ServerResponse.Header -// or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.datasets.searchDataItems" call. +// Exactly one of *GoogleCloudAiplatformV1beta1SearchDataItemsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1SearchDataItemsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, error) { +func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchDataItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38676,7 +48289,7 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ + ret := &GoogleCloudAiplatformV1beta1SearchDataItemsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38688,28 +48301,97 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.batchPredictionJobs.create", + // "description": "Searches DataItems in a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:searchDataItems", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.searchDataItems", // "parameterOrder": [ - // "parent" + // "dataset" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the BatchPredictionJob in. Format: `projects/{project}/locations/{location}`", + // "annotationFilters": { + // "description": "An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should belong to.", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "annotationsFilter": { + // "deprecated": true, + // "description": "An expression for filtering the Annotations that will be returned per DataItem. * `annotation_spec_id` - for = or !=.", + // "location": "query", + // "type": "string" + // }, + // "annotationsLimit": { + // "description": "If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is 1000. If not set, the maximum value will be used.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "dataItemFilter": { + // "description": "An expression for filtering the DataItem that will be returned. * `data_item_id` - for = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * `data_item=1` * `has_annotation(5)`", + // "location": "query", + // "type": "string" + // }, + // "dataLabelingJob": { + // "description": "The resource name of a DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this field is set, all of the search will be done in the context of this DataLabelingJob.", + // "location": "query", + // "type": "string" + // }, + // "dataset": { + // "description": "Required. The resource name of the Dataset from which to search DataItems. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "fieldMask": { + // "description": "Mask specifying which fields of DataItemView to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "deprecated": true, + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "type": "string" + // }, + // "orderByAnnotation.orderBy": { + // "description": "A comma-separated list of annotation fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Must also specify saved_query.", + // "location": "query", + // "type": "string" + // }, + // "orderByAnnotation.savedQuery": { + // "description": "Required. Saved query of the Annotation. Only Annotations belong to this saved query will be considered for ordering.", + // "location": "query", + // "type": "string" + // }, + // "orderByDataItem": { + // "description": "A comma-separated list of data item fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Requested page size. Server may return fewer results than requested. Default and maximum page size is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A token identifying a page of results for the server to return Typically obtained via SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call.", + // "location": "query", + // "type": "string" + // }, + // "savedQuery": { + // "deprecated": true, + // "description": "The resource name of a SavedQuery(annotation set in UI). Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the search will be done in the context of this SavedQuery.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/batchPredictionJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" - // }, + // "path": "v1beta1/{+dataset}:searchDataItems", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + // "$ref": "GoogleCloudAiplatformV1beta1SearchDataItemsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38718,67 +48400,107 @@ func (c *ProjectsLocationsBatchPredictionJobsCreateCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.batchPredictionJobs.delete": +// 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 *ProjectsLocationsDatasetsSearchDataItemsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchDataItemsResponse) 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) + } +} -type ProjectsLocationsBatchPredictionJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.datasets.annotationSpecs.get": + +type ProjectsLocationsDatasetsAnnotationSpecsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a BatchPredictionJob. Can only be called on jobs that -// already finished. +// Get: Gets an AnnotationSpec. // -// - name: The name of the BatchPredictionJob resource to be deleted. -// Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ -// prediction_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Delete(name string) *ProjectsLocationsBatchPredictionJobsDeleteCall { - c := &ProjectsLocationsBatchPredictionJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the AnnotationSpec resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/annotati +// onSpecs/{annotation_spec}`. +func (r *ProjectsLocationsDatasetsAnnotationSpecsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsDeleteCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { + 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsDeleteCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { 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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) 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 } @@ -38789,14 +48511,16 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.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 *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1AnnotationSpec or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1AnnotationSpec.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AnnotationSpec, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38815,7 +48539,7 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1AnnotationSpec{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38827,25 +48551,31 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.batchPredictionJobs.delete", + // "description": "Gets an AnnotationSpec.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BatchPredictionJob resource to be deleted. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "description": "Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1AnnotationSpec" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -38854,24 +48584,30 @@ func (c *ProjectsLocationsBatchPredictionJobsDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.batchPredictionJobs.get": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel": -type ProjectsLocationsBatchPredictionJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a BatchPredictionJob +// 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 BatchPredictionJob resource. Format: -// `projects/{project}/locations/{location}/batchPredictionJobs/{batch_ -// prediction_job}`. -func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *ProjectsLocationsBatchPredictionJobsGetCall { - c := &ProjectsLocationsBatchPredictionJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -38879,54 +48615,41 @@ func (r *ProjectsLocationsBatchPredictionJobsService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { 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 *ProjectsLocationsBatchPredictionJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsGetCall { - 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 *ProjectsLocationsBatchPredictionJobsGetCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsGetCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { 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 *ProjectsLocationsBatchPredictionJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -38936,17 +48659,15 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) doRequest(alt string) (*ht }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } - -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1BatchPredictionJob or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1BatchPredictionJob.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchPredictionJob, error) { + +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -38965,7 +48686,7 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1BatchPredictionJob{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -38977,25 +48698,25 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets a BatchPredictionJob", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs/{batchPredictionJobsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.batchPredictionJobs.get", + // "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the BatchPredictionJob resource. Format: `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}`", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/batchPredictionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchPredictionJob" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39004,140 +48725,84 @@ func (c *ProjectsLocationsBatchPredictionJobsGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.batchPredictionJobs.list": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete": -type ProjectsLocationsBatchPredictionJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists BatchPredictionJobs in a Location. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list the -// BatchPredictionJobs from. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsBatchPredictionJobsService) List(parent string) *ProjectsLocationsBatchPredictionJobsListCall { - c := &ProjectsLocationsBatchPredictionJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `model_display_name` supports `=`, -// `!=` comparisons. * `state` supports `=`, `!=` comparisons. * -// `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. -// `create_time` must be in RFC 3339 format. * `labels` supports general -// map functions that is: `labels.key=value` - key:value equality -// `labels.key:* - key existence Some examples of using the filter are: -// * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*" * -// `state!="JOB_STATE_FAILED" OR display_name="my_job" * `NOT -// display_name="my_job" * `create_time>"2021-05-18T00:00:00Z" * -// `labels.keyA=valueA` * `labels.keyB:*` -func (c *ProjectsLocationsBatchPredictionJobsListCall) Filter(filter string) *ProjectsLocationsBatchPredictionJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsBatchPredictionJobsListCall) PageSize(pageSize int64) *ProjectsLocationsBatchPredictionJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListBatchPredictionJobsResponse.next_page_token of the previous -// JobService.ListBatchPredictionJobs call. -func (c *ProjectsLocationsBatchPredictionJobsListCall) PageToken(pageToken string) *ProjectsLocationsBatchPredictionJobsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsBatchPredictionJobsListCall) ReadMask(readMask string) *ProjectsLocationsBatchPredictionJobsListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall{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 *ProjectsLocationsBatchPredictionJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { 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 *ProjectsLocationsBatchPredictionJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsBatchPredictionJobsListCall { - 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 *ProjectsLocationsBatchPredictionJobsListCall) Context(ctx context.Context) *ProjectsLocationsBatchPredictionJobsListCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { 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 *ProjectsLocationsBatchPredictionJobsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsBatchPredictionJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) 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/{+parent}/batchPredictionJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.batchPredictionJobs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse.ServerRes -// ponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39156,7 +48821,7 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39168,47 +48833,25 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists BatchPredictionJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/batchPredictionJobs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.batchPredictionJobs.list", + // "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `model_display_name` supports `=`, `!=` comparisons. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list the BatchPredictionJobs from. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/batchPredictionJobs", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39217,100 +48860,79 @@ func (c *ProjectsLocationsBatchPredictionJobsListCall) Do(opts ...googleapi.Call } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsBatchPredictionJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse) 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.customJobs.cancel": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.get": -type ProjectsLocationsCustomJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1beta1cancelcustomjobrequest *GoogleCloudAiplatformV1beta1CancelCustomJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a CustomJob. Starts asynchronous cancellation on the -// CustomJob. The server makes a best effort to cancel the job, but -// success is not guaranteed. Clients can use JobService.GetCustomJob or -// other methods to check whether the cancellation succeeded or whether -// the job completed despite cancellation. On successful cancellation, -// the CustomJob is not deleted; instead it becomes a job with a -// CustomJob.error value with a google.rpc.Status.code of 1, -// corresponding to `Code.CANCELLED`, and CustomJob.state is set to -// `CANCELLED`. +// 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 CustomJob to cancel. Format: -// `projects/{project}/locations/{location}/customJobs/{custom_job}`. -func (r *ProjectsLocationsCustomJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelcustomjobrequest *GoogleCloudAiplatformV1beta1CancelCustomJobRequest) *ProjectsLocationsCustomJobsCancelCall { - c := &ProjectsLocationsCustomJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1cancelcustomjobrequest = googlecloudaiplatformv1beta1cancelcustomjobrequest 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 *ProjectsLocationsCustomJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCancelCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { + 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 *ProjectsLocationsCustomJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCancelCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { 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 *ProjectsLocationsCustomJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelcustomjobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -39321,14 +48943,14 @@ func (c *ProjectsLocationsCustomJobsCancelCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.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.datasets.annotationSpecs.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 *ProjectsLocationsCustomJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39347,7 +48969,7 @@ func (c *ProjectsLocationsCustomJobsCancelCall) 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, @@ -39359,28 +48981,25 @@ func (c *ProjectsLocationsCustomJobsCancelCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetCustomJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a CustomJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and CustomJob.state is set to `CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.cancel", + // "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the CustomJob to cancel. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CancelCustomJobRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39389,91 +49008,119 @@ func (c *ProjectsLocationsCustomJobsCancelCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.customJobs.create": +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.list": -type ProjectsLocationsCustomJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1customjob *GoogleCloudAiplatformV1beta1CustomJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a CustomJob. A created CustomJob right away will be -// attempted to be run. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to create the CustomJob -// in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsCustomJobsService) Create(parent string, googlecloudaiplatformv1beta1customjob *GoogleCloudAiplatformV1beta1CustomJob) *ProjectsLocationsCustomJobsCreateCall { - c := &ProjectsLocationsCustomJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1customjob = googlecloudaiplatformv1beta1customjob +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) List(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { + 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 *ProjectsLocationsCustomJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsCreateCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { + 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 *ProjectsLocationsCustomJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsCreateCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { 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 *ProjectsLocationsCustomJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1customjob) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/customJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1CustomJob or error will +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 -// *GoogleCloudAiplatformV1beta1CustomJob.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// *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 *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CustomJob, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39492,7 +49139,7 @@ func (c *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1CustomJob{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39504,28 +49151,41 @@ func (c *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates a CustomJob. A created CustomJob right away will be attempted to be run.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.create", + // "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the CustomJob in. Format: `projects/{project}/locations/{location}`", + // "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/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", // "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/{+parent}/customJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CustomJob" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1CustomJob" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39534,9 +49194,30 @@ func (c *ProjectsLocationsCustomJobsCreateCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.customJobs.delete": +// 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) 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) + } +} -type ProjectsLocationsCustomJobsDeleteCall struct { +// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait": + +type ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -39544,20 +49225,37 @@ type ProjectsLocationsCustomJobsDeleteCall struct { header_ http.Header } -// Delete: Deletes a CustomJob. +// 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 CustomJob resource to be deleted. Format: -// `projects/{project}/locations/{location}/customJobs/{custom_job}`. -func (r *ProjectsLocationsCustomJobsService) Delete(name string) *ProjectsLocationsCustomJobsDeleteCall { - c := &ProjectsLocationsCustomJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Wait(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { + c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall{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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { + 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 *ProjectsLocationsCustomJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsDeleteCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39565,21 +49263,21 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) 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 *ProjectsLocationsCustomJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsDeleteCall { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { 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 *ProjectsLocationsCustomJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) 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_ { @@ -39589,9 +49287,9 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Res var body io.Reader = nil 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -39602,14 +49300,14 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.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 *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39640,23 +49338,29 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes a CustomJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.customJobs.delete", + // "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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the CustomJob resource to be deleted. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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}", + // "path": "v1beta1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -39667,31 +49371,68 @@ func (c *ProjectsLocationsCustomJobsDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.customJobs.get": +// method id "aiplatform.projects.locations.datasets.dataItems.list": -type ProjectsLocationsCustomJobsGetCall struct { +type ProjectsLocationsDatasetsDataItemsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets a CustomJob. +// List: Lists DataItems in a Dataset. // -// - name: The name of the CustomJob resource. Format: -// `projects/{project}/locations/{location}/customJobs/{custom_job}`. -func (r *ProjectsLocationsCustomJobsService) Get(name string) *ProjectsLocationsCustomJobsGetCall { - c := &ProjectsLocationsCustomJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Dataset to list DataItems from. +// Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsDataItemsService) List(parent string) *ProjectsLocationsDatasetsDataItemsListCall { + c := &ProjectsLocationsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsDataItemsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsListCall { + 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. +func (c *ProjectsLocationsDatasetsDataItemsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsDataItemsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39701,7 +49442,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) 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 *ProjectsLocationsCustomJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsListCall { c.ifNoneMatch_ = entityTag return c } @@ -39709,21 +49450,21 @@ func (c *ProjectsLocationsCustomJobsGetCall) 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 *ProjectsLocationsCustomJobsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsListCall { 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 *ProjectsLocationsCustomJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsListCall) 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_ { @@ -39736,7 +49477,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Respon var body io.Reader = nil 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}/dataItems") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39744,20 +49485,21 @@ func (c *ProjectsLocationsCustomJobsGetCall) doRequest(alt string) (*http.Respon } 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.customJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1CustomJob or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1CustomJob.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CustomJob, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListDataItemsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListDataItemsResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDataItemsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39776,7 +49518,7 @@ func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1CustomJob{ + ret := &GoogleCloudAiplatformV1beta1ListDataItemsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39788,25 +49530,52 @@ func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Gets a CustomJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}", + // "description": "Lists DataItems in a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.get", + // "id": "aiplatform.projects.locations.datasets.dataItems.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the CustomJob resource. Format: `projects/{project}/locations/{location}/customJobs/{custom_job}`", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "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" + // }, + // "parent": { + // "description": "Required. The resource name of the Dataset to list DataItems from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/dataItems", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1CustomJob" + // "$ref": "GoogleCloudAiplatformV1beta1ListDataItemsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -39815,9 +49584,30 @@ func (c *ProjectsLocationsCustomJobsGetCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.customJobs.list": +// 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 *ProjectsLocationsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDataItemsResponse) 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) + } +} -type ProjectsLocationsCustomJobsListCall struct { +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.list": + +type ProjectsLocationsDatasetsDataItemsAnnotationsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -39826,52 +49616,50 @@ type ProjectsLocationsCustomJobsListCall struct { header_ http.Header } -// List: Lists CustomJobs in a Location. +// List: Lists Annotations belongs to a dataitem // -// - parent: The resource name of the Location to list the CustomJobs -// from. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsCustomJobsService) List(parent string) *ProjectsLocationsCustomJobsListCall { - c := &ProjectsLocationsCustomJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the DataItem to list Annotations from. +// Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/dataItem +// s/{data_item}`. +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsService) List(parent string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsCustomJobsListCall) Filter(filter string) *ProjectsLocationsCustomJobsListCall { +// filter. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { 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. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsCustomJobsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListCustomJobsResponse.next_page_token of the previous -// JobService.ListCustomJobs call. -func (c *ProjectsLocationsCustomJobsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsListCall { +// page token. +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } // ReadMask sets the optional parameter "readMask": Mask specifying // which fields to read. -func (c *ProjectsLocationsCustomJobsListCall) ReadMask(readMask string) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { c.urlParams_.Set("readMask", readMask) return c } @@ -39879,7 +49667,7 @@ func (c *ProjectsLocationsCustomJobsListCall) ReadMask(readMask string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -39889,7 +49677,7 @@ func (c *ProjectsLocationsCustomJobsListCall) 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 *ProjectsLocationsCustomJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -39897,21 +49685,21 @@ func (c *ProjectsLocationsCustomJobsListCall) 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 *ProjectsLocationsCustomJobsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { 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 *ProjectsLocationsCustomJobsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) 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_ { @@ -39924,7 +49712,7 @@ func (c *ProjectsLocationsCustomJobsListCall) 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, "v1beta1/{+parent}/customJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -39937,16 +49725,16 @@ func (c *ProjectsLocationsCustomJobsListCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListCustomJobsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListCustomJobsResponse.ServerResponse.Hea -// der or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListAnnotationsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListAnnotationsResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListCustomJobsResponse, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListAnnotationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -39965,7 +49753,7 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListCustomJobsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListAnnotationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -39977,16 +49765,21 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Lists CustomJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs", + // "description": "Lists Annotations belongs to a dataitem", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.list", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", // "location": "query", // "type": "string" // }, @@ -39997,14 +49790,14 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call.", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list the CustomJobs from. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the DataItem to list Annotations from. Format: `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", // "required": true, // "type": "string" // }, @@ -40015,9 +49808,9 @@ func (c *ProjectsLocationsCustomJobsListCall) Do(opts ...googleapi.CallOption) ( // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/customJobs", + // "path": "v1beta1/{+parent}/annotations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListCustomJobsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListAnnotationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -40029,7 +49822,7 @@ func (c *ProjectsLocationsCustomJobsListCall) 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 *ProjectsLocationsCustomJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListCustomJobsResponse) error) error { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListAnnotationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -40047,9 +49840,9 @@ func (c *ProjectsLocationsCustomJobsListCall) Pages(ctx context.Context, f func( } } -// method id "aiplatform.projects.locations.customJobs.operations.cancel": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel": -type ProjectsLocationsCustomJobsOperationsCancelCall struct { +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40069,8 +49862,8 @@ type ProjectsLocationsCustomJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsCustomJobsOperationsService) Cancel(name string) *ProjectsLocationsCustomJobsOperationsCancelCall { - c := &ProjectsLocationsCustomJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -40078,7 +49871,7 @@ func (r *ProjectsLocationsCustomJobsOperationsService) Cancel(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 *ProjectsLocationsCustomJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40086,21 +49879,21 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { 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 *ProjectsLocationsCustomJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) 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_ { @@ -40123,14 +49916,14 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40162,9 +49955,9 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.C 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}/customJobs/{customJobsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.operations.cancel", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -40172,7 +49965,7 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -40188,9 +49981,9 @@ func (c *ProjectsLocationsCustomJobsOperationsCancelCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.customJobs.operations.delete": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete": -type ProjectsLocationsCustomJobsOperationsDeleteCall struct { +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40204,8 +49997,8 @@ type ProjectsLocationsCustomJobsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsCustomJobsOperationsService) Delete(name string) *ProjectsLocationsCustomJobsOperationsDeleteCall { - c := &ProjectsLocationsCustomJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -40213,7 +50006,7 @@ func (r *ProjectsLocationsCustomJobsOperationsService) Delete(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40221,21 +50014,21 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { 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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) 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_ { @@ -40258,14 +50051,14 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40297,9 +50090,9 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.C return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.customJobs.operations.delete", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete", // "parameterOrder": [ // "name" // ], @@ -40307,7 +50100,7 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -40323,9 +50116,9 @@ func (c *ProjectsLocationsCustomJobsOperationsDeleteCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.customJobs.operations.get": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get": -type ProjectsLocationsCustomJobsOperationsGetCall struct { +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40339,8 +50132,8 @@ type ProjectsLocationsCustomJobsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsCustomJobsOperationsService) Get(name string) *ProjectsLocationsCustomJobsOperationsGetCall { - c := &ProjectsLocationsCustomJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -40348,7 +50141,7 @@ func (r *ProjectsLocationsCustomJobsOperationsService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40358,7 +50151,7 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsCustomJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -40366,21 +50159,21 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsCustomJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { 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 *ProjectsLocationsCustomJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) 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_ { @@ -40406,14 +50199,14 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40445,9 +50238,9 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.Call return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.operations.get", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get", // "parameterOrder": [ // "name" // ], @@ -40455,7 +50248,7 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.Call // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -40471,9 +50264,9 @@ func (c *ProjectsLocationsCustomJobsOperationsGetCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.customJobs.operations.list": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list": -type ProjectsLocationsCustomJobsOperationsListCall struct { +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40487,29 +50280,29 @@ type ProjectsLocationsCustomJobsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsCustomJobsOperationsService) List(name string) *ProjectsLocationsCustomJobsOperationsListCall { - c := &ProjectsLocationsCustomJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsCustomJobsOperationsListCall) Filter(filter string) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsCustomJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsCustomJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -40517,7 +50310,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) PageToken(pageToken stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40527,7 +50320,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsCustomJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -40535,21 +50328,21 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsCustomJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { 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 *ProjectsLocationsCustomJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) 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_ { @@ -40575,7 +50368,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.operations.list" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 @@ -40583,7 +50376,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) 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 *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40615,9 +50408,9 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.Cal return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.customJobs.operations.list", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list", // "parameterOrder": [ // "name" // ], @@ -40630,7 +50423,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", // "required": true, // "type": "string" // }, @@ -40660,7 +50453,7 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Do(opts ...googleapi.Cal // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsCustomJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) 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 { @@ -40678,9 +50471,9 @@ func (c *ProjectsLocationsCustomJobsOperationsListCall) Pages(ctx context.Contex } } -// method id "aiplatform.projects.locations.customJobs.operations.wait": +// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait": -type ProjectsLocationsCustomJobsOperationsWaitCall struct { +type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -40700,8 +50493,8 @@ type ProjectsLocationsCustomJobsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsCustomJobsOperationsService) Wait(name string) *ProjectsLocationsCustomJobsOperationsWaitCall { - c := &ProjectsLocationsCustomJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { + c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -40710,7 +50503,7 @@ func (r *ProjectsLocationsCustomJobsOperationsService) Wait(name string) *Projec // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsCustomJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -40718,7 +50511,7 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Timeout(timeout string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsCustomJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40726,21 +50519,21 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsCustomJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { 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 *ProjectsLocationsCustomJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsCustomJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) 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_ { @@ -40763,14 +50556,14 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.customJobs.operations.wait" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40802,9 +50595,9 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.Cal return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/customJobs/{customJobsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.customJobs.operations.wait", + // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait", // "parameterOrder": [ // "name" // ], @@ -40812,7 +50605,7 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/customJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -40834,34 +50627,38 @@ func (c *ProjectsLocationsCustomJobsOperationsWaitCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.dataLabelingJobs.cancel": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.cancel": -type ProjectsLocationsDataLabelingJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1beta1canceldatalabelingjobrequest *GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDataItemsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a DataLabelingJob. Success of cancellation is not -// guaranteed. +// 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 DataLabelingJob. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe -// ling_job}`. -func (r *ProjectsLocationsDataLabelingJobsService) Cancel(name string, googlecloudaiplatformv1beta1canceldatalabelingjobrequest *GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest) *ProjectsLocationsDataLabelingJobsCancelCall { - c := &ProjectsLocationsDataLabelingJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1canceldatalabelingjobrequest = googlecloudaiplatformv1beta1canceldatalabelingjobrequest 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 *ProjectsLocationsDataLabelingJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -40869,21 +50666,21 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsDataLabelingJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { 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 *ProjectsLocationsDataLabelingJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) 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_ { @@ -40891,11 +50688,6 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1canceldatalabelingjobrequest) - 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") @@ -40911,14 +50703,14 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -40949,26 +50741,23 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Cancels a DataLabelingJob. Success of cancellation is not guaranteed.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}:cancel", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.cancel", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CancelDataLabelingJobRequest" - // }, // "response": { // "$ref": "GoogleProtobufEmpty" // }, @@ -40979,154 +50768,9 @@ func (c *ProjectsLocationsDataLabelingJobsCancelCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.dataLabelingJobs.create": - -type ProjectsLocationsDataLabelingJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1datalabelingjob *GoogleCloudAiplatformV1beta1DataLabelingJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates a DataLabelingJob. -// -// - parent: The parent of the DataLabelingJob. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDataLabelingJobsService) Create(parent string, googlecloudaiplatformv1beta1datalabelingjob *GoogleCloudAiplatformV1beta1DataLabelingJob) *ProjectsLocationsDataLabelingJobsCreateCall { - c := &ProjectsLocationsDataLabelingJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1datalabelingjob = googlecloudaiplatformv1beta1datalabelingjob - 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 *ProjectsLocationsDataLabelingJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsCreateCall { - 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 *ProjectsLocationsDataLabelingJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsCreateCall { - 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 *ProjectsLocationsDataLabelingJobsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDataLabelingJobsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1datalabelingjob) - 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/{+parent}/dataLabelingJobs") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1DataLabelingJob or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1DataLabelingJob.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDataLabelingJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DataLabelingJob, 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 := &GoogleCloudAiplatformV1beta1DataLabelingJob{ - 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": "Creates a DataLabelingJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/dataLabelingJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DataLabelingJob" - // }, - // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1DataLabelingJob" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.dataLabelingJobs.delete": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.delete": -type ProjectsLocationsDataLabelingJobsDeleteCall struct { +type ProjectsLocationsDatasetsDataItemsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -41134,13 +50778,14 @@ type ProjectsLocationsDataLabelingJobsDeleteCall struct { header_ http.Header } -// Delete: Deletes a DataLabelingJob. +// 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 DataLabelingJob to be deleted. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe -// ling_job}`. -func (r *ProjectsLocationsDataLabelingJobsService) Delete(name string) *ProjectsLocationsDataLabelingJobsDeleteCall { - c := &ProjectsLocationsDataLabelingJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -41148,7 +50793,7 @@ func (r *ProjectsLocationsDataLabelingJobsService) Delete(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41156,21 +50801,21 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsDeleteCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { 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 *ProjectsLocationsDataLabelingJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) 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_ { @@ -41193,14 +50838,14 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41219,7 +50864,7 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41231,25 +50876,25 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Deletes a DataLabelingJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.dataLabelingJobs.delete", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DataLabelingJob to be deleted. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41258,9 +50903,9 @@ func (c *ProjectsLocationsDataLabelingJobsDeleteCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.dataLabelingJobs.get": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.get": -type ProjectsLocationsDataLabelingJobsGetCall struct { +type ProjectsLocationsDatasetsDataItemsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -41269,13 +50914,13 @@ type ProjectsLocationsDataLabelingJobsGetCall struct { header_ http.Header } -// Get: Gets a DataLabelingJob. +// 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 DataLabelingJob. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labe -// ling_job}`. -func (r *ProjectsLocationsDataLabelingJobsService) Get(name string) *ProjectsLocationsDataLabelingJobsGetCall { - c := &ProjectsLocationsDataLabelingJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -41283,7 +50928,7 @@ func (r *ProjectsLocationsDataLabelingJobsService) Get(name string) *ProjectsLoc // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41293,7 +50938,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsDataLabelingJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -41301,21 +50946,21 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) IfNoneMatch(entityTag string) // 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 *ProjectsLocationsDataLabelingJobsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsGetCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { 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 *ProjectsLocationsDataLabelingJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) 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_ { @@ -41341,16 +50986,14 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1DataLabelingJob or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1DataLabelingJob.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DataLabelingJob, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41369,7 +51012,7 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1DataLabelingJob{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41381,25 +51024,25 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Gets a DataLabelingJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs/{dataLabelingJobsId}", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.get", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1DataLabelingJob" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41408,80 +51051,53 @@ func (c *ProjectsLocationsDataLabelingJobsGetCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.dataLabelingJobs.list": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.list": -type ProjectsLocationsDataLabelingJobsListCall struct { +type ProjectsLocationsDatasetsDataItemsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists DataLabelingJobs in a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The parent of the DataLabelingJob. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDataLabelingJobsService) List(parent string) *ProjectsLocationsDataLabelingJobsListCall { - c := &ProjectsLocationsDataLabelingJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsDataLabelingJobsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsListCall { +// filter. +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": A comma-separated list -// of fields to order by, sorted in ascending order by default. Use -// `desc` after a field name for descending. -func (c *ProjectsLocationsDataLabelingJobsListCall) OrderBy(orderBy string) *ProjectsLocationsDataLabelingJobsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDataLabelingJobsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDataLabelingJobsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. FieldMask represents a set of symbolic field -// paths. For example, the mask can be `paths: "name". The "name" here -// is a field in DataLabelingJob. If this field is not set, all fields -// of the DataLabelingJob are returned. -func (c *ProjectsLocationsDataLabelingJobsListCall) ReadMask(readMask string) *ProjectsLocationsDataLabelingJobsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41491,7 +51107,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsDataLabelingJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -41499,21 +51115,21 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) IfNoneMatch(entityTag string // 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 *ProjectsLocationsDataLabelingJobsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsListCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsListCall { 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 *ProjectsLocationsDataLabelingJobsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) 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_ { @@ -41526,7 +51142,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataLabelingJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -41534,22 +51150,20 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse.ServerRespon -// se.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.dataItems.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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41568,7 +51182,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -41580,22 +51194,24 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists DataLabelingJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/dataLabelingJobs", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.list", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order by default. Use `desc` after a field name for descending.", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { @@ -41608,24 +51224,11 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent of the DataLabelingJob. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read. FieldMask represents a set of symbolic field paths. For example, the mask can be `paths: \"name\"`. The \"name\" here is a field in DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are returned.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/dataLabelingJobs", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41637,7 +51240,7 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Do(opts ...googleapi.CallOpt // 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 *ProjectsLocationsDataLabelingJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDataLabelingJobsResponse) error) error { +func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) 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 { @@ -41655,9 +51258,9 @@ func (c *ProjectsLocationsDataLabelingJobsListCall) Pages(ctx context.Context, f } } -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.cancel": +// method id "aiplatform.projects.locations.datasets.dataItems.operations.wait": -type ProjectsLocationsDataLabelingJobsOperationsCancelCall struct { +type ProjectsLocationsDatasetsDataItemsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -41665,28 +51268,37 @@ type ProjectsLocationsDataLabelingJobsOperationsCancelCall struct { 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`. +// 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 be cancelled. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Cancel(name string) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { - c := &ProjectsLocationsDataLabelingJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { + c := &ProjectsLocationsDatasetsDataItemsOperationsWaitCall{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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41694,21 +51306,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Fields(s ...goog // 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { 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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) 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_ { @@ -41718,7 +51330,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt st 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -41731,14 +51343,14 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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.datasets.dataItems.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 *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -41757,7 +51369,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googl 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, @@ -41769,25 +51381,31 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googl } 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:cancel", + // "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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.cancel", + // "id": "aiplatform.projects.locations.datasets.dataItems.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/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}:cancel", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -41796,32 +51414,32 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsCancelCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.delete": +// method id "aiplatform.projects.locations.datasets.datasetVersions.create": -type ProjectsLocationsDataLabelingJobsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion + 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`. +// Create: Create a version from a Dataset. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Delete(name string) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { - c := &ProjectsLocationsDataLabelingJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The name of the Dataset resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { + c := &ProjectsLocationsDatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1datasetversion = googlecloudaiplatformv1beta1datasetversion 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -41829,21 +51447,21 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Fields(s ...goog // 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { 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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) 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_ { @@ -41851,177 +51469,34 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) doRequest(alt st } 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.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsDeleteCall) 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, - }) - } + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1datasetversion) 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.get": - -type ProjectsLocationsDataLabelingJobsOperationsGetCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) Get(name string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { - c := &ProjectsLocationsDataLabelingJobsOperationsGetCall{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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsGetCall { - 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsGetCall { - 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsGetCall { - 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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) 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 + 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}/datasetVersions") 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.dataLabelingJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.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 *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42052,23 +51527,26 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleap } 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.get", + // "description": "Create a version from a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "parent": { + // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/datasetVersions", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -42076,103 +51554,68 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsGetCall) Do(opts ...googleap // "https://www.googleapis.com/auth/cloud-platform" // ] // } - -} - -// method id "aiplatform.projects.locations.dataLabelingJobs.operations.list": - -type ProjectsLocationsDataLabelingJobsOperationsListCall 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 *ProjectsLocationsDataLabelingJobsOperationsService) List(name string) *ProjectsLocationsDataLabelingJobsOperationsListCall { - c := &ProjectsLocationsDataLabelingJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Filter(filter string) *ProjectsLocationsDataLabelingJobsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c + } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataLabelingJobsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +// method id "aiplatform.projects.locations.datasets.datasetVersions.delete": + +type ProjectsLocationsDatasetsDatasetVersionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataLabelingJobsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Delete: Deletes a Dataset version. +// +// - name: The resource name of the Dataset version to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV +// ersions/{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Delete(name string) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { + c := &ProjectsLocationsDatasetsDatasetVersionsDeleteCall{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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataLabelingJobsOperationsListCall { - 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsListCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -42183,15 +51626,14 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.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 *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42210,7 +51652,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42222,41 +51664,25 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googlea } 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}/dataLabelingJobs/{dataLabelingJobsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.list", + // "description": "Deletes a Dataset version.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", // "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", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42265,102 +51691,86 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsListCall) Do(opts ...googlea } -// 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 *ProjectsLocationsDataLabelingJobsOperationsListCall) 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.dataLabelingJobs.operations.wait": +// method id "aiplatform.projects.locations.datasets.datasetVersions.get": -type ProjectsLocationsDataLabelingJobsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets a Dataset version. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDataLabelingJobsOperationsService) Wait(name string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { - c := &ProjectsLocationsDataLabelingJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Dataset version to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV +// ersions/{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Get(name string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { + c := &ProjectsLocationsDatasetsDatasetVersionsGetCall{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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsGetCall { 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { + 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDataLabelingJobsOperationsWaitCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsGetCall { 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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -42371,14 +51781,16 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.dataLabelingJobs.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 *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1DatasetVersion or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1DatasetVersion.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DatasetVersion, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42397,7 +51809,7 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1DatasetVersion{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42409,31 +51821,31 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googlea } 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}/dataLabelingJobs/{dataLabelingJobsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.dataLabelingJobs.operations.wait", + // "description": "Gets a Dataset version.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/dataLabelingJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", // "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", + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42442,71 +51854,115 @@ func (c *ProjectsLocationsDataLabelingJobsOperationsWaitCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.datasets.create": +// method id "aiplatform.projects.locations.datasets.datasetVersions.list": -type ProjectsLocationsDatasetsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsDatasetVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a Dataset. +// List: Lists DatasetVersions in a Dataset. // -// - parent: The resource name of the Location to create the Dataset in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDatasetsService) Create(parent string, googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *ProjectsLocationsDatasetsCreateCall { - c := &ProjectsLocationsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Dataset to list DatasetVersions +// from. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) List(parent string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + c := &ProjectsLocationsDatasetsDatasetVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Filter(filter string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + 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. +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDatasetVersionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsCreateCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsListCall { 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsListCall { + 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 *ProjectsLocationsDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsCreateCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsListCall { 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 *ProjectsLocationsDatasetsCreateCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1dataset) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasetVersions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -42517,14 +51973,17 @@ func (c *ProjectsLocationsDatasetsCreateCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.ServerRespons +// e.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42543,7 +52002,7 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42555,28 +52014,52 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Creates a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.create", + // "description": "Lists DatasetVersions in a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "Optional. The standard list filter.", + // "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.", + // "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 create the Dataset in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/datasets", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Dataset" - // }, + // "path": "v1beta1/{+parent}/datasetVersions", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42585,22 +52068,45 @@ func (c *ProjectsLocationsDatasetsCreateCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.delete": +// 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse) 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) + } +} -type ProjectsLocationsDatasetsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.datasets.datasetVersions.restore": + +type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a Dataset. +// Restore: Restores a dataset version. // -// - name: The resource name of the Dataset to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocationsDatasetsDeleteCall { - c := &ProjectsLocationsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DatasetVersion resource. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV +// ersions/{dataset_version}`. +func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(name string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { + c := &ProjectsLocationsDatasetsDatasetVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -42608,41 +52114,54 @@ func (r *ProjectsLocationsDatasetsService) Delete(name string) *ProjectsLocation // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDeleteCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { + 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 *ProjectsLocationsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDeleteCall { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { 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 *ProjectsLocationsDatasetsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:restore") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -42653,14 +52172,14 @@ func (c *ProjectsLocationsDatasetsDeleteCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" 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 *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42691,23 +52210,23 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Deletes a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.delete", + // "description": "Restores a dataset version.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.datasetVersions.restore", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Dataset to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:restore", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -42718,32 +52237,38 @@ func (c *ProjectsLocationsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.export": +// method id "aiplatform.projects.locations.datasets.operations.cancel": -type ProjectsLocationsDatasetsExportCall struct { - s *Service - name string - googlecloudaiplatformv1beta1exportdatarequest *GoogleCloudAiplatformV1beta1ExportDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Export: Exports data from a Dataset. -// -// - name: The name of the Dataset resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) Export(name string, googlecloudaiplatformv1beta1exportdatarequest *GoogleCloudAiplatformV1beta1ExportDataRequest) *ProjectsLocationsDatasetsExportCall { - c := &ProjectsLocationsDatasetsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// 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 *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsOperationsCancelCall { + c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1exportdatarequest = googlecloudaiplatformv1beta1exportdatarequest 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 *ProjectsLocationsDatasetsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsExportCall { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -42751,21 +52276,21 @@ func (c *ProjectsLocationsDatasetsExportCall) 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 *ProjectsLocationsDatasetsExportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsExportCall { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall { 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 *ProjectsLocationsDatasetsExportCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) 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_ { @@ -42773,14 +52298,9 @@ func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Respo } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1exportdatarequest) - 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}:export") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -42793,14 +52313,14 @@ func (c *ProjectsLocationsDatasetsExportCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.export" 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.datasets.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 *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42819,7 +52339,7 @@ func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42831,28 +52351,25 @@ func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Exports data from a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:export", + // "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}/datasets/{datasetsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.export", + // "id": "aiplatform.projects.locations.datasets.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:export", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ExportDataRequest" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -42861,84 +52378,66 @@ func (c *ProjectsLocationsDatasetsExportCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.get": +// method id "aiplatform.projects.locations.datasets.operations.delete": -type ProjectsLocationsDatasetsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a Dataset. +// 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 Dataset resource. -func (r *ProjectsLocationsDatasetsService) Get(name string) *ProjectsLocationsDatasetsGetCall { - c := &ProjectsLocationsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *ProjectsLocationsDatasetsOperationsDeleteCall { + c := &ProjectsLocationsDatasetsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsGetCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsGetCall { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsGetCall { - 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 *ProjectsLocationsDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsGetCall { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -42949,15 +52448,14 @@ func (c *ProjectsLocationsDatasetsGetCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Dataset or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Dataset.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, error) { +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -42976,7 +52474,7 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Dataset{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -42988,31 +52486,25 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Gets a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.get", + // "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}/datasets/{datasetsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Dataset resource.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Dataset" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -43021,71 +52513,79 @@ func (c *ProjectsLocationsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "aiplatform.projects.locations.datasets.import": +// method id "aiplatform.projects.locations.datasets.operations.get": -type ProjectsLocationsDatasetsImportCall struct { - s *Service - name string - googlecloudaiplatformv1beta1importdatarequest *GoogleCloudAiplatformV1beta1ImportDataRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Import: Imports data into a Dataset. +// 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 Dataset resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) Import(name string, googlecloudaiplatformv1beta1importdatarequest *GoogleCloudAiplatformV1beta1ImportDataRequest) *ProjectsLocationsDatasetsImportCall { - c := &ProjectsLocationsDatasetsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall { + c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1importdatarequest = googlecloudaiplatformv1beta1importdatarequest 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 *ProjectsLocationsDatasetsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsImportCall { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall { 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 *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall { + 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 *ProjectsLocationsDatasetsImportCall) Context(ctx context.Context) *ProjectsLocationsDatasetsImportCall { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall { 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 *ProjectsLocationsDatasetsImportCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1importdatarequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:import") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -43096,14 +52596,14 @@ func (c *ProjectsLocationsDatasetsImportCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.import" call. +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43134,26 +52634,23 @@ func (c *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Imports data into a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:import", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.import", + // "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}/datasets/{datasetsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.datasets.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:import", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ImportDataRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -43164,74 +52661,53 @@ func (c *ProjectsLocationsDatasetsImportCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.datasets.list": +// method id "aiplatform.projects.locations.datasets.operations.list": -type ProjectsLocationsDatasetsListCall struct { +type ProjectsLocationsDatasetsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Datasets in a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The name of the Dataset's parent resource. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDatasetsService) List(parent string) *ProjectsLocationsDatasetsListCall { - c := &ProjectsLocationsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { + c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `display_name`: supports = and != * -// `metadata_schema_uri`: supports = and != * `labels` supports general -// map functions that is: * `labels.key=value` - key:value equality * -// `labels.key:* or labels:key - key existence * A key including a space -// must be quoted. `labels."a key". Some examples: * -// `displayName="myDisplayName" * `labels.myKey="myValue" -func (c *ProjectsLocationsDatasetsListCall) Filter(filter string) *ProjectsLocationsDatasetsListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall { 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` -func (c *ProjectsLocationsDatasetsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43241,7 +52717,7 @@ func (c *ProjectsLocationsDatasetsListCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -43249,21 +52725,21 @@ func (c *ProjectsLocationsDatasetsListCall) IfNoneMatch(entityTag string) *Proje // 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 *ProjectsLocationsDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsListCall { +func (c *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall { 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 *ProjectsLocationsDatasetsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsOperationsListCall) 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_ { @@ -43276,7 +52752,7 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43284,21 +52760,20 @@ func (c *ProjectsLocationsDatasetsListCall) doRequest(alt string) (*http.Respons } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListDatasetsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListDatasetsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDatasetsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43317,7 +52792,7 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListDatasetsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -43329,22 +52804,24 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Lists Datasets in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets", + // "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}/datasets/{datasetsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.list", + // "id": "aiplatform.projects.locations.datasets.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `display_name`: supports = and != * `metadata_schema_uri`: supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "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`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { @@ -43357,24 +52834,11 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the Dataset's parent resource. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/datasets", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListDatasetsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -43386,7 +52850,7 @@ func (c *ProjectsLocationsDatasetsListCall) Do(opts ...googleapi.CallOption) (*G // 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 *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDatasetsResponse) error) error { +func (c *ProjectsLocationsDatasetsOperationsListCall) 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 { @@ -43404,40 +52868,187 @@ func (c *ProjectsLocationsDatasetsListCall) Pages(ctx context.Context, f func(*G } } -// method id "aiplatform.projects.locations.datasets.patch": +// method id "aiplatform.projects.locations.datasets.operations.wait": -type ProjectsLocationsDatasetsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDatasetsOperationsWaitCall 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 *ProjectsLocationsDatasetsOperationsService) Wait(name string) *ProjectsLocationsDatasetsOperationsWaitCall { + c := &ProjectsLocationsDatasetsOperationsWaitCall{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 *ProjectsLocationsDatasetsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsOperationsWaitCall { + 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 *ProjectsLocationsDatasetsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsWaitCall { + 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 *ProjectsLocationsDatasetsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsWaitCall { + 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 *ProjectsLocationsDatasetsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsOperationsWaitCall) 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.datasets.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 *ProjectsLocationsDatasetsOperationsWaitCall) 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}/datasets/{datasetsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/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.datasets.savedQueries.delete": + +type ProjectsLocationsDatasetsSavedQueriesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a Dataset. +// Delete: Deletes a SavedQuery. // -// - name: Output only. The resource name of the Dataset. -func (r *ProjectsLocationsDatasetsService) Patch(name string, googlecloudaiplatformv1beta1dataset *GoogleCloudAiplatformV1beta1Dataset) *ProjectsLocationsDatasetsPatchCall { - c := &ProjectsLocationsDatasetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the SavedQuery to delete. Format: +// `projects/{project}/locations/{location}/datasets/{dataset}/savedQue +// ries/{saved_query}`. +func (r *ProjectsLocationsDatasetsSavedQueriesService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { + c := &ProjectsLocationsDatasetsSavedQueriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1dataset = googlecloudaiplatformv1beta1dataset - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. For the `FieldMask` definition, -// see google.protobuf.FieldMask. Updatable fields: * `display_name` * -// `description` * `labels` -func (c *ProjectsLocationsDatasetsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDatasetsPatchCall { - 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 *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsPatchCall { +func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43445,21 +53056,21 @@ func (c *ProjectsLocationsDatasetsPatchCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsDatasetsPatchCall) Context(ctx context.Context) *ProjectsLocationsDatasetsPatchCall { +func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { 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 *ProjectsLocationsDatasetsPatchCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) 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_ { @@ -43467,16 +53078,11 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1dataset) - 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -43487,15 +53093,14 @@ func (c *ProjectsLocationsDatasetsPatchCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Dataset or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Dataset.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Dataset, error) { +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43514,7 +53119,7 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Dataset{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -43526,34 +53131,25 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Updates a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.datasets.patch", + // "description": "Deletes a SavedQuery.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.datasets.savedQueries.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of the Dataset.", + // "description": "Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask. Updatable fields: * `display_name` * `description` * `labels`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Dataset" - // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Dataset" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -43562,149 +53158,68 @@ func (c *ProjectsLocationsDatasetsPatchCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.datasets.searchDataItems": +// method id "aiplatform.projects.locations.datasets.savedQueries.list": -type ProjectsLocationsDatasetsSearchDataItemsCall struct { +type ProjectsLocationsDatasetsSavedQueriesListCall struct { s *Service - dataset string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// SearchDataItems: Searches DataItems in a Dataset. +// List: Lists SavedQueries in a Dataset. // -// - dataset: The resource name of the Dataset from which to search -// DataItems. Format: +// - parent: The resource name of the Dataset to list SavedQueries from. +// Format: // `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsService) SearchDataItems(dataset string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c := &ProjectsLocationsDatasetsSearchDataItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.dataset = dataset - return c -} - -// AnnotationFilters sets the optional parameter "annotationFilters": An -// expression that specifies what Annotations will be returned per -// DataItem. Annotations satisfied either of the conditions will be -// returned. * `annotation_spec_id` - for = or !=. Must specify -// `saved_query_id=` - saved query id that annotations should belong to. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationFilters(annotationFilters ...string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.SetMulti("annotationFilters", append([]string{}, annotationFilters...)) - return c -} - -// AnnotationsFilter sets the optional parameter "annotationsFilter": An -// expression for filtering the Annotations that will be returned per -// DataItem. * `annotation_spec_id` - for = or !=. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsFilter(annotationsFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("annotationsFilter", annotationsFilter) - return c -} - -// AnnotationsLimit sets the optional parameter "annotationsLimit": If -// set, only up to this many of Annotations will be returned per -// DataItemView. The maximum value is 1000. If not set, the maximum -// value will be used. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) AnnotationsLimit(annotationsLimit int64) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("annotationsLimit", fmt.Sprint(annotationsLimit)) - return c -} - -// DataItemFilter sets the optional parameter "dataItemFilter": An -// expression for filtering the DataItem that will be returned. * -// `data_item_id` - for = or !=. * `labeled` - for = or !=. * -// `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that -// have at least one annotation with annotation_spec_id = -// `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. -// For example: * `data_item=1` * `has_annotation(5)` -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataItemFilter(dataItemFilter string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("dataItemFilter", dataItemFilter) - return c -} - -// DataLabelingJob sets the optional parameter "dataLabelingJob": The -// resource name of a DataLabelingJob. Format: -// `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeli -// ng_job}` If this field is set, all of the search will be done in the -// context of this DataLabelingJob. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) DataLabelingJob(dataLabelingJob string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("dataLabelingJob", dataLabelingJob) +func (r *ProjectsLocationsDatasetsSavedQueriesService) List(parent string) *ProjectsLocationsDatasetsSavedQueriesListCall { + c := &ProjectsLocationsDatasetsSavedQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// FieldMask sets the optional parameter "fieldMask": Mask specifying -// which fields of DataItemView to read. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) FieldMask(fieldMask string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("fieldMask", fieldMask) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesListCall { + 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. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSavedQueriesListCall { c.urlParams_.Set("orderBy", orderBy) return c } -// OrderByAnnotationOrderBy sets the optional parameter -// "orderByAnnotation.orderBy": A comma-separated list of annotation -// fields to order by, sorted in ascending order. Use "desc" after a -// field name for descending. Must also specify saved_query. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationOrderBy(orderByAnnotationOrderBy string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderByAnnotation.orderBy", orderByAnnotationOrderBy) - return c -} - -// OrderByAnnotationSavedQuery sets the optional parameter -// "orderByAnnotation.savedQuery": Required. Saved query of the -// Annotation. Only Annotations belong to this saved query will be -// considered for ordering. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByAnnotationSavedQuery(orderByAnnotationSavedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderByAnnotation.savedQuery", orderByAnnotationSavedQuery) - return c -} - -// OrderByDataItem sets the optional parameter "orderByDataItem": A -// comma-separated list of data item fields to order by, sorted in -// ascending order. Use "desc" after a field name for descending. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) OrderByDataItem(orderByDataItem string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("orderByDataItem", orderByDataItem) - return c -} - -// PageSize sets the optional parameter "pageSize": Requested page size. -// Server may return fewer results than requested. Default and maximum -// page size is 100. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSearchDataItemsCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results for the server to return Typically -// obtained via SearchDataItemsResponse.next_page_token of the previous -// DatasetService.SearchDataItems call. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSearchDataItemsCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// SavedQuery sets the optional parameter "savedQuery": The resource -// name of a SavedQuery(annotation set in UI). Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/savedQueri -// es/{saved_query}` All of the search will be done in the context of -// this SavedQuery. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) SavedQuery(savedQuery string) *ProjectsLocationsDatasetsSearchDataItemsCall { - c.urlParams_.Set("savedQuery", savedQuery) +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsSavedQueriesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSearchDataItemsCall { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -43714,7 +53229,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSearchDataItemsCall { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesListCall { c.ifNoneMatch_ = entityTag return c } @@ -43722,21 +53237,21 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSearchDataItemsCall { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesListCall { 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 *ProjectsLocationsDatasetsSearchDataItemsCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) 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_ { @@ -43749,7 +53264,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+dataset}:searchDataItems") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/savedQueries") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -43757,21 +53272,21 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "dataset": c.dataset, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.searchDataItems" call. -// Exactly one of *GoogleCloudAiplatformV1beta1SearchDataItemsResponse +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListSavedQueriesResponse // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudAiplatformV1beta1SearchDataItemsResponse.ServerResponse.He -// ader or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListSavedQueriesResponse.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 *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchDataItemsResponse, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListSavedQueriesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -43790,7 +53305,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1SearchDataItemsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListSavedQueriesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -43802,97 +53317,52 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Searches DataItems in a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}:searchDataItems", + // "description": "Lists SavedQueries in a Dataset.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.searchDataItems", + // "id": "aiplatform.projects.locations.datasets.savedQueries.list", // "parameterOrder": [ - // "dataset" + // "parent" // ], // "parameters": { - // "annotationFilters": { - // "description": "An expression that specifies what Annotations will be returned per DataItem. Annotations satisfied either of the conditions will be returned. * `annotation_spec_id` - for = or !=. Must specify `saved_query_id=` - saved query id that annotations should belong to.", + // "filter": { + // "description": "The standard list filter.", // "location": "query", - // "repeated": true, // "type": "string" // }, - // "annotationsFilter": { - // "deprecated": true, - // "description": "An expression for filtering the Annotations that will be returned per DataItem. * `annotation_spec_id` - for = or !=.", + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", // "location": "query", // "type": "string" // }, - // "annotationsLimit": { - // "description": "If set, only up to this many of Annotations will be returned per DataItemView. The maximum value is 1000. If not set, the maximum value will be used.", + // "pageSize": { + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, - // "dataItemFilter": { - // "description": "An expression for filtering the DataItem that will be returned. * `data_item_id` - for = or !=. * `labeled` - for = or !=. * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that have at least one annotation with annotation_spec_id = `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob. For example: * `data_item=1` * `has_annotation(5)`", - // "location": "query", - // "type": "string" - // }, - // "dataLabelingJob": { - // "description": "The resource name of a DataLabelingJob. Format: `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` If this field is set, all of the search will be done in the context of this DataLabelingJob.", + // "pageToken": { + // "description": "The standard list page token.", // "location": "query", // "type": "string" // }, - // "dataset": { - // "description": "Required. The resource name of the Dataset from which to search DataItems. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "parent": { + // "description": "Required. The resource name of the Dataset to list SavedQueries from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", // "required": true, // "type": "string" // }, - // "fieldMask": { - // "description": "Mask specifying which fields of DataItemView to read.", + // "readMask": { + // "description": "Mask specifying which fields to read.", // "format": "google-fieldmask", // "location": "query", // "type": "string" - // }, - // "orderBy": { - // "deprecated": true, - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "type": "string" - // }, - // "orderByAnnotation.orderBy": { - // "description": "A comma-separated list of annotation fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Must also specify saved_query.", - // "location": "query", - // "type": "string" - // }, - // "orderByAnnotation.savedQuery": { - // "description": "Required. Saved query of the Annotation. Only Annotations belong to this saved query will be considered for ordering.", - // "location": "query", - // "type": "string" - // }, - // "orderByDataItem": { - // "description": "A comma-separated list of data item fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Requested page size. Server may return fewer results than requested. Default and maximum page size is 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A token identifying a page of results for the server to return Typically obtained via SearchDataItemsResponse.next_page_token of the previous DatasetService.SearchDataItems call.", - // "location": "query", - // "type": "string" - // }, - // "savedQuery": { - // "deprecated": true, - // "description": "The resource name of a SavedQuery(annotation set in UI). Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}` All of the search will be done in the context of this SavedQuery.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+dataset}:searchDataItems", + // "path": "v1beta1/{+parent}/savedQueries", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchDataItemsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListSavedQueriesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -43904,7 +53374,7 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchDataItemsResponse) error) error { +func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListSavedQueriesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -43922,172 +53392,9 @@ func (c *ProjectsLocationsDatasetsSearchDataItemsCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.get": - -type ProjectsLocationsDatasetsAnnotationSpecsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets an AnnotationSpec. -// -// - name: The name of the AnnotationSpec resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/annotati -// onSpecs/{annotation_spec}`. -func (r *ProjectsLocationsDatasetsAnnotationSpecsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - c.urlParams_.Set("readMask", readMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsGetCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) 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.datasets.annotationSpecs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1AnnotationSpec or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1AnnotationSpec.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsAnnotationSpecsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AnnotationSpec, 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 := &GoogleCloudAiplatformV1beta1AnnotationSpec{ - 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 an AnnotationSpec.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the AnnotationSpec resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1AnnotationSpec" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.cancel": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44107,8 +53414,8 @@ type ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Cancel(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44116,7 +53423,7 @@ func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Cancel(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44124,21 +53431,21 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) 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_ { @@ -44161,14 +53468,14 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) doRequest return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44200,9 +53507,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts . 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.cancel", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -44210,7 +53517,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts . // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -44226,9 +53533,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsCancelCall) Do(opts . } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.delete": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44242,8 +53549,8 @@ type ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Delete(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44251,7 +53558,7 @@ func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Delete(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44259,21 +53566,21 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) 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_ { @@ -44296,14 +53603,14 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) doRequest return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44335,9 +53642,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts . return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.delete", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.delete", // "parameterOrder": [ // "name" // ], @@ -44345,7 +53652,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts . // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -44361,9 +53668,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsDeleteCall) Do(opts . } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.get": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.get": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44377,8 +53684,8 @@ type ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Get(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Get(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -44386,7 +53693,7 @@ func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Get(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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44396,7 +53703,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Fields(s ... // 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -44404,21 +53711,21 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) IfNoneMatch( // 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) 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_ { @@ -44444,14 +53751,14 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.get" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44483,9 +53790,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...g 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.get", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.get", // "parameterOrder": [ // "name" // ], @@ -44493,7 +53800,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...g // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -44509,9 +53816,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsGetCall) Do(opts ...g } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.list": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.list": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44525,29 +53832,29 @@ type ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) List(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) List(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -44555,7 +53862,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) PageToken(p // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -44565,7 +53872,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Fields(s .. // 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -44573,21 +53880,21 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) IfNoneMatch // 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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_ { @@ -44613,7 +53920,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.annotationSpecs.operations.list" call. +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 @@ -44621,7 +53928,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) doRequest(a // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -44653,9 +53960,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ... 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.list", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.list", // "parameterOrder": [ // "name" // ], @@ -44668,7 +53975,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ... // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", // "required": true, // "type": "string" // }, @@ -44698,7 +54005,7 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Do(opts ... // 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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 { @@ -44716,9 +54023,9 @@ func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsListCall) Pages(ctx c } } -// method id "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait": +// method id "aiplatform.projects.locations.datasets.savedQueries.operations.wait": -type ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall struct { +type ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -44738,504 +54045,77 @@ type ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsAnnotationSpecsOperationsService) Wait(name string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { - c := &ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall{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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall { - 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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) 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.datasets.annotationSpecs.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 *ProjectsLocationsDatasetsAnnotationSpecsOperationsWaitCall) 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}/datasets/{datasetsId}/annotationSpecs/{annotationSpecsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.annotationSpecs.operations.wait", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/annotationSpecs/[^/]+/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.datasets.dataItems.list": - -type ProjectsLocationsDatasetsDataItemsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists DataItems in a Dataset. -// -// - parent: The resource name of the Dataset to list DataItems from. -// Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsDataItemsService) List(parent string) *ProjectsLocationsDatasetsDataItemsListCall { - c := &ProjectsLocationsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsDataItemsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsListCall { - 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. -func (c *ProjectsLocationsDatasetsDataItemsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDataItemsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsListCall { - 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 *ProjectsLocationsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsListCall { - 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 *ProjectsLocationsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsListCall { - 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 *ProjectsLocationsDatasetsDataItemsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDatasetsDataItemsListCall) 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/{+parent}/dataItems") - 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{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.datasets.dataItems.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListDataItemsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListDataItemsResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDataItemsResponse, 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 := &GoogleCloudAiplatformV1beta1ListDataItemsResponse{ - 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 DataItems in a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.list", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "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" - // }, - // "parent": { - // "description": "Required. The resource name of the Dataset to list DataItems from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/dataItems", - // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListDataItemsResponse" - // }, - // "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 *ProjectsLocationsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDataItemsResponse) 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.datasets.dataItems.annotations.list": - -type ProjectsLocationsDatasetsDataItemsAnnotationsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists Annotations belongs to a dataitem -// -// - parent: The resource name of the DataItem to list Annotations from. -// Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/dataItem -// s/{data_item}`. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsService) List(parent string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - 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. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("pageToken", pageToken) +func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Wait(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { + c := &ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - c.urlParams_.Set("readMask", readMask) +// 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { + 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { - 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsListCall { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Header() http.Header { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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/{+parent}/annotations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListAnnotationsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListAnnotationsResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListAnnotationsResponse, error) { +// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45254,7 +54134,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListAnnotationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -45266,52 +54146,31 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googl } return ret, nil // { - // "description": "Lists Annotations belongs to a dataitem", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.list", + // "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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "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" - // }, - // "parent": { - // "description": "Required. The resource name of the DataItem to list Annotations from. Format: `projects/{project}/locations/{location}/datasets/{dataset}/dataItems/{data_item}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "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/{+parent}/annotations", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListAnnotationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45320,59 +54179,33 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Do(opts ...googl } -// 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 *ProjectsLocationsDatasetsDataItemsAnnotationsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListAnnotationsResponse) 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.datasets.dataItems.annotations.operations.cancel": +// method id "aiplatform.projects.locations.deploymentResourcePools.create": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeploymentResourcePoolsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest + 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: Create a DeploymentResourcePool. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent location resource where this +// DeploymentResourcePool will be created. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) Create(parent string, googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest) *ProjectsLocationsDeploymentResourcePoolsCreateCall { + c := &ProjectsLocationsDeploymentResourcePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest = googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45380,21 +54213,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Fiel // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsCreateCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) 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_ { @@ -45402,9 +54235,14 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRe } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest) + 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/{+parent}/deploymentResourcePools") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -45412,19 +54250,19 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) doRe } 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.datasets.dataItems.annotations.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.deploymentResourcePools.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45443,7 +54281,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(o 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, @@ -45455,25 +54293,28 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(o } 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:cancel", + // "description": "Create a DeploymentResourcePool.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.cancel", + // "id": "aiplatform.projects.locations.deploymentResourcePools.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "parent": { + // "description": "Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/deploymentResourcePools", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45482,9 +54323,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsCancelCall) Do(o } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete": +// method id "aiplatform.projects.locations.deploymentResourcePools.delete": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall struct { +type ProjectsLocationsDeploymentResourcePoolsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -45492,14 +54333,13 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall 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: Delete a DeploymentResourcePool. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DeploymentResourcePool to delete. Format: +// `projects/{project}/locations/{location}/deploymentResourcePools/{de +// ployment_resource_pool}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { + c := &ProjectsLocationsDeploymentResourcePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -45507,7 +54347,7 @@ func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Delete( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45515,21 +54355,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Fiel // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) 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_ { @@ -45552,14 +54392,14 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) doRe return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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.deploymentResourcePools.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45578,7 +54418,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(o 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, @@ -45590,25 +54430,25 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(o } 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + // "description": "Delete a DeploymentResourcePool.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.delete", + // "id": "aiplatform.projects.locations.deploymentResourcePools.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45617,9 +54457,9 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsDeleteCall) Do(o } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get": +// method id "aiplatform.projects.locations.deploymentResourcePools.get": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall struct { +type ProjectsLocationsDeploymentResourcePoolsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -45628,13 +54468,13 @@ type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall 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: Get a DeploymentResourcePool. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the DeploymentResourcePool to retrieve. Format: +// `projects/{project}/locations/{location}/deploymentResourcePools/{de +// ployment_resource_pool}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsGetCall { + c := &ProjectsLocationsDeploymentResourcePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -45642,7 +54482,7 @@ func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Get(nam // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45652,7 +54492,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Fields( // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -45660,21 +54500,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) IfNoneM // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsGetCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) 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_ { @@ -45700,14 +54540,16 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) doReque return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1DeploymentResourcePool or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1DeploymentResourcePool.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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DeploymentResourcePool, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45726,7 +54568,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1DeploymentResourcePool{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -45738,25 +54580,25 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts } 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}", + // "description": "Get a DeploymentResourcePool.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.get", + // "id": "aiplatform.projects.locations.deploymentResourcePools.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1DeploymentResourcePool" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45765,45 +54607,42 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsGetCall) Do(opts } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list": +// method id "aiplatform.projects.locations.deploymentResourcePools.list": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall struct { +type ProjectsLocationsDeploymentResourcePoolsListCall 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: List DeploymentResourcePools in a location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { - c.urlParams_.Set("filter", filter) +// - parent: The parent Location which owns this collection of +// DeploymentResourcePools. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) List(parent string) *ProjectsLocationsDeploymentResourcePoolsListCall { + c := &ProjectsLocationsDeploymentResourcePoolsListCall{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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number +// of DeploymentResourcePools to return. The service may return fewer +// than this value. +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDeploymentResourcePools` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListDeploymentResourcePools` must match the +// call that provided the page token. +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -45811,7 +54650,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) PageTo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -45821,7 +54660,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Fields // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsListCall { c.ifNoneMatch_ = entityTag return c } @@ -45829,21 +54668,21 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) IfNone // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsListCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) 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_ { @@ -45856,7 +54695,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequ 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}/deploymentResourcePools") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -45864,20 +54703,22 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) doRequ } 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.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.Serve +// rResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -45896,7 +54737,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -45908,41 +54749,36 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opt } 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations", + // "description": "List DeploymentResourcePools in a location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.list", + // "id": "aiplatform.projects.locations.deploymentResourcePools.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/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+$", - // "required": true, - // "type": "string" - // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of DeploymentResourcePools to return. The service may return fewer than this value.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeploymentResourcePools` must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent Location which owns this collection of DeploymentResourcePools. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/deploymentResourcePools", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -45954,7 +54790,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Do(opt // 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -45972,99 +54808,120 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsListCall) Pages( } } -// method id "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait": +// method id "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels": -type ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall struct { + s *Service + deploymentResourcePool string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// QueryDeployedModels: List DeployedModels that have been deployed on +// this DeploymentResourcePool. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { - c := &ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - deploymentResourcePool: The name of the target +// DeploymentResourcePool to query. Format: +// `projects/{project}/locations/{location}/deploymentResourcePools/{de +// ployment_resource_pool}`. +func (r *ProjectsLocationsDeploymentResourcePoolsService) QueryDeployedModels(deploymentResourcePool string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + c := &ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.deploymentResourcePool = deploymentResourcePool 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// PageSize sets the optional parameter "pageSize": The maximum number +// of DeployedModels to return. The service may return fewer than this +// value. +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `QueryDeployedModels` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `QueryDeployedModels` must match the call that provided +// the page token. +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { + 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { 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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+deploymentResourcePool}:queryDeployedModels") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "deploymentResourcePool": c.deploymentResourcePool, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.annotations.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 *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse.ServerRespons +// e.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46083,7 +54940,7 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -46095,31 +54952,36 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opt } 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/annotations/{annotationsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.annotations.operations.wait", + // "description": "List DeployedModels that have been deployed on this DeploymentResourcePool.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}:queryDeployedModels", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels", // "parameterOrder": [ - // "name" + // "deploymentResourcePool" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "deploymentResourcePool": { + // "description": "Required. The name of the target DeploymentResourcePool to query. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/annotations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "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", + // "pageSize": { + // "description": "The maximum number of DeployedModels to return. The service may return fewer than this value.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match the call that provided the page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+deploymentResourcePool}:queryDeployedModels", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -46128,9 +54990,30 @@ func (c *ProjectsLocationsDatasetsDataItemsAnnotationsOperationsWaitCall) Do(opt } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.cancel": +// 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse) 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) + } +} -type ProjectsLocationsDatasetsDataItemsOperationsCancelCall struct { +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.cancel": + +type ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46150,8 +55033,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Cancel(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -46159,7 +55042,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Cancel(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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46167,21 +55050,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Fields(s ...goo // 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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsCancelCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) 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_ { @@ -46204,14 +55087,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46243,9 +55126,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...goog 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.cancel", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -46253,7 +55136,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -46269,9 +55152,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsCancelCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.delete": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.delete": -type ProjectsLocationsDatasetsDataItemsOperationsDeleteCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46285,8 +55168,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Delete(name string) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -46294,7 +55177,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) 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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46302,21 +55185,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Fields(s ...goo // 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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) 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_ { @@ -46339,14 +55222,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.delete" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46378,9 +55261,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...goog 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.delete", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.delete", // "parameterOrder": [ // "name" // ], @@ -46388,7 +55271,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -46404,9 +55287,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsDeleteCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.get": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.get": -type ProjectsLocationsDatasetsDataItemsOperationsGetCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46420,8 +55303,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Get(name string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -46429,7 +55312,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Get(name string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46439,7 +55322,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Fields(s ...google // 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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -46447,21 +55330,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) IfNoneMatch(entity // 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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsGetCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) 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_ { @@ -46487,14 +55370,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.get" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46526,9 +55409,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googlea 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.get", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.get", // "parameterOrder": [ // "name" // ], @@ -46536,7 +55419,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googlea // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -46552,9 +55435,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsGetCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.list": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.list": -type ProjectsLocationsDatasetsDataItemsOperationsListCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46568,29 +55451,29 @@ type ProjectsLocationsDatasetsDataItemsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) List(name string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) List(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Filter(filter string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -46598,7 +55481,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) PageToken(pageTok // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46608,7 +55491,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Fields(s ...googl // 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -46616,21 +55499,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) IfNoneMatch(entit // 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsListCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) 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_ { @@ -46656,7 +55539,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.list" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 @@ -46664,7 +55547,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) doRequest(alt str // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46696,9 +55579,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...google 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.list", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.list", // "parameterOrder": [ // "name" // ], @@ -46711,7 +55594,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...google // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", // "required": true, // "type": "string" // }, @@ -46741,7 +55624,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Do(opts ...google // 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 *ProjectsLocationsDatasetsDataItemsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) 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 { @@ -46759,9 +55642,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsListCall) Pages(ctx context } } -// method id "aiplatform.projects.locations.datasets.dataItems.operations.wait": +// method id "aiplatform.projects.locations.deploymentResourcePools.operations.wait": -type ProjectsLocationsDatasetsDataItemsOperationsWaitCall struct { +type ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -46781,8 +55664,8 @@ type ProjectsLocationsDatasetsDataItemsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Wait(name string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { - c := &ProjectsLocationsDatasetsDataItemsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Wait(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { + c := &ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -46791,7 +55674,7 @@ func (r *ProjectsLocationsDatasetsDataItemsOperationsService) Wait(name string) // 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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -46799,7 +55682,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Timeout(timeout s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -46807,21 +55690,21 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) 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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDataItemsOperationsWaitCall { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { 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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) 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_ { @@ -46844,14 +55727,14 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.dataItems.operations.wait" call. +// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -46883,9 +55766,9 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...google 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}/datasets/{datasetsId}/dataItems/{dataItemsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.dataItems.operations.wait", + // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.wait", // "parameterOrder": [ // "name" // ], @@ -46893,7 +55776,7 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...google // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dataItems/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -46915,363 +55798,72 @@ func (c *ProjectsLocationsDatasetsDataItemsOperationsWaitCall) Do(opts ...google } -// method id "aiplatform.projects.locations.datasets.datasetVersions.create": - -type ProjectsLocationsDatasetsDatasetVersionsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Create a version from a Dataset. -// -// - parent: The name of the Dataset resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Create(parent string, googlecloudaiplatformv1beta1datasetversion *GoogleCloudAiplatformV1beta1DatasetVersion) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { - c := &ProjectsLocationsDatasetsDatasetVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1datasetversion = googlecloudaiplatformv1beta1datasetversion - 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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { - 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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsCreateCall { - 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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDatasetsDatasetVersionsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1datasetversion) - 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/{+parent}/datasetVersions") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.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 *ProjectsLocationsDatasetsDatasetVersionsCreateCall) 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": "Create a version from a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The name of the Dataset resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/datasetVersions", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.datasets.datasetVersions.delete": - -type ProjectsLocationsDatasetsDatasetVersionsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a Dataset version. -// -// - name: The resource name of the Dataset version to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV -// ersions/{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Delete(name string) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { - c := &ProjectsLocationsDatasetsDatasetVersionsDeleteCall{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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { - 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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsDeleteCall { - 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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) 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.datasets.datasetVersions.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 *ProjectsLocationsDatasetsDatasetVersionsDeleteCall) 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": "Deletes a Dataset version.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.datasets.datasetVersions.get": +// method id "aiplatform.projects.locations.edgeDevices.operations.cancel": -type ProjectsLocationsDatasetsDatasetVersionsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEdgeDevicesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a Dataset version. +// 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 resource name of the Dataset version to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV -// ersions/{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Get(name string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { - c := &ProjectsLocationsDatasetsDatasetVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsEdgeDevicesOperationsService) Cancel(name string) *ProjectsLocationsEdgeDevicesOperationsCancelCall { + c := &ProjectsLocationsEdgeDevicesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsGetCall { +func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsCancelCall { 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsGetCall { - 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsGetCall { +func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsCancelCall { 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 *ProjectsLocationsDatasetsDatasetVersionsGetCall) Header() http.Header { +func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -47282,16 +55874,14 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1DatasetVersion or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1DatasetVersion.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DatasetVersion, error) { +// Do executes the "aiplatform.projects.locations.edgeDevices.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 *ProjectsLocationsEdgeDevicesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47310,7 +55900,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1DatasetVersion{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47322,31 +55912,25 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets a Dataset version.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.get", + // "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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.edgeDevices.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Dataset version to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1DatasetVersion" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47355,136 +55939,84 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.datasets.datasetVersions.list": +// method id "aiplatform.projects.locations.edgeDevices.operations.delete": -type ProjectsLocationsDatasetsDatasetVersionsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEdgeDevicesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists DatasetVersions in a Dataset. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - parent: The resource name of the Dataset to list DatasetVersions -// from. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) List(parent string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c := &ProjectsLocationsDatasetsDatasetVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Filter(filter string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - 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. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsEdgeDevicesOperationsService) Delete(name string) *ProjectsLocationsEdgeDevicesOperationsDeleteCall { + c := &ProjectsLocationsEdgeDevicesOperationsDeleteCall{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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsListCall { +func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsDeleteCall { 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsListCall { - 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsListCall { +func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsDeleteCall { 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Header() http.Header { +func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) 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/{+parent}/datasetVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse, error) { +// Do executes the "aiplatform.projects.locations.edgeDevices.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 *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47503,7 +56035,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47515,52 +56047,25 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists DatasetVersions in a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.list", + // "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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.edgeDevices.operations.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Optional. The standard list filter.", - // "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.", - // "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 Dataset to list DatasetVersions from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/datasetVersions", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47569,30 +56074,9 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsListCall) 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 *ProjectsLocationsDatasetsDatasetVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDatasetVersionsResponse) 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.datasets.datasetVersions.restore": +// method id "aiplatform.projects.locations.edgeDevices.operations.get": -type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { +type ProjectsLocationsEdgeDevicesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -47601,13 +56085,13 @@ type ProjectsLocationsDatasetsDatasetVersionsRestoreCall struct { header_ http.Header } -// Restore: Restores a dataset version. +// 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 DatasetVersion resource. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/datasetV -// ersions/{dataset_version}`. -func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(name string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { - c := &ProjectsLocationsDatasetsDatasetVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsEdgeDevicesOperationsService) Get(name string) *ProjectsLocationsEdgeDevicesOperationsGetCall { + c := &ProjectsLocationsEdgeDevicesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -47615,7 +56099,7 @@ func (r *ProjectsLocationsDatasetsDatasetVersionsService) Restore(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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -47625,7 +56109,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Fields(s ...google // 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEdgeDevicesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -47633,21 +56117,21 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) IfNoneMatch(entity // 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDatasetVersionsRestoreCall { +func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsGetCall { 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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Header() http.Header { +func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) 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_ { @@ -47660,7 +56144,7 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:restore") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -47673,14 +56157,14 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.datasetVersions.restore" call. +// Do executes the "aiplatform.projects.locations.edgeDevices.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 *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47711,23 +56195,23 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea } return ret, nil // { - // "description": "Restores a dataset version.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/datasetVersions/{datasetVersionsId}:restore", + // "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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.datasetVersions.restore", + // "id": "aiplatform.projects.locations.edgeDevices.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DatasetVersion resource. Format: `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/datasetVersions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:restore", + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -47738,72 +56222,100 @@ func (c *ProjectsLocationsDatasetsDatasetVersionsRestoreCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.datasets.operations.cancel": +// method id "aiplatform.projects.locations.edgeDevices.operations.list": -type ProjectsLocationsDatasetsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEdgeDevicesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// 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 resource to be cancelled. -func (r *ProjectsLocationsDatasetsOperationsService) Cancel(name string) *ProjectsLocationsDatasetsOperationsCancelCall { - c := &ProjectsLocationsDatasetsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsEdgeDevicesOperationsService) List(name string) *ProjectsLocationsEdgeDevicesOperationsListCall { + c := &ProjectsLocationsEdgeDevicesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Filter(filter string) *ProjectsLocationsEdgeDevicesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEdgeDevicesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEdgeDevicesOperationsListCall { + 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 *ProjectsLocationsDatasetsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsCancelCall { +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsListCall { 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 *ProjectsLocationsEdgeDevicesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEdgeDevicesOperationsListCall { + 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 *ProjectsLocationsDatasetsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsCancelCall { +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsListCall { 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 *ProjectsLocationsDatasetsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) 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}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -47814,14 +56326,15 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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 +// Do executes the "aiplatform.projects.locations.edgeDevices.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 *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47840,7 +56353,7 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -47852,25 +56365,41 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal } 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}/datasets/{datasetsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.operations.cancel", + // "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}/edgeDevices/{edgeDevicesId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.edgeDevices.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$", // "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}:cancel", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -47879,9 +56408,30 @@ func (c *ProjectsLocationsDatasetsOperationsCancelCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.datasets.operations.delete": +// 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 *ProjectsLocationsEdgeDevicesOperationsListCall) 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) + } +} -type ProjectsLocationsDatasetsOperationsDeleteCall struct { +// method id "aiplatform.projects.locations.edgeDevices.operations.wait": + +type ProjectsLocationsEdgeDevicesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -47889,22 +56439,37 @@ type ProjectsLocationsDatasetsOperationsDeleteCall 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`. +// 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 be deleted. -func (r *ProjectsLocationsDatasetsOperationsService) Delete(name string) *ProjectsLocationsDatasetsOperationsDeleteCall { - c := &ProjectsLocationsDatasetsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsEdgeDevicesOperationsService) Wait(name string) *ProjectsLocationsEdgeDevicesOperationsWaitCall { + c := &ProjectsLocationsEdgeDevicesOperationsWaitCall{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 *ProjectsLocationsEdgeDevicesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEdgeDevicesOperationsWaitCall { + 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 *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsDeleteCall { +func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -47912,21 +56477,21 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsDeleteCall { +func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsWaitCall { 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 *ProjectsLocationsDatasetsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) 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_ { @@ -47936,9 +56501,9 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (* var body io.Reader = nil 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -47949,14 +56514,14 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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.edgeDevices.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 *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -47975,7 +56540,7 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.Cal 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, @@ -47987,25 +56552,31 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.Cal } 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}/datasets/{datasetsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.operations.delete", + // "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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.edgeDevices.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/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}", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48014,97 +56585,91 @@ func (c *ProjectsLocationsDatasetsOperationsDeleteCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.datasets.operations.get": +// method id "aiplatform.projects.locations.endpoints.computeTokens": -type ProjectsLocationsDatasetsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsComputeTokensCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest + 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. +// ComputeTokens: Return a list of tokens based on the input text. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsOperationsService) Get(name string) *ProjectsLocationsDatasetsOperationsGetCall { - c := &ProjectsLocationsDatasetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to get lists of tokens +// and token ids. +func (r *ProjectsLocationsEndpointsService) ComputeTokens(endpoint string, googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest) *ProjectsLocationsEndpointsComputeTokensCall { + c := &ProjectsLocationsEndpointsComputeTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1computetokensrequest = googlecloudaiplatformv1beta1computetokensrequest 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 *ProjectsLocationsDatasetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsGetCall { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsComputeTokensCall { 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 *ProjectsLocationsDatasetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsGetCall { - 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 *ProjectsLocationsDatasetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsGetCall { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsComputeTokensCall { 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 *ProjectsLocationsDatasetsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsComputeTokensCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsComputeTokensCall) 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.googlecloudaiplatformv1beta1computetokensrequest) + 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/{+endpoint}:computeTokens") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.computeTokens" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ComputeTokensResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ComputeTokensResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ComputeTokensResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48123,7 +56688,7 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ComputeTokensResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48135,25 +56700,28 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp } 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}/datasets/{datasetsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.operations.get", + // "description": "Return a list of tokens based on the input text.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:computeTokens", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.computeTokens", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+endpoint}:computeTokens", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48162,119 +56730,94 @@ func (c *ProjectsLocationsDatasetsOperationsGetCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.datasets.operations.list": +// method id "aiplatform.projects.locations.endpoints.countTokens": -type ProjectsLocationsDatasetsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsCountTokensCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// CountTokens: Perform a token counting. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDatasetsOperationsService) List(name string) *ProjectsLocationsDatasetsOperationsListCall { - c := &ProjectsLocationsDatasetsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - endpoint: The name of the Endpoint requested to perform token +// counting. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) CountTokens(endpoint string, googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest) *ProjectsLocationsEndpointsCountTokensCall { + c := &ProjectsLocationsEndpointsCountTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1counttokensrequest = googlecloudaiplatformv1beta1counttokensrequest 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 *ProjectsLocationsDatasetsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsEndpointsCountTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCountTokensCall { 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 *ProjectsLocationsDatasetsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsOperationsListCall { - 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 *ProjectsLocationsDatasetsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsListCall { +func (c *ProjectsLocationsEndpointsCountTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCountTokensCall { 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 *ProjectsLocationsDatasetsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsCountTokensCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsCountTokensCall) 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.googlecloudaiplatformv1beta1counttokensrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:countTokens") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.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 *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.countTokens" call. +// Exactly one of *GoogleCloudAiplatformV1beta1CountTokensResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1CountTokensResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CountTokensResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48293,7 +56836,7 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1CountTokensResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48305,41 +56848,28 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO } 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}/datasets/{datasetsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.operations.list", + // "description": "Perform a token counting.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.countTokens", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+endpoint}:countTokens", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48348,68 +56878,48 @@ func (c *ProjectsLocationsDatasetsOperationsListCall) Do(opts ...googleapi.CallO } -// 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 *ProjectsLocationsDatasetsOperationsListCall) 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.datasets.operations.wait": +// method id "aiplatform.projects.locations.endpoints.create": -type ProjectsLocationsDatasetsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint + 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. +// Create: Creates an Endpoint. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsOperationsService) Wait(name string) *ProjectsLocationsDatasetsOperationsWaitCall { - c := &ProjectsLocationsDatasetsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the Endpoint +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEndpointsService) Create(parent string, googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint) *ProjectsLocationsEndpointsCreateCall { + c := &ProjectsLocationsEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1endpoint = googlecloudaiplatformv1beta1endpoint 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 *ProjectsLocationsDatasetsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// EndpointId sets the optional parameter "endpointId": Immutable. The +// ID to use for endpoint, which will become the final component of the +// endpoint resource name. If not provided, Vertex AI will generate a +// value for this ID. If the first character is a letter, this value may +// be up to 63 characters, and valid characters are `[a-z0-9-]`. The +// last character must be a letter or number. If the first character is +// a number, this value may be up to 9 characters, and valid characters +// are `[0-9]` with no leading zeros. When using HTTP/JSON, this field +// is populated based on a query string argument, such as +// `?endpoint_id=12345`. This is the fallback for fields that are not +// included in either the URI or the body. +func (c *ProjectsLocationsEndpointsCreateCall) EndpointId(endpointId string) *ProjectsLocationsEndpointsCreateCall { + c.urlParams_.Set("endpointId", endpointId) 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 *ProjectsLocationsDatasetsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsOperationsWaitCall { +func (c *ProjectsLocationsEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48417,21 +56927,21 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsDatasetsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsOperationsWaitCall { +func (c *ProjectsLocationsEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCreateCall { 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 *ProjectsLocationsDatasetsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsCreateCall) 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_ { @@ -48439,9 +56949,14 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1endpoint) + 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/{+parent}/endpoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -48449,19 +56964,19 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) doRequest(alt string) (*ht } 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.datasets.operations.wait" call. +// Do executes the "aiplatform.projects.locations.endpoints.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 *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48492,29 +57007,31 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallO } 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}/datasets/{datasetsId}/operations/{operationsId}:wait", + // "description": "Creates an Endpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.operations.wait", + // "id": "aiplatform.projects.locations.endpoints.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/operations/[^/]+$", - // "required": true, + // "endpointId": { + // "description": "Immutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID. If the first character is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last character must be a letter or number. If the first character is a number, this value may be up to 9 characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the fallback for fields that are not included in either the URI or the body.", + // "location": "query", // "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", + // "parent": { + // "description": "Required. The resource name of the Location to create the Endpoint in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+parent}/endpoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -48525,9 +57042,9 @@ func (c *ProjectsLocationsDatasetsOperationsWaitCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.datasets.savedQueries.delete": +// method id "aiplatform.projects.locations.endpoints.delete": -type ProjectsLocationsDatasetsSavedQueriesDeleteCall struct { +type ProjectsLocationsEndpointsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -48535,13 +57052,12 @@ type ProjectsLocationsDatasetsSavedQueriesDeleteCall struct { header_ http.Header } -// Delete: Deletes a SavedQuery. +// Delete: Deletes an Endpoint. // -// - name: The resource name of the SavedQuery to delete. Format: -// `projects/{project}/locations/{location}/datasets/{dataset}/savedQue -// ries/{saved_query}`. -func (r *ProjectsLocationsDatasetsSavedQueriesService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { - c := &ProjectsLocationsDatasetsSavedQueriesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Endpoint resource to be deleted. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Delete(name string) *ProjectsLocationsEndpointsDeleteCall { + c := &ProjectsLocationsEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -48549,7 +57065,7 @@ func (r *ProjectsLocationsDatasetsSavedQueriesService) Delete(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { +func (c *ProjectsLocationsEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48557,21 +57073,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) 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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesDeleteCall { +func (c *ProjectsLocationsEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeleteCall { 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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDeleteCall) 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_ { @@ -48594,14 +57110,14 @@ func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.delete" call. +// Do executes the "aiplatform.projects.locations.endpoints.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 *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48632,162 +57148,118 @@ func (c *ProjectsLocationsDatasetsSavedQueriesDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Deletes a SavedQuery.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries/{savedQueriesId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.savedQueries.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The resource name of the SavedQuery to delete. Format: `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.datasets.savedQueries.list": - -type ProjectsLocationsDatasetsSavedQueriesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists SavedQueries in a Dataset. -// -// - parent: The resource name of the Dataset to list SavedQueries from. -// Format: -// `projects/{project}/locations/{location}/datasets/{dataset}`. -func (r *ProjectsLocationsDatasetsSavedQueriesService) List(parent string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c := &ProjectsLocationsDatasetsSavedQueriesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("filter", filter) - return c -} + // "description": "Deletes an Endpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.endpoints.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Endpoint resource to be deleted. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } -// 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. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) OrderBy(orderBy string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} +// method id "aiplatform.projects.locations.endpoints.deployModel": -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +type ProjectsLocationsEndpointsDeployModelCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1deploymodelrequest *GoogleCloudAiplatformV1beta1DeployModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) ReadMask(readMask string) *ProjectsLocationsDatasetsSavedQueriesListCall { - c.urlParams_.Set("readMask", readMask) +// DeployModel: Deploys a Model into this Endpoint, creating a +// DeployedModel within it. +// +// - endpoint: The name of the Endpoint resource into which to deploy a +// Model. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) DeployModel(endpoint string, googlecloudaiplatformv1beta1deploymodelrequest *GoogleCloudAiplatformV1beta1DeployModelRequest) *ProjectsLocationsEndpointsDeployModelCall { + c := &ProjectsLocationsEndpointsDeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1deploymodelrequest = googlecloudaiplatformv1beta1deploymodelrequest 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesListCall { +func (c *ProjectsLocationsEndpointsDeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeployModelCall { 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 *ProjectsLocationsDatasetsSavedQueriesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesListCall { - 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesListCall { +func (c *ProjectsLocationsEndpointsDeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeployModelCall { 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 *ProjectsLocationsDatasetsSavedQueriesListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDeployModelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDeployModelCall) 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.googlecloudaiplatformv1beta1deploymodelrequest) + 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/{+parent}/savedQueries") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:deployModel") 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{ - "parent": c.parent, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListSavedQueriesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListSavedQueriesResponse.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 *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListSavedQueriesResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.deployModel" 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 *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48806,7 +57278,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListSavedQueriesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -48818,52 +57290,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Lists SavedQueries in a Dataset.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/savedQueries", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.savedQueries.list", + // "description": "Deploys a Model into this Endpoint, creating a DeployedModel within it.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:deployModel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.deployModel", // "parameterOrder": [ - // "parent" + // "endpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", - // "location": "query", - // "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" - // }, - // "parent": { - // "description": "Required. The resource name of the Dataset to list SavedQueries from. Format: `projects/{project}/locations/{location}/datasets/{dataset}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint resource into which to deploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/savedQueries", + // "path": "v1beta1/{+endpoint}:deployModel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DeployModelRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListSavedQueriesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -48872,59 +57320,34 @@ func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Do(opts ...googleapi.Cal } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsDatasetsSavedQueriesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListSavedQueriesResponse) 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.datasets.savedQueries.operations.cancel": +// method id "aiplatform.projects.locations.endpoints.directPredict": -type ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsDirectPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1directpredictrequest *GoogleCloudAiplatformV1beta1DirectPredictRequest + 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`. +// DirectPredict: Perform an unary online prediction request for Vertex +// first-party products and frameworks. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Cancel(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) DirectPredict(endpoint string, googlecloudaiplatformv1beta1directpredictrequest *GoogleCloudAiplatformV1beta1DirectPredictRequest) *ProjectsLocationsEndpointsDirectPredictCall { + c := &ProjectsLocationsEndpointsDirectPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1directpredictrequest = googlecloudaiplatformv1beta1directpredictrequest 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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { +func (c *ProjectsLocationsEndpointsDirectPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -48932,21 +57355,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall { +func (c *ProjectsLocationsEndpointsDirectPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectPredictCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDirectPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDirectPredictCall) 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_ { @@ -48954,9 +57377,14 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1directpredictrequest) + 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/{+endpoint}:directPredict") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -48964,19 +57392,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.endpoints.directPredict" call. +// Exactly one of *GoogleCloudAiplatformV1beta1DirectPredictResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1DirectPredictResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DirectPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -48995,7 +57425,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1DirectPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49007,25 +57437,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) 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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:cancel", + // "description": "Perform an unary online prediction request for Vertex first-party products and frameworks.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directPredict", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.cancel", + // "id": "aiplatform.projects.locations.endpoints.directPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+endpoint}:directPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DirectPredictRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1DirectPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49034,32 +57467,33 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsCancelCall) Do(opts ...g } -// method id "aiplatform.projects.locations.datasets.savedQueries.operations.delete": +// method id "aiplatform.projects.locations.endpoints.directRawPredict": -type ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsDirectRawPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1directrawpredictrequest *GoogleCloudAiplatformV1beta1DirectRawPredictRequest + 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`. +// DirectRawPredict: Perform an online prediction request through gRPC. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Delete(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) DirectRawPredict(endpoint string, googlecloudaiplatformv1beta1directrawpredictrequest *GoogleCloudAiplatformV1beta1DirectRawPredictRequest) *ProjectsLocationsEndpointsDirectRawPredictCall { + c := &ProjectsLocationsEndpointsDirectRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1directrawpredictrequest = googlecloudaiplatformv1beta1directrawpredictrequest 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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectRawPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49067,21 +57501,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectRawPredictCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsDirectRawPredictCall) 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_ { @@ -49089,29 +57523,36 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1directrawpredictrequest) + 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/{+endpoint}:directRawPredict") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.endpoints.directRawPredict" call. +// Exactly one of *GoogleCloudAiplatformV1beta1DirectRawPredictResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1DirectRawPredictResponse.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 *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DirectRawPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49130,7 +57571,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1DirectRawPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49142,25 +57583,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) 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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.delete", + // "description": "Perform an online prediction request through gRPC.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directRawPredict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.directRawPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+endpoint}:directRawPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DirectRawPredictRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1DirectRawPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49169,97 +57613,95 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsDeleteCall) Do(opts ...g } -// method id "aiplatform.projects.locations.datasets.savedQueries.operations.get": +// method id "aiplatform.projects.locations.endpoints.explain": -type ProjectsLocationsDatasetsSavedQueriesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsExplainCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1explainrequest *GoogleCloudAiplatformV1beta1ExplainRequest + 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. +// Explain: Perform an online explanation. If deployed_model_id is +// specified, the corresponding DeployModel must have explanation_spec +// populated. If deployed_model_id is not specified, all DeployedModels +// must have explanation_spec populated. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Get(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// explanation. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Explain(endpoint string, googlecloudaiplatformv1beta1explainrequest *GoogleCloudAiplatformV1beta1ExplainRequest) *ProjectsLocationsEndpointsExplainCall { + c := &ProjectsLocationsEndpointsExplainCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1explainrequest = googlecloudaiplatformv1beta1explainrequest 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { +func (c *ProjectsLocationsEndpointsExplainCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsExplainCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { - 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall { +func (c *ProjectsLocationsEndpointsExplainCall) Context(ctx context.Context) *ProjectsLocationsEndpointsExplainCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsExplainCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsExplainCall) 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.googlecloudaiplatformv1beta1explainrequest) + 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/{+endpoint}:explain") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.explain" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ExplainResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ExplainResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ExplainResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49278,7 +57720,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ExplainResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49290,25 +57732,28 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) 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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.get", + // "description": "Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels must have explanation_spec populated.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:explain", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.explain", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the explanation. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+endpoint}:explain", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ExplainRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ExplainResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49317,53 +57762,31 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsGetCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.datasets.savedQueries.operations.list": - -type ProjectsLocationsDatasetsSavedQueriesOperationsListCall 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 *ProjectsLocationsDatasetsSavedQueriesOperationsService) List(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Filter(filter string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} +// method id "aiplatform.projects.locations.endpoints.get": -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type ProjectsLocationsEndpointsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Get: Gets an Endpoint. +// +// - name: The name of the Endpoint resource. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Get(name string) *ProjectsLocationsEndpointsGetCall { + c := &ProjectsLocationsEndpointsGetCall{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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { +func (c *ProjectsLocationsEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49373,7 +57796,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { +func (c *ProjectsLocationsEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -49381,21 +57804,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsListCall { +func (c *ProjectsLocationsEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsGetCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsGetCall) 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_ { @@ -49408,7 +57831,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -49421,15 +57844,15 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Endpoint or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Endpoint.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Endpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49448,7 +57871,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1Endpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49460,41 +57883,25 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations", + // "description": "Gets an Endpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.list", + // "id": "aiplatform.projects.locations.endpoints.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The name of the Endpoint resource. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49503,68 +57910,52 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsListCall) 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.datasets.savedQueries.operations.wait": +// method id "aiplatform.projects.locations.endpoints.getIamPolicy": -type ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall struct { +type ProjectsLocationsEndpointsGetIamPolicyCall struct { s *Service - name string + resource 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. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDatasetsSavedQueriesOperationsService) Wait(name string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { - c := &ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsEndpointsService) GetIamPolicy(resource string) *ProjectsLocationsEndpointsGetIamPolicyCall { + c := &ProjectsLocationsEndpointsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsEndpointsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEndpointsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49572,21 +57963,21 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointsGetIamPolicyCall { 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 *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsGetIamPolicyCall) 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_ { @@ -49596,7 +57987,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -49604,19 +57995,19 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.datasets.savedQueries.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.endpoints.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49635,7 +58026,7 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49647,31 +58038,31 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) 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}/datasets/{datasetsId}/savedQueries/{savedQueriesId}/operations/{operationsId}:wait", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:getIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.datasets.savedQueries.operations.wait", + // "id": "aiplatform.projects.locations.endpoints.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/savedQueries/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "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/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49680,72 +58071,116 @@ func (c *ProjectsLocationsDatasetsSavedQueriesOperationsWaitCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.deploymentResourcePools.create": +// method id "aiplatform.projects.locations.endpoints.list": -type ProjectsLocationsDeploymentResourcePoolsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Create a DeploymentResourcePool. +// List: Lists Endpoints in a Location. // -// - parent: The parent location resource where this -// DeploymentResourcePool will be created. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) Create(parent string, googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest *GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest) *ProjectsLocationsDeploymentResourcePoolsCreateCall { - c := &ProjectsLocationsDeploymentResourcePoolsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location from which to list the +// Endpoints. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsEndpointsService) List(parent string) *ProjectsLocationsEndpointsListCall { + c := &ProjectsLocationsEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest = googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `endpoint` supports = and !=. +// `endpoint` represents the Endpoint ID, i.e. the last segment of the +// Endpoint's resource name. * `display_name` supports = and, != * +// `labels` supports general map functions that is: * `labels.key=value` +// - key:value equality * `labels.key:* or labels:key - key existence * +// A key including a space must be quoted. `labels."a key". Some +// examples: * `endpoint=1` * `displayName="myDisplayName" * +// `labels.myKey="myValue" +func (c *ProjectsLocationsEndpointsListCall) Filter(filter string) *ProjectsLocationsEndpointsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListEndpointsResponse.next_page_token of the previous +// EndpointService.ListEndpoints call. +func (c *ProjectsLocationsEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsEndpointsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsCreateCall { +func (c *ProjectsLocationsEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsListCall { 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 *ProjectsLocationsEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsListCall { + 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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsCreateCall { +func (c *ProjectsLocationsEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsListCall { 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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1createdeploymentresourcepoolrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/deploymentResourcePools") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/endpoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -49756,14 +58191,16 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListEndpointsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListEndpointsResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListEndpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49782,7 +58219,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListEndpointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -49794,28 +58231,47 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleap } return ret, nil // { - // "description": "Create a DeploymentResourcePool.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.deploymentResourcePools.create", + // "description": "Lists Endpoints in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.endpoints.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "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. Typically obtained via ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The parent location resource where this DeploymentResourcePool will be created. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location from which to list the Endpoints. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/deploymentResourcePools", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CreateDeploymentResourcePoolRequest" - // }, + // "path": "v1beta1/{+parent}/endpoints", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListEndpointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -49824,31 +58280,57 @@ func (c *ProjectsLocationsDeploymentResourcePoolsCreateCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.deploymentResourcePools.delete": +// 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 *ProjectsLocationsEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListEndpointsResponse) 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) + } +} -type ProjectsLocationsDeploymentResourcePoolsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.endpoints.mutateDeployedModel": + +type ProjectsLocationsEndpointsMutateDeployedModelCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1mutatedeployedmodelrequest *GoogleCloudAiplatformV1beta1MutateDeployedModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Delete a DeploymentResourcePool. +// MutateDeployedModel: Updates an existing deployed model. Updatable +// fields include `min_replica_count`, `max_replica_count`, +// `autoscaling_metric_specs`, `disable_container_logging` (v1 only), +// and `enable_container_logging` (v1beta1 only). // -// - name: The name of the DeploymentResourcePool to delete. Format: -// `projects/{project}/locations/{location}/deploymentResourcePools/{de -// ployment_resource_pool}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { - c := &ProjectsLocationsDeploymentResourcePoolsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint resource into which to mutate a +// DeployedModel. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) MutateDeployedModel(endpoint string, googlecloudaiplatformv1beta1mutatedeployedmodelrequest *GoogleCloudAiplatformV1beta1MutateDeployedModelRequest) *ProjectsLocationsEndpointsMutateDeployedModelCall { + c := &ProjectsLocationsEndpointsMutateDeployedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1mutatedeployedmodelrequest = googlecloudaiplatformv1beta1mutatedeployedmodelrequest 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsMutateDeployedModelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -49856,21 +58338,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsDeleteCall { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsMutateDeployedModelCall { 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) 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_ { @@ -49878,29 +58360,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1mutatedeployedmodelrequest) + 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/{+endpoint}:mutateDeployedModel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.delete" call. +// Do executes the "aiplatform.projects.locations.endpoints.mutateDeployedModel" 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 *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -49931,23 +58418,26 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Delete a DeploymentResourcePool.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.deploymentResourcePools.delete", + // "description": "Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:mutateDeployedModel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.mutateDeployedModel", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the DeploymentResourcePool to delete. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+endpoint}:mutateDeployedModel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1MutateDeployedModelRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -49958,79 +58448,77 @@ func (c *ProjectsLocationsDeploymentResourcePoolsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.deploymentResourcePools.get": +// method id "aiplatform.projects.locations.endpoints.patch": -type ProjectsLocationsDeploymentResourcePoolsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Get a DeploymentResourcePool. +// Patch: Updates an Endpoint. // -// - name: The name of the DeploymentResourcePool to retrieve. Format: -// `projects/{project}/locations/{location}/deploymentResourcePools/{de -// ployment_resource_pool}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsGetCall { - c := &ProjectsLocationsDeploymentResourcePoolsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Endpoint. +func (r *ProjectsLocationsEndpointsService) Patch(name string, googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint) *ProjectsLocationsEndpointsPatchCall { + c := &ProjectsLocationsEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1endpoint = googlecloudaiplatformv1beta1endpoint 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsGetCall { - 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsGetCall { - c.ifNoneMatch_ = entityTag +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. See google.protobuf.FieldMask. +func (c *ProjectsLocationsEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointsPatchCall { + 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 *ProjectsLocationsEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPatchCall { + 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsGetCall { +func (c *ProjectsLocationsEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPatchCall { 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 *ProjectsLocationsDeploymentResourcePoolsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsPatchCall) 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.googlecloudaiplatformv1beta1endpoint) + 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -50041,16 +58529,15 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1DeploymentResourcePool or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1DeploymentResourcePool.ServerResponse.Hea -// der or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.endpoints.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Endpoint or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Endpoint.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DeploymentResourcePool, error) { +func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Endpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50069,7 +58556,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1DeploymentResourcePool{ + ret := &GoogleCloudAiplatformV1beta1Endpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50081,25 +58568,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Get a DeploymentResourcePool.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.get", + // "description": "Updates an Endpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.endpoints.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the DeploymentResourcePool to retrieve. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + // "description": "Output only. The resource name of the Endpoint.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1DeploymentResourcePool" + // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50108,118 +58604,92 @@ func (c *ProjectsLocationsDeploymentResourcePoolsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.deploymentResourcePools.list": +// method id "aiplatform.projects.locations.endpoints.predict": -type ProjectsLocationsDeploymentResourcePoolsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: List DeploymentResourcePools in a location. +// Predict: Perform an online prediction. // -// - parent: The parent Location which owns this collection of -// DeploymentResourcePools. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) List(parent string) *ProjectsLocationsDeploymentResourcePoolsListCall { - c := &ProjectsLocationsDeploymentResourcePoolsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of DeploymentResourcePools to return. The service may return fewer -// than this value. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListDeploymentResourcePools` call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to `ListDeploymentResourcePools` must match the -// call that provided the page token. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) Predict(endpoint string, googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest) *ProjectsLocationsEndpointsPredictCall { + c := &ProjectsLocationsEndpointsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1predictrequest = googlecloudaiplatformv1beta1predictrequest 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsListCall { +func (c *ProjectsLocationsEndpointsPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsListCall { - 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsListCall { +func (c *ProjectsLocationsEndpointsPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsPredictCall) 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.googlecloudaiplatformv1beta1predictrequest) + 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/{+parent}/deploymentResourcePools") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:predict") 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{ - "parent": c.parent, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.endpoints.predict" call. +// Exactly one of *GoogleCloudAiplatformV1beta1PredictResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse.Serve -// rResponse.Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1PredictResponse.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse, error) { +func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50238,7 +58708,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse{ + ret := &GoogleCloudAiplatformV1beta1PredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50250,36 +58720,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "List DeploymentResourcePools in a location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.list", + // "description": "Perform an online prediction.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.predict", // "parameterOrder": [ - // "parent" + // "endpoint" // ], // "parameters": { - // "pageSize": { - // "description": "The maximum number of DeploymentResourcePools to return. The service may return fewer than this value.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListDeploymentResourcePools` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeploymentResourcePools` must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent Location which owns this collection of DeploymentResourcePools. Format: `projects/{project}/locations/{location}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/deploymentResourcePools", + // "path": "v1beta1/{+endpoint}:predict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PredictRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1PredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50288,141 +58750,94 @@ func (c *ProjectsLocationsDeploymentResourcePoolsListCall) 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 *ProjectsLocationsDeploymentResourcePoolsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponse) 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.deploymentResourcePools.queryDeployedModels": +// method id "aiplatform.projects.locations.endpoints.rawPredict": -type ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall struct { - s *Service - deploymentResourcePool string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsRawPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryDeployedModels: List DeployedModels that have been deployed on -// this DeploymentResourcePool. +// RawPredict: Perform an online prediction with an arbitrary HTTP +// payload. The response includes the following HTTP headers: * +// `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this +// prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's +// DeployedModel that served this prediction. // -// - deploymentResourcePool: The name of the target -// DeploymentResourcePool to query. Format: -// `projects/{project}/locations/{location}/deploymentResourcePools/{de -// ployment_resource_pool}`. -func (r *ProjectsLocationsDeploymentResourcePoolsService) QueryDeployedModels(deploymentResourcePool string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - c := &ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.deploymentResourcePool = deploymentResourcePool - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of DeployedModels to return. The service may return fewer than this -// value. -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `QueryDeployedModels` call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to `QueryDeployedModels` must match the call that provided -// the page token. -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - c.urlParams_.Set("pageToken", pageToken) +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) RawPredict(endpoint string, googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest) *ProjectsLocationsEndpointsRawPredictCall { + c := &ProjectsLocationsEndpointsRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1rawpredictrequest = googlecloudaiplatformv1beta1rawpredictrequest 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { +func (c *ProjectsLocationsEndpointsRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsRawPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { - 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall { +func (c *ProjectsLocationsEndpointsRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsRawPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsRawPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsRawPredictCall) 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.googlecloudaiplatformv1beta1rawpredictrequest) + 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/{+deploymentResourcePool}:queryDeployedModels") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:rawPredict") 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{ - "deploymentResourcePool": c.deploymentResourcePool, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse, error) { +// Do executes the "aiplatform.projects.locations.endpoints.rawPredict" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50441,7 +58856,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50453,36 +58868,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opt } return ret, nil // { - // "description": "List DeployedModels that have been deployed on this DeploymentResourcePool.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}:queryDeployedModels", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.queryDeployedModels", + // "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:rawPredict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.rawPredict", // "parameterOrder": [ - // "deploymentResourcePool" + // "endpoint" // ], // "parameters": { - // "deploymentResourcePool": { - // "description": "Required. The name of the target DeploymentResourcePool to query. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of DeployedModels to return. The service may return fewer than this value.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `QueryDeployedModels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `QueryDeployedModels` must match the call that provided the page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+deploymentResourcePool}:queryDeployedModels", + // "path": "v1beta1/{+endpoint}:rawPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1RawPredictRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50491,59 +58898,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Do(opt } -// 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 *ProjectsLocationsDeploymentResourcePoolsQueryDeployedModelsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1QueryDeployedModelsResponse) 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.deploymentResourcePools.operations.cancel": +// method id "aiplatform.projects.locations.endpoints.serverStreamingPredict": -type ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsServerStreamingPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest + 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`. +// ServerStreamingPredict: Perform a server-side streaming online +// prediction request for Vertex LLM streaming. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Cancel(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) ServerStreamingPredict(endpoint string, googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest) *ProjectsLocationsEndpointsServerStreamingPredictCall { + c := &ProjectsLocationsEndpointsServerStreamingPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1streamingpredictrequest = googlecloudaiplatformv1beta1streamingpredictrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsServerStreamingPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50551,21 +58933,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsServerStreamingPredictCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) 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_ { @@ -50573,9 +58955,14 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1streamingpredictrequest) + 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/{+endpoint}:serverStreamingPredict") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -50583,19 +58970,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) doRequest } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.endpoints.serverStreamingPredict" call. +// Exactly one of *GoogleCloudAiplatformV1beta1StreamingPredictResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1StreamingPredictResponse.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 *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1StreamingPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50614,7 +59003,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1StreamingPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50626,25 +59015,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts . } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:cancel", + // "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:serverStreamingPredict", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.cancel", + // "id": "aiplatform.projects.locations.endpoints.serverStreamingPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+endpoint}:serverStreamingPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50653,32 +59045,36 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsCancelCall) Do(opts . } -// method id "aiplatform.projects.locations.deploymentResourcePools.operations.delete": +// method id "aiplatform.projects.locations.endpoints.setIamPolicy": -type ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + 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`. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Delete(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsEndpointsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsEndpointsSetIamPolicyCall { + c := &ProjectsLocationsEndpointsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -50686,21 +59082,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointsSetIamPolicyCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsSetIamPolicyCall) 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_ { @@ -50708,29 +59104,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) doRequest } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + 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/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.endpoints.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy 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 +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50749,7 +59150,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts . if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50761,25 +59162,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts . } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.delete", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50788,97 +59192,93 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsDeleteCall) Do(opts . } -// method id "aiplatform.projects.locations.deploymentResourcePools.operations.get": +// method id "aiplatform.projects.locations.endpoints.streamGenerateContent": -type ProjectsLocationsDeploymentResourcePoolsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsStreamGenerateContentCall struct { + s *Service + model string + googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest + 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. +// StreamGenerateContent: Generate content with multimodal inputs with +// streaming support. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Get(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - model: The name of the publisher model requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/publishers/*/models/*`. +func (r *ProjectsLocationsEndpointsService) StreamGenerateContent(model string, googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest) *ProjectsLocationsEndpointsStreamGenerateContentCall { + c := &ProjectsLocationsEndpointsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1beta1generatecontentrequest = googlecloudaiplatformv1beta1generatecontentrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsStreamGenerateContentCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { - 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsEndpointsStreamGenerateContentCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) 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.googlecloudaiplatformv1beta1generatecontentrequest) + 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/{+model}:streamGenerateContent") 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, + "model": c.model, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.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 *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. +// Exactly one of *GoogleCloudAiplatformV1beta1GenerateContentResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1GenerateContentResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateContentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -50897,7 +59297,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1GenerateContentResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -50909,25 +59309,28 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...g } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.get", + // "description": "Generate content with multimodal inputs with streaming support.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamGenerateContent", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.streamGenerateContent", // "parameterOrder": [ - // "name" + // "model" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "model": { + // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+model}:streamGenerateContent", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -50936,119 +59339,100 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsGetCall) Do(opts ...g } -// method id "aiplatform.projects.locations.deploymentResourcePools.operations.list": +// method id "aiplatform.projects.locations.endpoints.testIamPermissions": -type ProjectsLocationsDeploymentResourcePoolsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsTestIamPermissionsCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) List(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Filter(filter string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsEndpointsService) TestIamPermissions(resource string) *ProjectsLocationsEndpointsTestIamPermissionsCall { + c := &ProjectsLocationsEndpointsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsEndpointsTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { +func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsTestIamPermissionsCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { - 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsListCall { +func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEndpointsTestIamPermissionsCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// Do executes the "aiplatform.projects.locations.endpoints.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse 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 +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51067,7 +59451,7 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -51079,41 +59463,31 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ... } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.list", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.endpoints.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", // "location": "query", + // "repeated": true, // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+resource}:testIamPermissions", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -51122,68 +59496,34 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) Do(opts ... } -// 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 *ProjectsLocationsDeploymentResourcePoolsOperationsListCall) 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.deploymentResourcePools.operations.wait": +// method id "aiplatform.projects.locations.endpoints.undeployModel": -type ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsEndpointsUndeployModelCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1undeploymodelrequest *GoogleCloudAiplatformV1beta1UndeployModelRequest + 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. +// UndeployModel: Undeploys a Model from an Endpoint, removing a +// DeployedModel from it, and freeing all resources it's using. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsDeploymentResourcePoolsOperationsService) Wait(name string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { - c := &ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall{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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - endpoint: The name of the Endpoint resource from which to undeploy +// a Model. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsEndpointsService) UndeployModel(endpoint string, googlecloudaiplatformv1beta1undeploymodelrequest *GoogleCloudAiplatformV1beta1UndeployModelRequest) *ProjectsLocationsEndpointsUndeployModelCall { + c := &ProjectsLocationsEndpointsUndeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1undeploymodelrequest = googlecloudaiplatformv1beta1undeploymodelrequest 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsUndeployModelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51191,21 +59531,21 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsUndeployModelCall { 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsUndeployModelCall) 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_ { @@ -51213,9 +59553,14 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1undeploymodelrequest) + 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/{+endpoint}:undeployModel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -51223,19 +59568,19 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.deploymentResourcePools.operations.wait" call. +// Do executes the "aiplatform.projects.locations.endpoints.undeployModel" 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 *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51266,29 +59611,26 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ... } 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}/deploymentResourcePools/{deploymentResourcePoolsId}/operations/{operationsId}:wait", + // "description": "Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:undeployModel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.deploymentResourcePools.operations.wait", + // "id": "aiplatform.projects.locations.endpoints.undeployModel", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "endpoint": { + // "description": "Required. The name of the Endpoint resource from which to undeploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deploymentResourcePools/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "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/{+endpoint}:undeployModel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1UndeployModelRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -51299,9 +59641,9 @@ func (c *ProjectsLocationsDeploymentResourcePoolsOperationsWaitCall) Do(opts ... } -// method id "aiplatform.projects.locations.edgeDevices.operations.cancel": +// method id "aiplatform.projects.locations.endpoints.operations.cancel": -type ProjectsLocationsEdgeDevicesOperationsCancelCall struct { +type ProjectsLocationsEndpointsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51321,8 +59663,8 @@ type ProjectsLocationsEdgeDevicesOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsEdgeDevicesOperationsService) Cancel(name string) *ProjectsLocationsEdgeDevicesOperationsCancelCall { - c := &ProjectsLocationsEdgeDevicesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEndpointsOperationsService) Cancel(name string) *ProjectsLocationsEndpointsOperationsCancelCall { + c := &ProjectsLocationsEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -51330,7 +59672,7 @@ func (r *ProjectsLocationsEdgeDevicesOperationsService) Cancel(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsCancelCall { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51338,21 +59680,21 @@ func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) 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 *ProjectsLocationsEdgeDevicesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsCancelCall { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsCancelCall { 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 *ProjectsLocationsEdgeDevicesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) 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_ { @@ -51375,14 +59717,14 @@ func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.edgeDevices.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.endpoints.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 *ProjectsLocationsEdgeDevicesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51414,9 +59756,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Do(opts ...googleapi. 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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.edgeDevices.operations.cancel", + // "id": "aiplatform.projects.locations.endpoints.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -51424,7 +59766,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -51440,9 +59782,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsCancelCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.edgeDevices.operations.delete": +// method id "aiplatform.projects.locations.endpoints.operations.delete": -type ProjectsLocationsEdgeDevicesOperationsDeleteCall struct { +type ProjectsLocationsEndpointsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51456,8 +59798,8 @@ type ProjectsLocationsEdgeDevicesOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsEdgeDevicesOperationsService) Delete(name string) *ProjectsLocationsEdgeDevicesOperationsDeleteCall { - c := &ProjectsLocationsEdgeDevicesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { + c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -51465,7 +59807,7 @@ func (r *ProjectsLocationsEdgeDevicesOperationsService) Delete(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51473,21 +59815,21 @@ func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) 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 *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsDeleteCall { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -51510,14 +59852,14 @@ func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.edgeDevices.operations.delete" call. +// Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51549,9 +59891,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Do(opts ...googleapi. 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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.edgeDevices.operations.delete", + // "id": "aiplatform.projects.locations.endpoints.operations.delete", // "parameterOrder": [ // "name" // ], @@ -51559,7 +59901,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -51575,9 +59917,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsDeleteCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.edgeDevices.operations.get": +// method id "aiplatform.projects.locations.endpoints.operations.get": -type ProjectsLocationsEdgeDevicesOperationsGetCall struct { +type ProjectsLocationsEndpointsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51591,8 +59933,8 @@ type ProjectsLocationsEdgeDevicesOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsEdgeDevicesOperationsService) Get(name string) *ProjectsLocationsEdgeDevicesOperationsGetCall { - c := &ProjectsLocationsEdgeDevicesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { + c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -51600,7 +59942,7 @@ func (r *ProjectsLocationsEdgeDevicesOperationsService) Get(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsGetCall { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51610,7 +59952,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEdgeDevicesOperationsGetCall { +func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -51618,21 +59960,21 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsGetCall { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -51658,14 +60000,14 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.edgeDevices.operations.get" call. +// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51697,9 +60039,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Do(opts ...googleapi.Cal 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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.edgeDevices.operations.get", + // "id": "aiplatform.projects.locations.endpoints.operations.get", // "parameterOrder": [ // "name" // ], @@ -51707,7 +60049,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Do(opts ...googleapi.Cal // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -51723,9 +60065,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsGetCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.edgeDevices.operations.list": +// method id "aiplatform.projects.locations.endpoints.operations.list": -type ProjectsLocationsEdgeDevicesOperationsListCall struct { +type ProjectsLocationsEndpointsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51739,29 +60081,29 @@ type ProjectsLocationsEdgeDevicesOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsEdgeDevicesOperationsService) List(name string) *ProjectsLocationsEdgeDevicesOperationsListCall { - c := &ProjectsLocationsEdgeDevicesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEndpointsOperationsService) List(name string) *ProjectsLocationsEndpointsOperationsListCall { + c := &ProjectsLocationsEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Filter(filter string) *ProjectsLocationsEdgeDevicesOperationsListCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsEndpointsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsEdgeDevicesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEdgeDevicesOperationsListCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsEdgeDevicesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEdgeDevicesOperationsListCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -51769,7 +60111,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) PageToken(pageToken str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsListCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51779,7 +60121,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsEdgeDevicesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEdgeDevicesOperationsListCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -51787,21 +60129,21 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) IfNoneMatch(entityTag 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 *ProjectsLocationsEdgeDevicesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsListCall { +func (c *ProjectsLocationsEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEdgeDevicesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -51827,7 +60169,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.edgeDevices.operations.list" call. +// Do executes the "aiplatform.projects.locations.endpoints.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -51835,7 +60177,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) 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 *ProjectsLocationsEdgeDevicesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -51867,9 +60209,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Do(opts ...googleapi.Ca 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}/edgeDevices/{edgeDevicesId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.edgeDevices.operations.list", + // "id": "aiplatform.projects.locations.endpoints.operations.list", // "parameterOrder": [ // "name" // ], @@ -51882,7 +60224,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Do(opts ...googleapi.Ca // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", // "required": true, // "type": "string" // }, @@ -51912,7 +60254,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Do(opts ...googleapi.Ca // 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 *ProjectsLocationsEdgeDevicesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -51930,9 +60272,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsListCall) Pages(ctx context.Conte } } -// method id "aiplatform.projects.locations.edgeDevices.operations.wait": +// method id "aiplatform.projects.locations.endpoints.operations.wait": -type ProjectsLocationsEdgeDevicesOperationsWaitCall struct { +type ProjectsLocationsEndpointsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -51952,8 +60294,8 @@ type ProjectsLocationsEdgeDevicesOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsEdgeDevicesOperationsService) Wait(name string) *ProjectsLocationsEdgeDevicesOperationsWaitCall { - c := &ProjectsLocationsEdgeDevicesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsEndpointsOperationsService) Wait(name string) *ProjectsLocationsEndpointsOperationsWaitCall { + c := &ProjectsLocationsEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -51962,7 +60304,7 @@ func (r *ProjectsLocationsEdgeDevicesOperationsService) Wait(name string) *Proje // 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 *ProjectsLocationsEdgeDevicesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEdgeDevicesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEndpointsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -51970,7 +60312,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Timeout(timeout string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEdgeDevicesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -51978,21 +60320,21 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEdgeDevicesOperationsWaitCall { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52015,14 +60357,14 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.edgeDevices.operations.wait" call. +// Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52054,9 +60396,9 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Do(opts ...googleapi.Ca 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}/edgeDevices/{edgeDevicesId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.edgeDevices.operations.wait", + // "id": "aiplatform.projects.locations.endpoints.operations.wait", // "parameterOrder": [ // "name" // ], @@ -52064,7 +60406,7 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Do(opts ...googleapi.Ca // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/edgeDevices/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -52086,32 +60428,38 @@ func (c *ProjectsLocationsEdgeDevicesOperationsWaitCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.computeTokens": +// method id "aiplatform.projects.locations.exampleStores.operations.cancel": -type ProjectsLocationsEndpointsComputeTokensCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExampleStoresOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ComputeTokens: Return a list of tokens based on the input text. +// 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`. // -// - endpoint: The name of the Endpoint requested to get lists of tokens -// and token ids. -func (r *ProjectsLocationsEndpointsService) ComputeTokens(endpoint string, googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest) *ProjectsLocationsEndpointsComputeTokensCall { - c := &ProjectsLocationsEndpointsComputeTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1computetokensrequest = googlecloudaiplatformv1beta1computetokensrequest +// - 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 *ProjectsLocationsEndpointsComputeTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsComputeTokensCall { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52119,21 +60467,21 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsEndpointsComputeTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsComputeTokensCall { +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 *ProjectsLocationsEndpointsComputeTokensCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -52141,14 +60489,9 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1computetokensrequest) - 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/{+endpoint}:computeTokens") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -52156,21 +60499,19 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.computeTokens" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ComputeTokensResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ComputeTokensResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ComputeTokensResponse, error) { +// 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 { @@ -52189,7 +60530,7 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ComputeTokensResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52201,28 +60542,25 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Return a list of tokens based on the input text.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:computeTokens", + // "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.endpoints.computeTokens", + // "id": "aiplatform.projects.locations.exampleStores.operations.cancel", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:computeTokens", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -52231,33 +60569,32 @@ func (c *ProjectsLocationsEndpointsComputeTokensCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.countTokens": +// method id "aiplatform.projects.locations.exampleStores.operations.delete": -type ProjectsLocationsEndpointsCountTokensCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExampleStoresOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CountTokens: Perform a token counting. +// 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`. // -// - endpoint: The name of the Endpoint requested to perform token -// counting. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) CountTokens(endpoint string, googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest) *ProjectsLocationsEndpointsCountTokensCall { - c := &ProjectsLocationsEndpointsCountTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1counttokensrequest = googlecloudaiplatformv1beta1counttokensrequest +// - 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)} + 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 *ProjectsLocationsEndpointsCountTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCountTokensCall { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52265,21 +60602,21 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsEndpointsCountTokensCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCountTokensCall { +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 *ProjectsLocationsEndpointsCountTokensCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsCountTokensCall) 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_ { @@ -52287,38 +60624,29 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1counttokensrequest) - 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/{+endpoint}:countTokens") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.countTokens" call. -// Exactly one of *GoogleCloudAiplatformV1beta1CountTokensResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1CountTokensResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CountTokensResponse, error) { +// 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 *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52337,7 +60665,7 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1CountTokensResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52349,28 +60677,25 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Perform a token counting.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:countTokens", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.countTokens", + // "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}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.exampleStores.operations.delete", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:countTokens", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -52379,105 +60704,97 @@ func (c *ProjectsLocationsEndpointsCountTokensCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.endpoints.create": +// method id "aiplatform.projects.locations.exampleStores.operations.get": -type ProjectsLocationsEndpointsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExampleStoresOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates an Endpoint. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The resource name of the Location to create the Endpoint -// in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEndpointsService) Create(parent string, googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint) *ProjectsLocationsEndpointsCreateCall { - c := &ProjectsLocationsEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1endpoint = googlecloudaiplatformv1beta1endpoint - return c -} - -// EndpointId sets the optional parameter "endpointId": Immutable. The -// ID to use for endpoint, which will become the final component of the -// endpoint resource name. If not provided, Vertex AI will generate a -// value for this ID. If the first character is a letter, this value may -// be up to 63 characters, and valid characters are `[a-z0-9-]`. The -// last character must be a letter or number. If the first character is -// a number, this value may be up to 9 characters, and valid characters -// are `[0-9]` with no leading zeros. When using HTTP/JSON, this field -// is populated based on a query string argument, such as -// `?endpoint_id=12345`. This is the fallback for fields that are not -// included in either the URI or the body. -func (c *ProjectsLocationsEndpointsCreateCall) EndpointId(endpointId string) *ProjectsLocationsEndpointsCreateCall { - c.urlParams_.Set("endpointId", endpointId) +// - name: The name of the operation resource. +func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *ProjectsLocationsExampleStoresOperationsGetCall { + c := &ProjectsLocationsExampleStoresOperationsGetCall{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 *ProjectsLocationsEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsCreateCall { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsGetCall { 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 *ProjectsLocationsExampleStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsGetCall { + 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 *ProjectsLocationsEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsEndpointsCreateCall { +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 *ProjectsLocationsEndpointsCreateCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsCreateCall) 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_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1endpoint) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/endpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.create" 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 *ProjectsLocationsEndpointsCreateCall) 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 { @@ -52508,31 +60825,23 @@ func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Creates an Endpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.create", + // "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}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.exampleStores.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "endpointId": { - // "description": "Immutable. The ID to use for endpoint, which will become the final component of the endpoint resource name. If not provided, Vertex AI will generate a value for this ID. If the first character is a letter, this value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The last character must be a letter or number. If the first character is a number, this value may be up to 9 characters, and valid characters are `[0-9]` with no leading zeros. When using HTTP/JSON, this field is populated based on a query string argument, such as `?endpoint_id=12345`. This is the fallback for fields that are not included in either the URI or the body.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create the Endpoint in. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/endpoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -52543,64 +60852,100 @@ func (c *ProjectsLocationsEndpointsCreateCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.delete": +// method id "aiplatform.projects.locations.exampleStores.operations.list": -type ProjectsLocationsEndpointsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExampleStoresOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an Endpoint. +// 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 Endpoint resource to be deleted. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Delete(name string) *ProjectsLocationsEndpointsDeleteCall { - c := &ProjectsLocationsEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +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 *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 *ProjectsLocationsExampleStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExampleStoresOperationsListCall { + 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 *ProjectsLocationsEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeleteCall { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsListCall { 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 *ProjectsLocationsExampleStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExampleStoresOperationsListCall { + 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 *ProjectsLocationsEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeleteCall { +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 *ProjectsLocationsEndpointsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDeleteCall) 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_ { 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -52611,14 +60956,15 @@ func (c *ProjectsLocationsEndpointsDeleteCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.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 +// 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 +// *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 *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 { @@ -52637,7 +60983,7 @@ func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52649,25 +60995,41 @@ func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Deletes an Endpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.endpoints.delete", + // "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", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.exampleStores.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the Endpoint resource to be deleted. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$", // "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}", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -52676,34 +61038,68 @@ func (c *ProjectsLocationsEndpointsDeleteCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.deployModel": +// 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 { + 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) + } +} -type ProjectsLocationsEndpointsDeployModelCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1deploymodelrequest *GoogleCloudAiplatformV1beta1DeployModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.exampleStores.operations.wait": + +type ProjectsLocationsExampleStoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DeployModel: Deploys a Model into this Endpoint, creating a -// DeployedModel within it. +// 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. // -// - endpoint: The name of the Endpoint resource into which to deploy a -// Model. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) DeployModel(endpoint string, googlecloudaiplatformv1beta1deploymodelrequest *GoogleCloudAiplatformV1beta1DeployModelRequest) *ProjectsLocationsEndpointsDeployModelCall { - c := &ProjectsLocationsEndpointsDeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1deploymodelrequest = googlecloudaiplatformv1beta1deploymodelrequest +// - 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)} + 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 *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExampleStoresOperationsWaitCall { + 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 *ProjectsLocationsEndpointsDeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDeployModelCall { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52711,21 +61107,21 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsEndpointsDeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDeployModelCall { +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 *ProjectsLocationsEndpointsDeployModelCall) Header() http.Header { +func (c *ProjectsLocationsExampleStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDeployModelCall) 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_ { @@ -52733,14 +61129,9 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1deploymodelrequest) - 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/{+endpoint}:deployModel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -52748,19 +61139,19 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.deployModel" 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 *ProjectsLocationsEndpointsDeployModelCall) 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 { @@ -52791,26 +61182,29 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deploys a Model into this Endpoint, creating a DeployedModel within it.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:deployModel", + // "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.endpoints.deployModel", + // "id": "aiplatform.projects.locations.exampleStores.operations.wait", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint resource into which to deploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/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/{+endpoint}:deployModel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DeployModelRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -52821,34 +61215,38 @@ func (c *ProjectsLocationsEndpointsDeployModelCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.endpoints.directPredict": +// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": -type ProjectsLocationsEndpointsDirectPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1directpredictrequest *GoogleCloudAiplatformV1beta1DirectPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionControllersOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DirectPredict: Perform an unary online prediction request for Vertex -// first-party products and frameworks. +// 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`. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) DirectPredict(endpoint string, googlecloudaiplatformv1beta1directpredictrequest *GoogleCloudAiplatformV1beta1DirectPredictRequest) *ProjectsLocationsEndpointsDirectPredictCall { - c := &ProjectsLocationsEndpointsDirectPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1directpredictrequest = googlecloudaiplatformv1beta1directpredictrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { + c := &ProjectsLocationsExtensionControllersOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsDirectPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectPredictCall { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52856,21 +61254,21 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsEndpointsDirectPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectPredictCall { +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 *ProjectsLocationsEndpointsDirectPredictCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDirectPredictCall) 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_ { @@ -52878,14 +61276,9 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1directpredictrequest) - 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/{+endpoint}:directPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -52893,21 +61286,19 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.directPredict" call. -// Exactly one of *GoogleCloudAiplatformV1beta1DirectPredictResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1DirectPredictResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DirectPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52926,7 +61317,7 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1DirectPredictResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52938,28 +61329,25 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Perform an unary online prediction request for Vertex first-party products and frameworks.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directPredict", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.directPredict", + // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:directPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DirectPredictRequest" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1DirectPredictResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -52968,33 +61356,32 @@ func (c *ProjectsLocationsEndpointsDirectPredictCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.directRawPredict": +// method id "aiplatform.projects.locations.extensionControllers.operations.delete": -type ProjectsLocationsEndpointsDirectRawPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1directrawpredictrequest *GoogleCloudAiplatformV1beta1DirectRawPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DirectRawPredict: Perform an online prediction request through gRPC. +// 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`. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) DirectRawPredict(endpoint string, googlecloudaiplatformv1beta1directrawpredictrequest *GoogleCloudAiplatformV1beta1DirectRawPredictRequest) *ProjectsLocationsEndpointsDirectRawPredictCall { - c := &ProjectsLocationsEndpointsDirectRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1directrawpredictrequest = googlecloudaiplatformv1beta1directrawpredictrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { + c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsDirectRawPredictCall { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53002,21 +61389,21 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsDirectRawPredictCall { +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 *ProjectsLocationsEndpointsDirectRawPredictCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsDirectRawPredictCall) 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_ { @@ -53024,36 +61411,29 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1directrawpredictrequest) - 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/{+endpoint}:directRawPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.directRawPredict" call. -// Exactly one of *GoogleCloudAiplatformV1beta1DirectRawPredictResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1DirectRawPredictResponse.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 *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1DirectRawPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53072,7 +61452,7 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1DirectRawPredictResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53084,28 +61464,25 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Perform an online prediction request through gRPC.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:directRawPredict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.directRawPredict", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:directRawPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DirectRawPredictRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1DirectRawPredictResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53114,95 +61491,97 @@ func (c *ProjectsLocationsEndpointsDirectRawPredictCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.explain": +// method id "aiplatform.projects.locations.extensionControllers.operations.get": -type ProjectsLocationsEndpointsExplainCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1explainrequest *GoogleCloudAiplatformV1beta1ExplainRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionControllersOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Explain: Perform an online explanation. If deployed_model_id is -// specified, the corresponding DeployModel must have explanation_spec -// populated. If deployed_model_id is not specified, all DeployedModels -// must have explanation_spec populated. +// 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. // -// - endpoint: The name of the Endpoint requested to serve the -// explanation. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Explain(endpoint string, googlecloudaiplatformv1beta1explainrequest *GoogleCloudAiplatformV1beta1ExplainRequest) *ProjectsLocationsEndpointsExplainCall { - c := &ProjectsLocationsEndpointsExplainCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1explainrequest = googlecloudaiplatformv1beta1explainrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { + c := &ProjectsLocationsExtensionControllersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsExplainCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsExplainCall { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsExplainCall) Context(ctx context.Context) *ProjectsLocationsEndpointsExplainCall { +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 *ProjectsLocationsEndpointsExplainCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsExplainCall) 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_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1explainrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:explain") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.endpoints.explain" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ExplainResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ExplainResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ExplainResponse, error) { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53221,7 +61600,7 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ExplainResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53233,28 +61612,25 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Perform an online explanation. If deployed_model_id is specified, the corresponding DeployModel must have explanation_spec populated. If deployed_model_id is not specified, all DeployedModels must have explanation_spec populated.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:explain", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.explain", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensionControllers.operations.get", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the explanation. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:explain", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ExplainRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ExplainResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53263,9 +61639,9 @@ func (c *ProjectsLocationsEndpointsExplainCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.get": +// method id "aiplatform.projects.locations.extensionControllers.operations.list": -type ProjectsLocationsEndpointsGetCall struct { +type ProjectsLocationsExtensionControllersOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -53274,20 +61650,42 @@ type ProjectsLocationsEndpointsGetCall struct { header_ http.Header } -// Get: Gets an Endpoint. +// 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 Endpoint resource. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Get(name string) *ProjectsLocationsEndpointsGetCall { - c := &ProjectsLocationsEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsExtensionControllersOperationsService) List(name string) *ProjectsLocationsExtensionControllersOperationsListCall { + c := &ProjectsLocationsExtensionControllersOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53297,7 +61695,7 @@ func (c *ProjectsLocationsEndpointsGetCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsGetCall { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -53305,21 +61703,21 @@ func (c *ProjectsLocationsEndpointsGetCall) IfNoneMatch(entityTag string) *Proje // 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 *ProjectsLocationsEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsGetCall { +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 *ProjectsLocationsEndpointsGetCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsGetCall) 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_ { @@ -53332,7 +61730,7 @@ func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Respons var body io.Reader = nil 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/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53345,15 +61743,15 @@ func (c *ProjectsLocationsEndpointsGetCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Endpoint or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Endpoint.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Endpoint, error) { +// Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53372,7 +61770,7 @@ func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Endpoint{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53384,25 +61782,41 @@ func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Gets an Endpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.get", + // "id": "aiplatform.projects.locations.extensionControllers.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the Endpoint resource. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53411,52 +61825,68 @@ func (c *ProjectsLocationsEndpointsGetCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.endpoints.getIamPolicy": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsEndpointsGetIamPolicyCall struct { +// method id "aiplatform.projects.locations.extensionControllers.operations.wait": + +type ProjectsLocationsExtensionControllersOperationsWaitCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// 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. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsEndpointsService) GetIamPolicy(resource string) *ProjectsLocationsEndpointsGetIamPolicyCall { - c := &ProjectsLocationsEndpointsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c := &ProjectsLocationsExtensionControllersOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsEndpointsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsEndpointsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsGetIamPolicyCall { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53464,21 +61894,21 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsEndpointsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointsGetIamPolicyCall { +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 *ProjectsLocationsEndpointsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsGetIamPolicyCall) 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_ { @@ -53488,7 +61918,7 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) doRequest(alt string) (*htt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -53496,19 +61926,19 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// 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 *ProjectsLocationsEndpointsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 { @@ -53527,7 +61957,7 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53539,31 +61969,31 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:getIamPolicy", + // "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.endpoints.getIamPolicy", + // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "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/{+resource}:getIamPolicy", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53572,136 +62002,90 @@ func (c *ProjectsLocationsEndpointsGetIamPolicyCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.endpoints.list": +// method id "aiplatform.projects.locations.extensions.deployments.operations.cancel": -type ProjectsLocationsEndpointsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Endpoints in a Location. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location from which to list the -// Endpoints. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsEndpointsService) List(parent string) *ProjectsLocationsEndpointsListCall { - c := &ProjectsLocationsEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `endpoint` supports = and !=. -// `endpoint` represents the Endpoint ID, i.e. the last segment of the -// Endpoint's resource name. * `display_name` supports = and, != * -// `labels` supports general map functions that is: * `labels.key=value` -// - key:value equality * `labels.key:* or labels:key - key existence * -// A key including a space must be quoted. `labels."a key". Some -// examples: * `endpoint=1` * `displayName="myDisplayName" * -// `labels.myKey="myValue" -func (c *ProjectsLocationsEndpointsListCall) Filter(filter string) *ProjectsLocationsEndpointsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListEndpointsResponse.next_page_token of the previous -// EndpointService.ListEndpoints call. -func (c *ProjectsLocationsEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsEndpointsListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { 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 *ProjectsLocationsEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsListCall { - 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 *ProjectsLocationsEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsListCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsListCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - 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/{+parent}/endpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListEndpointsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListEndpointsResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListEndpointsResponse, error) { +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53720,7 +62104,7 @@ func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListEndpointsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53732,47 +62116,25 @@ func (c *ProjectsLocationsEndpointsListCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Lists Endpoints in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.list", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `endpoint` supports = and !=. `endpoint` represents the Endpoint ID, i.e. the last segment of the Endpoint's resource name. * `display_name` supports = and, != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `endpoint=1` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", - // "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. Typically obtained via ListEndpointsResponse.next_page_token of the previous EndpointService.ListEndpoints call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location from which to list the Endpoints. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/endpoints", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListEndpointsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53781,57 +62143,32 @@ func (c *ProjectsLocationsEndpointsListCall) 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 *ProjectsLocationsEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListEndpointsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "aiplatform.projects.locations.endpoints.mutateDeployedModel": +// method id "aiplatform.projects.locations.extensions.deployments.operations.delete": -type ProjectsLocationsEndpointsMutateDeployedModelCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1mutatedeployedmodelrequest *GoogleCloudAiplatformV1beta1MutateDeployedModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// MutateDeployedModel: Updates an existing deployed model. Updatable -// fields include `min_replica_count`, `max_replica_count`, -// `autoscaling_metric_specs`, `disable_container_logging` (v1 only), -// and `enable_container_logging` (v1beta1 only). +// 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`. // -// - endpoint: The name of the Endpoint resource into which to mutate a -// DeployedModel. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) MutateDeployedModel(endpoint string, googlecloudaiplatformv1beta1mutatedeployedmodelrequest *GoogleCloudAiplatformV1beta1MutateDeployedModelRequest) *ProjectsLocationsEndpointsMutateDeployedModelCall { - c := &ProjectsLocationsEndpointsMutateDeployedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1mutatedeployedmodelrequest = googlecloudaiplatformv1beta1mutatedeployedmodelrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsMutateDeployedModelCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53839,21 +62176,21 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Fields(s ...googleap // 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 *ProjectsLocationsEndpointsMutateDeployedModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsMutateDeployedModelCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53861,34 +62198,29 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1mutatedeployedmodelrequest) - 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/{+endpoint}:mutateDeployedModel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.mutateDeployedModel" 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.deployments.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53907,7 +62239,7 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53919,28 +62251,25 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only).", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:mutateDeployedModel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.mutateDeployedModel", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint resource into which to mutate a DeployedModel. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:mutateDeployedModel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1MutateDeployedModelRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53949,77 +62278,79 @@ func (c *ProjectsLocationsEndpointsMutateDeployedModelCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.endpoints.patch": +// method id "aiplatform.projects.locations.extensions.deployments.operations.get": -type ProjectsLocationsEndpointsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an Endpoint. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - name: Output only. The resource name of the Endpoint. -func (r *ProjectsLocationsEndpointsService) Patch(name string, googlecloudaiplatformv1beta1endpoint *GoogleCloudAiplatformV1beta1Endpoint) *ProjectsLocationsEndpointsPatchCall { - c := &ProjectsLocationsEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1endpoint = googlecloudaiplatformv1beta1endpoint - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. See google.protobuf.FieldMask. -func (c *ProjectsLocationsEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsEndpointsPatchCall { - 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 *ProjectsLocationsEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPatchCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { 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 *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { + 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 *ProjectsLocationsEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPatchCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsPatchCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1endpoint) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -54030,15 +62361,14 @@ func (c *ProjectsLocationsEndpointsPatchCall) doRequest(alt string) (*http.Respo return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Endpoint or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Endpoint.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Endpoint, error) { +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54057,7 +62387,7 @@ func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Endpoint{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54069,34 +62399,25 @@ func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) ( } return ret, nil // { - // "description": "Updates an Endpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.endpoints.patch", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of the Endpoint.", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" - // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Endpoint" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54105,92 +62426,119 @@ func (c *ProjectsLocationsEndpointsPatchCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.endpoints.predict": +// method id "aiplatform.projects.locations.extensions.deployments.operations.list": -type ProjectsLocationsEndpointsPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Predict: Perform an online prediction. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) Predict(endpoint string, googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest) *ProjectsLocationsEndpointsPredictCall { - c := &ProjectsLocationsEndpointsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1predictrequest = googlecloudaiplatformv1beta1predictrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + 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 *ProjectsLocationsEndpointsPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsPredictCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { 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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { + 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 *ProjectsLocationsEndpointsPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsPredictCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsPredictCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1predictrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:predict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.predict" call. -// Exactly one of *GoogleCloudAiplatformV1beta1PredictResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1PredictResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PredictResponse, error) { +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *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 *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54209,7 +62557,7 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1PredictResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54221,28 +62569,41 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Perform an online prediction.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:predict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.predict", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.list", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", // "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/{+endpoint}:predict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PredictRequest" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1PredictResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54251,37 +62612,68 @@ func (c *ProjectsLocationsEndpointsPredictCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.endpoints.rawPredict": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + 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) + } +} -type ProjectsLocationsEndpointsRawPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.extensions.deployments.operations.wait": + +type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RawPredict: Perform an online prediction with an arbitrary HTTP -// payload. The response includes the following HTTP headers: * -// `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this -// prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's -// DeployedModel that served this prediction. +// 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. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) RawPredict(endpoint string, googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest) *ProjectsLocationsEndpointsRawPredictCall { - c := &ProjectsLocationsEndpointsRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1rawpredictrequest = googlecloudaiplatformv1beta1rawpredictrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { + c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { + 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 *ProjectsLocationsEndpointsRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsRawPredictCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -54289,21 +62681,21 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsEndpointsRawPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsRawPredictCall { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsRawPredictCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -54311,14 +62703,9 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1rawpredictrequest) - 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/{+endpoint}:rawPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -54326,19 +62713,19 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) doRequest(alt string) (*http. } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.rawPredict" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54357,7 +62744,7 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleApiHttpBody{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54369,28 +62756,31 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:rawPredict", + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.rawPredict", + // "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/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/{+endpoint}:rawPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1RawPredictRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54399,34 +62789,38 @@ func (c *ProjectsLocationsEndpointsRawPredictCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.endpoints.serverStreamingPredict": +// method id "aiplatform.projects.locations.extensions.operations.cancel": -type ProjectsLocationsEndpointsServerStreamingPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ServerStreamingPredict: Perform a server-side streaming online -// prediction request for Vertex LLM streaming. +// 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`. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) ServerStreamingPredict(endpoint string, googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest) *ProjectsLocationsEndpointsServerStreamingPredictCall { - c := &ProjectsLocationsEndpointsServerStreamingPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1streamingpredictrequest = googlecloudaiplatformv1beta1streamingpredictrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsOperationsCancelCall { + c := &ProjectsLocationsExtensionsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsServerStreamingPredictCall { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -54434,21 +62828,21 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) 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 *ProjectsLocationsEndpointsServerStreamingPredictCall) Context(ctx context.Context) *ProjectsLocationsEndpointsServerStreamingPredictCall { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -54456,14 +62850,9 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt str } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1streamingpredictrequest) - 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/{+endpoint}:serverStreamingPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -54471,21 +62860,19 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) doRequest(alt str } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.serverStreamingPredict" call. -// Exactly one of *GoogleCloudAiplatformV1beta1StreamingPredictResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1StreamingPredictResponse.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 *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1StreamingPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.extensions.operations.cancel" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54504,7 +62891,7 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1StreamingPredictResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54516,28 +62903,25 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google } return ret, nil // { - // "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:serverStreamingPredict", + // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.serverStreamingPredict", + // "id": "aiplatform.projects.locations.extensions.operations.cancel", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:serverStreamingPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictRequest" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54546,36 +62930,32 @@ func (c *ProjectsLocationsEndpointsServerStreamingPredictCall) Do(opts ...google } -// method id "aiplatform.projects.locations.endpoints.setIamPolicy": +// method id "aiplatform.projects.locations.extensions.operations.delete": -type ProjectsLocationsEndpointsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// 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`. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsEndpointsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsEndpointsSetIamPolicyCall { - c := &ProjectsLocationsEndpointsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *ProjectsLocationsExtensionsOperationsDeleteCall { + c := &ProjectsLocationsExtensionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsEndpointsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsSetIamPolicyCall { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -54583,21 +62963,21 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsEndpointsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsEndpointsSetIamPolicyCall { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -54605,34 +62985,29 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) doRequest(alt string) (*htt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.extensions.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// *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 *ProjectsLocationsEndpointsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54651,7 +63026,7 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54663,28 +63038,25 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.setIamPolicy", + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.extensions.operations.delete", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54693,93 +63065,97 @@ func (c *ProjectsLocationsEndpointsSetIamPolicyCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.endpoints.streamGenerateContent": +// method id "aiplatform.projects.locations.extensions.operations.get": -type ProjectsLocationsEndpointsStreamGenerateContentCall struct { - s *Service - model string - googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// StreamGenerateContent: Generate content with multimodal inputs with -// streaming support. +// 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. // -// - model: The name of the publisher model requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/publishers/*/models/*`. -func (r *ProjectsLocationsEndpointsService) StreamGenerateContent(model string, googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest) *ProjectsLocationsEndpointsStreamGenerateContentCall { - c := &ProjectsLocationsEndpointsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.model = model - c.googlecloudaiplatformv1beta1generatecontentrequest = googlecloudaiplatformv1beta1generatecontentrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *ProjectsLocationsExtensionsOperationsGetCall { + c := &ProjectsLocationsExtensionsOperationsGetCall{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 *ProjectsLocationsEndpointsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsStreamGenerateContentCall { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsGetCall { 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 *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsGetCall { + 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 *ProjectsLocationsEndpointsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsEndpointsStreamGenerateContentCall { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1generatecontentrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+model}:streamGenerateContent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "model": c.model, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.streamGenerateContent" call. -// Exactly one of *GoogleCloudAiplatformV1beta1GenerateContentResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1GenerateContentResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateContentResponse, error) { +// Do executes the "aiplatform.projects.locations.extensions.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54798,7 +63174,7 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1GenerateContentResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54810,28 +63186,25 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googlea } return ret, nil // { - // "description": "Generate content with multimodal inputs with streaming support.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:streamGenerateContent", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.streamGenerateContent", + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.operations.get", // "parameterOrder": [ - // "model" + // "name" // ], // "parameters": { - // "model": { - // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+model}:streamGenerateContent", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54840,100 +63213,119 @@ func (c *ProjectsLocationsEndpointsStreamGenerateContentCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.endpoints.testIamPermissions": +// method id "aiplatform.projects.locations.extensions.operations.list": -type ProjectsLocationsEndpointsTestIamPermissionsCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsExtensionsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsEndpointsService) TestIamPermissions(resource string) *ProjectsLocationsEndpointsTestIamPermissionsCall { - c := &ProjectsLocationsEndpointsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsExtensionsOperationsService) List(name string) *ProjectsLocationsExtensionsOperationsListCall { + c := &ProjectsLocationsExtensionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Permissions sets the optional parameter "permissions": The set of -// permissions to check for the `resource`. Permissions with wildcards -// (such as `*` or `storage.*`) are not allowed. For more information -// see IAM Overview -// (https://cloud.google.com/iam/docs/overview#permissions). -func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsEndpointsTestIamPermissionsCall { - c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsExtensionsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsExtensionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsOperationsListCall { + 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 *ProjectsLocationsEndpointsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsTestIamPermissionsCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsListCall { 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 *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsListCall { + 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 *ProjectsLocationsEndpointsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsEndpointsTestIamPermissionsCall { +func (c *ProjectsLocationsExtensionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// Do executes the "aiplatform.projects.locations.extensions.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// *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 *ProjectsLocationsEndpointsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -54952,7 +63344,7 @@ func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -54964,31 +63356,41 @@ func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.testIamPermissions", + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.extensions.operations.list", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "permissions": { - // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "filter": { + // "description": "The standard list filter.", // "location": "query", - // "repeated": true, // "type": "string" // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", // "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/{+resource}:testIamPermissions", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -54997,34 +63399,68 @@ func (c *ProjectsLocationsEndpointsTestIamPermissionsCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.endpoints.undeployModel": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + 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) + } +} -type ProjectsLocationsEndpointsUndeployModelCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1undeploymodelrequest *GoogleCloudAiplatformV1beta1UndeployModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.extensions.operations.wait": + +type ProjectsLocationsExtensionsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UndeployModel: Undeploys a Model from an Endpoint, removing a -// DeployedModel from it, and freeing all resources it's using. +// 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. // -// - endpoint: The name of the Endpoint resource from which to undeploy -// a Model. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsEndpointsService) UndeployModel(endpoint string, googlecloudaiplatformv1beta1undeploymodelrequest *GoogleCloudAiplatformV1beta1UndeployModelRequest) *ProjectsLocationsEndpointsUndeployModelCall { - c := &ProjectsLocationsEndpointsUndeployModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1undeploymodelrequest = googlecloudaiplatformv1beta1undeploymodelrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *ProjectsLocationsExtensionsOperationsWaitCall { + c := &ProjectsLocationsExtensionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsOperationsWaitCall { + 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 *ProjectsLocationsEndpointsUndeployModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsUndeployModelCall { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55032,21 +63468,21 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsEndpointsUndeployModelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsUndeployModelCall { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsUndeployModelCall) Header() http.Header { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsUndeployModelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -55054,14 +63490,9 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1undeploymodelrequest) - 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/{+endpoint}:undeployModel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -55069,19 +63500,19 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.undeployModel" call. +// Do executes the "aiplatform.projects.locations.extensions.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55112,26 +63543,29 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}:undeployModel", + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.undeployModel", + // "id": "aiplatform.projects.locations.extensions.operations.wait", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint resource from which to undeploy a Model. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/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/{+endpoint}:undeployModel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1UndeployModelRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -55142,38 +63576,43 @@ func (c *ProjectsLocationsEndpointsUndeployModelCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.operations.cancel": +// method id "aiplatform.projects.locations.featureGroups.create": -type ProjectsLocationsEndpointsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup + 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 new FeatureGroup in a given project and location. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsEndpointsOperationsService) Cancel(name string) *ProjectsLocationsEndpointsOperationsCancelCall { - c := &ProjectsLocationsEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create FeatureGroups. +// Format: `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { + c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup + return c +} + +// FeatureGroupId sets the optional parameter "featureGroupId": +// Required. The ID to use for this FeatureGroup, which will become the +// final component of the FeatureGroup's resource name. This value may +// be up to 60 characters, and valid characters are `[a-z0-9_]`. The +// first character cannot be a number. The value must be unique within +// the project and location. +func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { + c.urlParams_.Set("featureGroupId", featureGroupId) 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 *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsCancelCall { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55181,21 +63620,21 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsCancelCall { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { 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 *ProjectsLocationsEndpointsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsCreateCall) 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_ { @@ -55203,9 +63642,14 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + 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/{+parent}/featureGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -55213,19 +63657,19 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) doRequest(alt string) ( } 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.endpoints.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.featureGroups.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 *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55244,7 +63688,7 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca 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, @@ -55256,25 +63700,33 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}:cancel", + // "description": "Creates a new FeatureGroup in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.operations.cancel", + // "id": "aiplatform.projects.locations.featureGroups.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "featureGroupId": { + // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/featureGroups", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55283,9 +63735,9 @@ func (c *ProjectsLocationsEndpointsOperationsCancelCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.delete": -type ProjectsLocationsEndpointsOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -55293,22 +63745,29 @@ type ProjectsLocationsEndpointsOperationsDeleteCall 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 single FeatureGroup. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsEndpointsOperationsService) Delete(name string) *ProjectsLocationsEndpointsOperationsDeleteCall { - c := &ProjectsLocationsEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureGroup to be deleted. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { + c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": If set to true, any +// Features under this FeatureGroup will also be deleted. (Otherwise, +// the request will only work if the FeatureGroup has no Features.) +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55316,21 +63775,21 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) 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_ { @@ -55353,14 +63812,14 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.delete" call. -// 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.featureGroups.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 *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55379,7 +63838,7 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca 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, @@ -55391,25 +63850,30 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "description": "Deletes a single FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.endpoints.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55418,9 +63882,9 @@ func (c *ProjectsLocationsEndpointsOperationsDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.endpoints.operations.get": +// method id "aiplatform.projects.locations.featureGroups.get": -type ProjectsLocationsEndpointsOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -55429,13 +63893,11 @@ type ProjectsLocationsEndpointsOperationsGetCall 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 details of a single FeatureGroup. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *ProjectsLocationsEndpointsOperationsGetCall { - c := &ProjectsLocationsEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureGroup resource. +func (r *ProjectsLocationsFeatureGroupsService) Get(name string) *ProjectsLocationsFeatureGroupsGetCall { + c := &ProjectsLocationsFeatureGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -55443,7 +63905,7 @@ func (r *ProjectsLocationsEndpointsOperationsService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55453,7 +63915,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -55461,21 +63923,21 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsGetCall) 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_ { @@ -55501,14 +63963,16 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureGroup or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FeatureGroup.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55527,7 +63991,7 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1FeatureGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55539,25 +64003,25 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations/{operationsId}", + // "description": "Gets details of a single FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the FeatureGroup resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55566,45 +64030,67 @@ func (c *ProjectsLocationsEndpointsOperationsGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.endpoints.operations.list": +// method id "aiplatform.projects.locations.featureGroups.list": -type ProjectsLocationsEndpointsOperationsListCall struct { +type ProjectsLocationsFeatureGroupsListCall 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 FeatureGroups in a given project and location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsEndpointsOperationsService) List(name string) *ProjectsLocationsEndpointsOperationsListCall { - c := &ProjectsLocationsEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list FeatureGroups. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeatureGroupsService) List(parent string) *ProjectsLocationsFeatureGroupsListCall { + c := &ProjectsLocationsFeatureGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsEndpointsOperationsListCall { +// Filter sets the optional parameter "filter": Lists the FeatureGroups +// that match the filter expression. The following fields are supported: +// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality and +// key presence. Examples: * `create_time > "2020-01-01" OR update_time +// > "2020-01-01" FeatureGroups created or updated after 2020-01-01. * +// `labels.env = "prod" FeatureGroups with label "env" set to "prod". +func (c *ProjectsLocationsFeatureGroupsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsEndpointsOperationsListCall { +// 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: * `create_time` * +// `update_time` +func (c *ProjectsLocationsFeatureGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureGroups to return. The service may return fewer than this +// value. If unspecified, at most 100 FeatureGroups will be returned. +// The maximum value is 100; any value greater than 100 will be coerced +// to 100. +func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsEndpointsOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeatureGroupAdminService.ListFeatureGroups +// call. Provide this to retrieve the subsequent page. When paginating, +// all other parameters provided to +// FeatureGroupAdminService.ListFeatureGroups must match the call that +// provided the page token. +func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -55612,7 +64098,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) PageToken(pageToken strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55622,7 +64108,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsListCall { c.ifNoneMatch_ = entityTag return c } @@ -55630,21 +64116,21 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsListCall) 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_ { @@ -55657,7 +64143,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h 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}/featureGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -55665,20 +64151,21 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) doRequest(alt string) (*h } 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.endpoints.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55697,7 +64184,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -55709,41 +64196,46 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/endpoints/{endpointsId}/operations", + // "description": "Lists FeatureGroups in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.endpoints.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Lists the FeatureGroups that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureGroups created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/featureGroups", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -55755,7 +64247,7 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -55773,47 +64265,46 @@ func (c *ProjectsLocationsEndpointsOperationsListCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.endpoints.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.patch": -type ProjectsLocationsEndpointsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup + 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 the parameters of a single FeatureGroup. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsEndpointsOperationsService) Wait(name string) *ProjectsLocationsEndpointsOperationsWaitCall { - c := &ProjectsLocationsEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. Name of the FeatureGroup. Format: +// `projects/{project}/locations/{location}/featureGroups/{featureGroup +// }`. +func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsPatchCall { + c := &ProjectsLocationsFeatureGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup return c } -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsEndpointsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the FeatureGroup +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `labels` +func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { + 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 *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsEndpointsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55821,21 +64312,21 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsEndpointsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsEndpointsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsPatchCall) 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_ { @@ -55843,11 +64334,16 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + 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 } @@ -55858,14 +64354,14 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.endpoints.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureGroups.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 *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -55896,29 +64392,32 @@ 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", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.endpoints.operations.wait", + // "description": "Updates the parameters of a single FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureGroups.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/endpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "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": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -55929,38 +64428,46 @@ func (c *ProjectsLocationsEndpointsOperationsWaitCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.exampleStores.operations.cancel": +// method id "aiplatform.projects.locations.featureGroups.features.create": -type ProjectsLocationsExampleStoresOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + 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 new Feature in a given FeatureGroup. // -// - 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 +// - parent: The resource name of the EntityType or FeatureGroup to +// create a Feature. Format for entity_type as parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature + return c +} + +// FeatureId sets the optional parameter "featureId": Required. The ID +// to use for the Feature, which will become the final component of the +// Feature's resource name. This value may be up to 128 characters, and +// valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within an EntityType/FeatureGroup. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c.urlParams_.Set("featureId", featureId) 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 { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -55968,21 +64475,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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) 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_ { @@ -55990,9 +64497,14 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) + 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/{+parent}/features") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -56000,19 +64512,19 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) doRequest(alt strin } 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.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 +// Do executes the "aiplatform.projects.locations.featureGroups.features.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 *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56031,7 +64543,7 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56043,25 +64555,33 @@ 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", + // "description": "Creates a new Feature in a given FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.exampleStores.operations.cancel", + // "id": "aiplatform.projects.locations.featureGroups.features.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "featureId": { + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/features", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56070,9 +64590,9 @@ func (c *ProjectsLocationsExampleStoresOperationsCancelCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.exampleStores.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.features.delete": -type ProjectsLocationsExampleStoresOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsFeaturesDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -56080,14 +64600,15 @@ type ProjectsLocationsExampleStoresOperationsDeleteCall 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 single Feature. // -// - 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)} +// - name: The name of the Features to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -56095,7 +64616,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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56103,21 +64624,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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) 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_ { @@ -56140,14 +64661,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. -// 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.featureGroups.features.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 *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56166,7 +64687,7 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56178,25 +64699,25 @@ 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}", + // "description": "Deletes a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.exampleStores.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.features.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56205,9 +64726,9 @@ func (c *ProjectsLocationsExampleStoresOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.exampleStores.operations.get": +// method id "aiplatform.projects.locations.featureGroups.features.get": -type ProjectsLocationsExampleStoresOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -56216,13 +64737,16 @@ type ProjectsLocationsExampleStoresOperationsGetCall 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 details of a single Feature. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsExampleStoresOperationsService) Get(name string) *ProjectsLocationsExampleStoresOperationsGetCall { - c := &ProjectsLocationsExampleStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Feature resource. Format for entity_type as +// parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -56230,7 +64754,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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56240,7 +64764,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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -56248,21 +64772,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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesGetCall { 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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) 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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) 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_ { @@ -56288,14 +64812,15 @@ 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. -// 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) { +// Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56314,7 +64839,7 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Feature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56326,25 +64851,25 @@ 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}", + // "description": "Gets details of a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.exampleStores.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.features.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Feature" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56353,53 +64878,103 @@ func (c *ProjectsLocationsExampleStoresOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.exampleStores.operations.list": +// method id "aiplatform.projects.locations.featureGroups.features.list": -type ProjectsLocationsExampleStoresOperationsListCall struct { +type ProjectsLocationsFeatureGroupsFeaturesListCall 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 Features in a given FeatureGroup. // -// - 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)} - c.name = name +// - parent: The resource name of the Location to list Features. Format +// for entity_type as parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) List(parent string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c := &ProjectsLocationsFeatureGroupsFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Filter(filter string) *ProjectsLocationsExampleStoresOperationsListCall { +// Filter sets the optional parameter "filter": Lists the Features that +// match the filter expression. The following filters are supported: * +// `value_type`: Supports = and != comparisons. * `create_time`: +// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC +// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality as well as key presence. Examples: * `value_type = +// DOUBLE` --> Features whose type is DOUBLE. * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> Features having both (active: yes) and (env: +// prod) labels. * `labels.env: *` --> Any Feature which has a label +// with 'env' as the key. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesListCall { 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 { +// LatestStatsCount sets the optional parameter "latestStatsCount": Only +// applicable for Vertex AI Feature Store (Legacy). If set, return the +// most recent ListFeaturesRequest.latest_stats_count of stats for each +// Feature in response. Valid value is [0, 10]. If number of stats +// exists < ListFeaturesRequest.latest_stats_count, return all existing +// stats. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) + 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: * `feature_id` * +// `value_type` (Not supported for FeatureRegistry Feature) * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 1000 Features will be returned. The maximum +// value is 1000; any value greater than 1000 will be coerced to 1000. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { 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 { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.ListFeatures call or +// FeatureRegistryService.ListFeatures call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to FeaturestoreService.ListFeatures or +// FeatureRegistryService.ListFeatures must match the call that provided +// the page token. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExampleStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56409,7 +64984,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 *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesListCall { c.ifNoneMatch_ = entityTag return c } @@ -56417,21 +64992,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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesListCall { 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) 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_ { @@ -56444,7 +65019,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) 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}/features") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -56452,20 +65027,21 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) doRequest(alt string) } 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.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 -// *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 *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListFeaturesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56484,7 +65060,7 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeaturesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -56496,41 +65072,58 @@ 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", + // "description": "Lists Features in a given FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.exampleStores.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.features.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+$", - // "required": true, + // "latestStatsCount": { + // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/features", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56542,7 +65135,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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -56560,47 +65153,53 @@ func (c *ProjectsLocationsExampleStoresOperationsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.exampleStores.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.features.patch": -type ProjectsLocationsExampleStoresOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + 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 the parameters of a single Feature. // -// - 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)} +// - name: Immutable. Name of the Feature. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/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. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + c := &ProjectsLocationsFeatureGroupsFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature 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 *ProjectsLocationsExampleStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExampleStoresOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Features resource +// by the update. The fields specified in the update_mask are relative +// to the resource, not the full request. A field will be overwritten if +// it is in the mask. If the user does not provide a mask then only the +// non-empty fields present in the request will be overwritten. Set the +// update_mask to `*` to override all fields. Updatable fields: * +// `description` * `labels` * `disable_monitoring` (Not supported for +// FeatureRegistry Feature) +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + 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 *ProjectsLocationsExampleStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExampleStoresOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56608,21 +65207,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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) 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_ { @@ -56630,11 +65229,16 @@ func (c *ProjectsLocationsExampleStoresOperationsWaitCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) + 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 } @@ -56645,14 +65249,14 @@ 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.featureGroups.features.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 *ProjectsLocationsExampleStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56683,172 +65287,34 @@ 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": "Updates the parameters of a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureGroups.features.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "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.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/exampleStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "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": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.extensionControllers.operations.cancel": - -type ProjectsLocationsExtensionControllersOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. -// -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionControllersOperationsService) Cancel(name string) *ProjectsLocationsExtensionControllersOperationsCancelCall { - c := &ProjectsLocationsExtensionControllersOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Feature" // }, - // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -56857,9 +65323,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsCancelCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": -type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -56873,8 +65339,8 @@ type ProjectsLocationsExtensionControllersOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name string) *ProjectsLocationsExtensionControllersOperationsDeleteCall { - c := &ProjectsLocationsExtensionControllersOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -56882,7 +65348,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Delete(name str // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -56890,21 +65356,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Fields(s ... // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -56927,14 +65393,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) doRequest(al return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -56966,9 +65432,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensionControllers.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", // "parameterOrder": [ // "name" // ], @@ -56976,7 +65442,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -56992,9 +65458,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsDeleteCall) Do(opts ...g } -// method id "aiplatform.projects.locations.extensionControllers.operations.get": +// method id "aiplatform.projects.locations.featureGroups.features.operations.get": -type ProjectsLocationsExtensionControllersOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -57008,8 +65474,8 @@ type ProjectsLocationsExtensionControllersOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string) *ProjectsLocationsExtensionControllersOperationsGetCall { - c := &ProjectsLocationsExtensionControllersOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -57017,7 +65483,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Get(name string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57027,7 +65493,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Fields(s ...goo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -57035,21 +65501,21 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) IfNoneMatch(ent // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionControllersOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -57075,14 +65541,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57114,9 +65580,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", // "parameterOrder": [ // "name" // ], @@ -57124,7 +65590,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -57140,9 +65606,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsGetCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.extensionControllers.operations.list": +// method id "aiplatform.projects.locations.featureGroups.features.operations.list": -type ProjectsLocationsExtensionControllersOperationsListCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -57156,29 +65622,29 @@ type ProjectsLocationsExtensionControllersOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionControllersOperationsService) List(name string) *ProjectsLocationsExtensionControllersOperationsListCall { - c := &ProjectsLocationsExtensionControllersOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) List(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionControllersOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -57186,7 +65652,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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57196,7 +65662,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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -57204,21 +65670,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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -57244,7 +65710,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.list" call. // Exactly one of *GoogleLongrunningListOperationsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either @@ -57252,7 +65718,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) doRequest(alt // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57284,9 +65750,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensionControllers.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.list", // "parameterOrder": [ // "name" // ], @@ -57299,7 +65765,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Do(opts ...goo // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // }, @@ -57329,7 +65795,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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -57347,9 +65813,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsListCall) Pages(ctx cont } } -// method id "aiplatform.projects.locations.extensionControllers.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.features.operations.wait": -type ProjectsLocationsExtensionControllersOperationsWaitCall struct { +type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -57369,8 +65835,8 @@ type ProjectsLocationsExtensionControllersOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name string) *ProjectsLocationsExtensionControllersOperationsWaitCall { - c := &ProjectsLocationsExtensionControllersOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -57379,7 +65845,7 @@ func (r *ProjectsLocationsExtensionControllersOperationsService) Wait(name strin // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -57387,7 +65853,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Timeout(timeou // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionControllersOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57395,21 +65861,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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -57432,14 +65898,14 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensionControllers.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57471,9 +65937,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensionControllers/{extensionControllersId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensionControllers.operations.wait", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", // "parameterOrder": [ // "name" // ], @@ -57481,7 +65947,7 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensionControllers/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -57503,150 +65969,9 @@ func (c *ProjectsLocationsExtensionControllersOperationsWaitCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.extensions.deployments.operations.cancel": - -type ProjectsLocationsExtensionsDeploymentsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. -// -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleProtobufEmpty{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:cancel", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.extensions.deployments.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.operations.delete": -type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -57660,8 +65985,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name string) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -57669,7 +65994,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Delete(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57677,21 +66002,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Fields(s .. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -57714,14 +66039,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. // Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was // returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57753,9 +66078,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.operations.delete", // "parameterOrder": [ // "name" // ], @@ -57763,7 +66088,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -57779,9 +66104,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.extensions.deployments.operations.get": +// method id "aiplatform.projects.locations.featureGroups.operations.get": -type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -57795,8 +66120,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -57804,7 +66129,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Get(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57814,7 +66139,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -57822,21 +66147,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -57862,14 +66187,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -57901,9 +66226,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.operations.get", // "parameterOrder": [ // "name" // ], @@ -57911,7 +66236,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -57927,9 +66252,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.extensions.deployments.operations.list": +// method id "aiplatform.projects.locations.featureGroups.operations.list": -type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { +type ProjectsLocationsFeatureGroupsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -57943,29 +66268,29 @@ type ProjectsLocationsExtensionsDeploymentsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) List(name string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) List(name string) *ProjectsLocationsFeatureGroupsOperationsListCall { + c := &ProjectsLocationsFeatureGroupsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -57973,7 +66298,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) PageToken(pag // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -57983,7 +66308,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -57991,21 +66316,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -58031,7 +66356,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureGroups.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 @@ -58039,7 +66364,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) doRequest(alt // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58071,9 +66396,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.operations.list", // "parameterOrder": [ // "name" // ], @@ -58086,7 +66411,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // }, @@ -58116,7 +66441,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Do(opts ...go // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -58134,9 +66459,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsListCall) Pages(ctx con } } -// method id "aiplatform.projects.locations.extensions.deployments.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.operations.wait": -type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { +type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -58156,8 +66481,8 @@ type ProjectsLocationsExtensionsDeploymentsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { - c := &ProjectsLocationsExtensionsDeploymentsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -58166,7 +66491,7 @@ func (r *ProjectsLocationsExtensionsDeploymentsOperationsService) Wait(name stri // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -58174,7 +66499,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Timeout(timeo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58182,21 +66507,21 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -58219,14 +66544,14 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.deployments.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58258,9 +66583,9 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/deployments/{deploymentsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.deployments.operations.wait", + // "id": "aiplatform.projects.locations.featureGroups.operations.wait", // "parameterOrder": [ // "name" // ], @@ -58268,7 +66593,7 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/deployments/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -58290,38 +66615,46 @@ func (c *ProjectsLocationsExtensionsDeploymentsOperationsWaitCall) Do(opts ...go } -// method id "aiplatform.projects.locations.extensions.operations.cancel": +// method id "aiplatform.projects.locations.featureOnlineStores.create": -type ProjectsLocationsExtensionsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore + 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 new FeatureOnlineStore in a given project and +// location. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsExtensionsOperationsService) Cancel(name string) *ProjectsLocationsExtensionsOperationsCancelCall { - c := &ProjectsLocationsExtensionsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create +// FeatureOnlineStores. Format: +// `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Create(parent string, googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c := &ProjectsLocationsFeatureOnlineStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featureonlinestore = googlecloudaiplatformv1beta1featureonlinestore + return c +} + +// FeatureOnlineStoreId sets the optional parameter +// "featureOnlineStoreId": Required. The ID to use for this +// FeatureOnlineStore, which will become the final component of the +// FeatureOnlineStore's resource name. This value may be up to 60 +// characters, and valid characters are `[a-z0-9_]`. The first character +// cannot be a number. The value must be unique within the project and +// location. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) FeatureOnlineStoreId(featureOnlineStoreId string) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c.urlParams_.Set("featureOnlineStoreId", featureOnlineStoreId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsCancelCall { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58329,21 +66662,21 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) 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 *ProjectsLocationsExtensionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsCancelCall { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) 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_ { @@ -58351,9 +66684,14 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureonlinestore) + 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/{+parent}/featureOnlineStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -58361,19 +66699,19 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) doRequest(alt string) } 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.extensions.operations.cancel" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58392,7 +66730,7 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.C 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, @@ -58404,25 +66742,33 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:cancel", + // "description": "Creates a new FeatureOnlineStore in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.operations.cancel", + // "id": "aiplatform.projects.locations.featureOnlineStores.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "featureOnlineStoreId": { + // "description": "Required. The ID to use for this FeatureOnlineStore, which will become the final component of the FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/featureOnlineStores", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58431,9 +66777,9 @@ func (c *ProjectsLocationsExtensionsOperationsCancelCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.extensions.operations.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.delete": -type ProjectsLocationsExtensionsOperationsDeleteCall struct { +type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -58441,22 +66787,31 @@ type ProjectsLocationsExtensionsOperationsDeleteCall 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 single FeatureOnlineStore. The FeatureOnlineStore +// must not contain any FeatureViews. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsExtensionsOperationsService) Delete(name string) *ProjectsLocationsExtensionsOperationsDeleteCall { - c := &ProjectsLocationsExtensionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureOnlineStore to be deleted. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": If set to true, any +// FeatureViews and Features for this FeatureOnlineStore will also be +// deleted. (Otherwise, the request will only work if the +// FeatureOnlineStore has no FeatureViews.) +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Force(force bool) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58464,21 +66819,21 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Fields(s ...googleapi. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) 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_ { @@ -58501,14 +66856,14 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.delete" call. -// 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.featureOnlineStores.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 *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58527,7 +66882,7 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C 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, @@ -58539,25 +66894,30 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "description": "Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.extensions.operations.delete", + // "id": "aiplatform.projects.locations.featureOnlineStores.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58566,9 +66926,9 @@ func (c *ProjectsLocationsExtensionsOperationsDeleteCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.extensions.operations.get": +// method id "aiplatform.projects.locations.featureOnlineStores.get": -type ProjectsLocationsExtensionsOperationsGetCall struct { +type ProjectsLocationsFeatureOnlineStoresGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -58577,13 +66937,11 @@ type ProjectsLocationsExtensionsOperationsGetCall 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 details of a single FeatureOnlineStore. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *ProjectsLocationsExtensionsOperationsGetCall { - c := &ProjectsLocationsExtensionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureOnlineStore resource. +func (r *ProjectsLocationsFeatureOnlineStoresService) Get(name string) *ProjectsLocationsFeatureOnlineStoresGetCall { + c := &ProjectsLocationsFeatureOnlineStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -58591,7 +66949,7 @@ func (r *ProjectsLocationsExtensionsOperationsService) Get(name string) *Project // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58601,7 +66959,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresGetCall { c.ifNoneMatch_ = entityTag return c } @@ -58609,21 +66967,21 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) 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_ { @@ -58649,14 +67007,16 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureOnlineStore or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FeatureOnlineStore.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureOnlineStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58675,7 +67035,7 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1FeatureOnlineStore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -58687,25 +67047,25 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}", + // "description": "Gets details of a single FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.operations.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the FeatureOnlineStore resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58714,45 +67074,70 @@ func (c *ProjectsLocationsExtensionsOperationsGetCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.extensions.operations.list": +// method id "aiplatform.projects.locations.featureOnlineStores.list": -type ProjectsLocationsExtensionsOperationsListCall struct { +type ProjectsLocationsFeatureOnlineStoresListCall 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 FeatureOnlineStores in a given project and location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsExtensionsOperationsService) List(name string) *ProjectsLocationsExtensionsOperationsListCall { - c := &ProjectsLocationsExtensionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list +// FeatureOnlineStores. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) List(parent string) *ProjectsLocationsFeatureOnlineStoresListCall { + c := &ProjectsLocationsFeatureOnlineStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsExtensionsOperationsListCall) Filter(filter string) *ProjectsLocationsExtensionsOperationsListCall { +// Filter sets the optional parameter "filter": Lists the +// FeatureOnlineStores that match the filter expression. The following +// fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * +// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality and key presence. Examples: * `create_time > +// "2020-01-01" OR update_time > "2020-01-01" FeatureOnlineStores +// created or updated after 2020-01-01. * `labels.env = "prod" +// FeatureOnlineStores with label "env" set to "prod". +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsExtensionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsExtensionsOperationsListCall { +// 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: * `create_time` * +// `update_time` +func (c *ProjectsLocationsFeatureOnlineStoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureOnlineStores to return. The service may return fewer than +// this value. If unspecified, at most 100 FeatureOnlineStores will be +// returned. The maximum value is 100; any value greater than 100 will +// be coerced to 100. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsExtensionsOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to +// FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -58760,7 +67145,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) PageToken(pageToken stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58770,7 +67155,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresListCall { c.ifNoneMatch_ = entityTag return c } @@ -58778,21 +67163,21 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) 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_ { @@ -58805,7 +67190,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* 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}/featureOnlineStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -58813,20 +67198,22 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) doRequest(alt string) (* } 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.extensions.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *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 *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse.ServerRes +// ponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -58845,7 +67232,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -58857,41 +67244,46 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations", + // "description": "Lists FeatureOnlineStores in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.extensions.operations.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureOnlineStores created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureOnlineStores with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/featureOnlineStores", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -58903,7 +67295,7 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Do(opts ...googleapi.Cal // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -58921,47 +67313,47 @@ func (c *ProjectsLocationsExtensionsOperationsListCall) Pages(ctx context.Contex } } -// method id "aiplatform.projects.locations.extensions.operations.wait": +// method id "aiplatform.projects.locations.featureOnlineStores.patch": -type ProjectsLocationsExtensionsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore + 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 the parameters of a single FeatureOnlineStore. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsExtensionsOperationsService) Wait(name string) *ProjectsLocationsExtensionsOperationsWaitCall { - c := &ProjectsLocationsExtensionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. Name of the FeatureOnlineStore. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresPatchCall { + c := &ProjectsLocationsFeatureOnlineStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1featureonlinestore = googlecloudaiplatformv1beta1featureonlinestore 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 *ProjectsLocationsExtensionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsExtensionsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the +// FeatureOnlineStore resource by the update. The fields specified in +// the update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then only the non-empty fields present in the request +// will be overwritten. Set the update_mask to `*` to override all +// fields. Updatable fields: * `big_query_source` * `labels` * +// `sync_config` +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { + 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 *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -58969,21 +67361,21 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsExtensionsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsExtensionsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) 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_ { @@ -58991,11 +67383,16 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (* } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureonlinestore) + 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 } @@ -59006,14 +67403,14 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.extensions.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59044,29 +67441,32 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/extensions/{extensionsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.extensions.operations.wait", + // "description": "Updates the parameters of a single FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureOnlineStores.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/extensions/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "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": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `labels` * `sync_config`", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -59077,43 +67477,54 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureGroups.create": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.create": -type ProjectsLocationsFeatureGroupsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FeatureGroup in a given project and location. +// Create: Creates a new FeatureView in a given FeatureOnlineStore. // -// - parent: The resource name of the Location to create FeatureGroups. -// Format: `projects/{project}/locations/{location}'`. -func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { - c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the FeatureOnlineStore to create +// FeatureViews. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Create(parent string, googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup + c.googlecloudaiplatformv1beta1featureview = googlecloudaiplatformv1beta1featureview return c } -// FeatureGroupId sets the optional parameter "featureGroupId": -// Required. The ID to use for this FeatureGroup, which will become the -// final component of the FeatureGroup's resource name. This value may -// be up to 60 characters, and valid characters are `[a-z0-9_]`. The -// first character cannot be a number. The value must be unique within -// the project and location. -func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { - c.urlParams_.Set("featureGroupId", featureGroupId) +// FeatureViewId sets the optional parameter "featureViewId": Required. +// The ID to use for the FeatureView, which will become the final +// component of the FeatureView's resource name. This value may be up to +// 60 characters, and valid characters are `[a-z0-9_]`. The first +// character cannot be a number. The value must be unique within a +// FeatureOnlineStore. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) FeatureViewId(featureViewId string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("featureViewId", featureViewId) + return c +} + +// RunSyncImmediately sets the optional parameter "runSyncImmediately": +// Immutable. If set to true, one on demand sync will be run +// immediately, regardless whether the FeatureView.sync_config is +// configured or not. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) RunSyncImmediately(runSyncImmediately bool) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("runSyncImmediately", fmt.Sprint(runSyncImmediately)) 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 *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59121,21 +67532,21 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { 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 *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) 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_ { @@ -59143,14 +67554,14 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureview) 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/{+parent}/featureGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViews") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -59163,14 +67574,14 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.create" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59201,30 +67612,35 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new FeatureGroup in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "description": "Creates a new FeatureView in a given FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.create", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "featureGroupId": { - // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "featureViewId": { + // "description": "Required. The ID to use for the FeatureView, which will become the final component of the FeatureView's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a FeatureOnlineStore.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + // "description": "Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" + // }, + // "runSyncImmediately": { + // "description": "Immutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1beta1/{+parent}/featureGroups", + // "path": "v1beta1/{+parent}/featureViews", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -59236,9 +67652,9 @@ func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featureGroups.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.delete": -type ProjectsLocationsFeatureGroupsDeleteCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -59246,29 +67662,157 @@ type ProjectsLocationsFeatureGroupsDeleteCall struct { header_ http.Header } -// Delete: Deletes a single FeatureGroup. -// -// - name: The name of the FeatureGroup to be deleted. Format: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { - c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c +// Delete: Deletes a single FeatureView. +// +// - name: The name of the FeatureView to be deleted. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall{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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) 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.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) 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": "Deletes a single FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall struct { + s *Service + featureView string + googlecloudaiplatformv1beta1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Force sets the optional parameter "force": If set to true, any -// Features under this FeatureGroup will also be deleted. (Otherwise, -// the request will only work if the FeatureGroup has no Features.) -func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) +// FetchFeatureValues: Fetch feature values under a FeatureView. +// +// - featureView: FeatureView resource format +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}/featureViews/{featureView}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) FetchFeatureValues(featureView string, googlecloudaiplatformv1beta1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1beta1fetchfeaturevaluesrequest = googlecloudaiplatformv1beta1fetchfeaturevaluesrequest 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 *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59276,21 +67820,21 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { 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 *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) 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_ { @@ -59298,29 +67842,37 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1fetchfeaturevaluesrequest) + 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/{+featureView}:fetchFeatureValues") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "featureView": c.featureView, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.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 *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59339,7 +67891,7 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59351,30 +67903,28 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a single FeatureGroup.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.delete", + // "description": "Fetch feature values under a FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:fetchFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues", // "parameterOrder": [ - // "name" + // "featureView" // ], // "parameters": { - // "force": { - // "description": "If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.)", - // "location": "query", - // "type": "boolean" - // }, - // "name": { - // "description": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "featureView": { + // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+featureView}:fetchFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59383,9 +67933,9 @@ func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featureGroups.get": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.get": -type ProjectsLocationsFeatureGroupsGetCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -59394,11 +67944,13 @@ type ProjectsLocationsFeatureGroupsGetCall struct { header_ http.Header } -// Get: Gets details of a single FeatureGroup. +// Get: Gets details of a single FeatureView. // -// - name: The name of the FeatureGroup resource. -func (r *ProjectsLocationsFeatureGroupsService) Get(name string) *ProjectsLocationsFeatureGroupsGetCall { - c := &ProjectsLocationsFeatureGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureView resource. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -59406,7 +67958,7 @@ func (r *ProjectsLocationsFeatureGroupsService) Get(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 *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59416,7 +67968,7 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -59424,21 +67976,21 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *P // 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 *ProjectsLocationsFeatureGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { 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 *ProjectsLocationsFeatureGroupsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) 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_ { @@ -59464,16 +68016,15 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Res return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1FeatureGroup or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1FeatureGroup.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureGroup, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureView or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1FeatureView.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureView, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59492,7 +68043,7 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1FeatureGroup{ + ret := &GoogleCloudAiplatformV1beta1FeatureView{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59504,25 +68055,25 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets details of a single FeatureGroup.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "description": "Gets details of a single FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the FeatureGroup resource.", + // "description": "Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59531,9 +68082,9 @@ func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.featureGroups.list": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.list": -type ProjectsLocationsFeatureGroupsListCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -59542,56 +68093,62 @@ type ProjectsLocationsFeatureGroupsListCall struct { header_ http.Header } -// List: Lists FeatureGroups in a given project and location. +// List: Lists FeatureViews in a given FeatureOnlineStore. // -// - parent: The resource name of the Location to list FeatureGroups. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeatureGroupsService) List(parent string) *ProjectsLocationsFeatureGroupsListCall { - c := &ProjectsLocationsFeatureGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the FeatureOnlineStore to list +// FeatureViews. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Lists the FeatureGroups -// that match the filter expression. The following fields are supported: -// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality and -// key presence. Examples: * `create_time > "2020-01-01" OR update_time -// > "2020-01-01" FeatureGroups created or updated after 2020-01-01. * -// `labels.env = "prod" FeatureGroups with label "env" set to "prod". -func (c *ProjectsLocationsFeatureGroupsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsListCall { +// Filter sets the optional parameter "filter": Lists the FeatureViews +// that match the filter expression. The following filters are +// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and +// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality as +// well as key presence. Examples: * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> FeatureViews created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> FeatureViews having both (active: yes) and +// (env: prod) labels. * `labels.env: *` --> Any FeatureView which has a +// label with 'env' as the key. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { 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: * `create_time` * -// `update_time` -func (c *ProjectsLocationsFeatureGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsListCall { +// field name for descending. Supported fields: * `feature_view_id` * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureGroups to return. The service may return fewer than this -// value. If unspecified, at most 100 FeatureGroups will be returned. -// The maximum value is 100; any value greater than 100 will be coerced -// to 100. -func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsListCall { +// of FeatureViews to return. The service may return fewer than this +// value. If unspecified, at most 1000 FeatureViews will be returned. +// The maximum value is 1000; any value greater than 1000 will be +// coerced to 1000. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeatureGroupAdminService.ListFeatureGroups -// call. Provide this to retrieve the subsequent page. When paginating, -// all other parameters provided to -// FeatureGroupAdminService.ListFeatureGroups must match the call that -// provided the page token. -func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureOnlineStoreAdminService.ListFeatureViews must +// match the call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -59599,7 +68156,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken 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 *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59609,7 +68166,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { c.ifNoneMatch_ = entityTag return c } @@ -59617,21 +68174,21 @@ func (c *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) * // 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 *ProjectsLocationsFeatureGroupsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { 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 *ProjectsLocationsFeatureGroupsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) 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_ { @@ -59644,7 +68201,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Re var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureGroups") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViews") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -59657,16 +68214,16 @@ func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse.ServerResponse. -// Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse.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 *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureViewsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59685,7 +68242,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeatureViewsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -59697,46 +68254,46 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lists FeatureGroups in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "description": "Lists FeatureViews in a given FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Lists the FeatureGroups that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureGroups created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", + // "description": "Lists the FeatureViews that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any FeatureView which has a label with 'env' as the key.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "description": "The maximum number of FeatureViews to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featureGroups", + // "path": "v1beta1/{+parent}/featureViews", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -59748,7 +68305,7 @@ func (c *ProjectsLocationsFeatureGroupsListCall) 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 *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureViewsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -59766,38 +68323,38 @@ func (c *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f fu } } -// method id "aiplatform.projects.locations.featureGroups.patch": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.patch": -type ProjectsLocationsFeatureGroupsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single FeatureGroup. +// Patch: Updates the parameters of a single FeatureView. // -// - name: Identifier. Name of the FeatureGroup. Format: -// `projects/{project}/locations/{location}/featureGroups/{featureGroup -// }`. -func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsPatchCall { - c := &ProjectsLocationsFeatureGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. Name of the FeatureView. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name string, googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup + c.googlecloudaiplatformv1beta1featureview = googlecloudaiplatformv1beta1featureview return c } // UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the FeatureGroup +// used to specify the fields to be overwritten in the FeatureView // resource by the update. The fields specified in the update_mask are // relative to the resource, not the full request. A field will be // overwritten if it is in the mask. If the user does not provide a mask // then only the non-empty fields present in the request will be // overwritten. Set the update_mask to `*` to override all fields. // Updatable fields: * `labels` -func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c } @@ -59805,7 +68362,7 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59813,21 +68370,21 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsFeatureGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsPatchCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { 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 *ProjectsLocationsFeatureGroupsPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) 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_ { @@ -59835,7 +68392,7 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureview) if err != nil { return nil, err } @@ -59855,14 +68412,14 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.patch" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -59893,23 +68450,23 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates the parameters of a single FeatureGroup.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "description": "Updates the parameters of a single FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureGroups.patch", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Identifier. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", + // "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // }, // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", // "format": "google-fieldmask", // "location": "query", // "type": "string" @@ -59917,7 +68474,7 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOptio // }, // "path": "v1beta1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -59929,46 +68486,35 @@ func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.featureGroups.features.create": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities": -type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall struct { + s *Service + featureView string + googlecloudaiplatformv1beta1searchnearestentitiesrequest *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Feature in a given FeatureGroup. +// SearchNearestEntities: Search the nearest entities under a +// FeatureView. Search only works for indexable feature view; if a +// feature view isn't indexable, returns Invalid argument response. // -// - parent: The resource name of the EntityType or FeatureGroup to -// create a Feature. Format for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { - c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature - return c -} - -// FeatureId sets the optional parameter "featureId": Required. The ID -// to use for the Feature, which will become the final component of the -// Feature's resource name. This value may be up to 128 characters, and -// valid characters are `[a-z0-9_]`. The first character cannot be a -// number. The value must be unique within an EntityType/FeatureGroup. -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { - c.urlParams_.Set("featureId", featureId) +// - featureView: FeatureView resource format +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}/featureViews/{featureView}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) SearchNearestEntities(featureView string, googlecloudaiplatformv1beta1searchnearestentitiesrequest *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1beta1searchnearestentitiesrequest = googlecloudaiplatformv1beta1searchnearestentitiesrequest 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -59976,21 +68522,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { 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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) 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_ { @@ -59998,14 +68544,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1searchnearestentitiesrequest) 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/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+featureView}:searchNearestEntities") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -60013,19 +68559,22 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "featureView": c.featureView, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.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 *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse.ServerRespo +// nse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60044,7 +68593,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60056,33 +68605,28 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Creates a new Feature in a given FeatureGroup.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "description": "Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:searchNearestEntities", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.features.create", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities", // "parameterOrder": [ - // "parent" + // "featureView" // ], // "parameters": { - // "featureId": { - // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "featureView": { + // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/features", + // "path": "v1beta1/{+featureView}:searchNearestEntities", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60091,33 +68635,33 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featureGroups.features.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.sync": -type ProjectsLocationsFeatureGroupsFeaturesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall struct { + s *Service + featureView string + googlecloudaiplatformv1beta1syncfeatureviewrequest *GoogleCloudAiplatformV1beta1SyncFeatureViewRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single Feature. +// Sync: Triggers on-demand sync for the FeatureView. // -// - name: The name of the Features to be deleted. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/features/{feature}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { - c := &ProjectsLocationsFeatureGroupsFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - featureView: Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Sync(featureView string, googlecloudaiplatformv1beta1syncfeatureviewrequest *GoogleCloudAiplatformV1beta1SyncFeatureViewRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1beta1syncfeatureviewrequest = googlecloudaiplatformv1beta1syncfeatureviewrequest 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60125,21 +68669,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { 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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) 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_ { @@ -60147,29 +68691,36 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1syncfeatureviewrequest) + 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/{+featureView}:sync") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "featureView": c.featureView, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.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 *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. +// Exactly one of *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SyncFeatureViewResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60188,7 +68739,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1SyncFeatureViewResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60200,25 +68751,28 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Deletes a single Feature.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.features.delete", + // "description": "Triggers on-demand sync for the FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.sync", // "parameterOrder": [ - // "name" + // "featureView" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", + // "featureView": { + // "description": "Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+featureView}:sync", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60227,9 +68781,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featureGroups.features.get": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get": -type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -60238,16 +68792,14 @@ type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { header_ http.Header } -// Get: Gets details of a single Feature. +// Get: Gets details of a single FeatureViewSync. // -// - name: The name of the Feature resource. Format for entity_type as -// parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { - c := &ProjectsLocationsFeatureGroupsFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureViewSync resource. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}/featureViewSyncs/{featur +// e_view_sync}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -60255,7 +68807,7 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60265,7 +68817,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Fi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -60273,21 +68825,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag st // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { 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 *ProjectsLocationsFeatureGroupsFeaturesGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) 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_ { @@ -60313,15 +68865,16 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureViewSync or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FeatureViewSync.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureViewSync, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60340,7 +68893,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Feature{ + ret := &GoogleCloudAiplatformV1beta1FeatureViewSync{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60352,25 +68905,25 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Gets details of a single Feature.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "description": "Gets details of a single FeatureViewSync.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs/{featureViewSyncsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSync" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60379,9 +68932,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureGroups.features.list": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list": -type ProjectsLocationsFeatureGroupsFeaturesListCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -60390,92 +68943,63 @@ type ProjectsLocationsFeatureGroupsFeaturesListCall struct { header_ http.Header } -// List: Lists Features in a given FeatureGroup. +// List: Lists FeatureViewSyncs in a given FeatureView. // -// - parent: The resource name of the Location to list Features. Format -// for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) List(parent string) *ProjectsLocationsFeatureGroupsFeaturesListCall { - c := &ProjectsLocationsFeatureGroupsFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the FeatureView to list +// FeatureViewSyncs. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Lists the Features that -// match the filter expression. The following filters are supported: * -// `value_type`: Supports = and != comparisons. * `create_time`: -// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC -// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= -// comparisons. Values must be in RFC 3339 format. * `labels`: Supports -// key-value equality as well as key presence. Examples: * `value_type = -// DOUBLE` --> Features whose type is DOUBLE. * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> Features having both (active: yes) and (env: -// prod) labels. * `labels.env: *` --> Any Feature which has a label -// with 'env' as the key. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// Filter sets the optional parameter "filter": Lists the +// FeatureViewSyncs that match the filter expression. The following +// filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `>=`, and `<=` comparisons. Values must be in RFC 3339 format. +// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\" --> +// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("filter", filter) return c } -// LatestStatsCount sets the optional parameter "latestStatsCount": Only -// applicable for Vertex AI Feature Store (Legacy). If set, return the -// most recent ListFeaturesRequest.latest_stats_count of stats for each -// Feature in response. Valid value is [0, 10]. If number of stats -// exists < ListFeaturesRequest.latest_stats_count, return all existing -// stats. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { - c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) - 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: * `feature_id` * -// `value_type` (Not supported for FeatureRegistry Feature) * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// field name for descending. Supported fields: * `create_time` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of Features to return. The service may return fewer than this value. -// If unspecified, at most 1000 Features will be returned. The maximum -// value is 1000; any value greater than 1000 will be coerced to 1000. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// of FeatureViewSyncs to return. The service may return fewer than this +// value. If unspecified, at most 1000 FeatureViewSyncs will be +// returned. The maximum value is 1000; any value greater than 1000 will +// be coerced to 1000. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListFeatures call or -// FeatureRegistryService.ListFeatures call. Provide this to retrieve -// the subsequent page. When paginating, all other parameters provided -// to FeaturestoreService.ListFeatures or -// FeatureRegistryService.ListFeatures must match the call that provided -// the page token. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to +// FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeatureGroupsFeaturesListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60485,7 +69009,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.ifNoneMatch_ = entityTag return c } @@ -60493,21 +69017,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) 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_ { @@ -60520,7 +69044,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) ( var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViewSyncs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -60533,16 +69057,17 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1ListFeaturesResponse.ServerResponse.Heade -// r or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturesResponse, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60561,7 +69086,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeaturesResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -60573,58 +69098,46 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Lists Features in a given FeatureGroup.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "description": "Lists FeatureViewSyncs in a given FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "description": "Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z.", // "location": "query", // "type": "string" // }, - // "latestStatsCount": { - // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "description": "The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/features", + // "path": "v1beta1/{+parent}/featureViewSyncs", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturesResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -60636,7 +69149,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.Ca // 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 *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturesResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -60654,179 +69167,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Conte } } -// method id "aiplatform.projects.locations.featureGroups.features.patch": - -type ProjectsLocationsFeatureGroupsFeaturesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates the parameters of a single Feature. -// -// - name: Immutable. Name of the Feature. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/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. -func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { - c := &ProjectsLocationsFeatureGroupsFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Features resource -// by the update. The fields specified in the update_mask are relative -// to the resource, not the full request. A field will be overwritten if -// it is in the mask. If the user does not provide a mask then only the -// non-empty fields present in the request will be overwritten. Set the -// update_mask to `*` to override all fields. Updatable fields: * -// `description` * `labels` * `disable_monitoring` (Not supported for -// FeatureRegistry Feature) -func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { - 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { - 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { - 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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) - 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.featureGroups.features.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 *ProjectsLocationsFeatureGroupsFeaturesPatchCall) 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": "Updates the parameters of a single Feature.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureGroups.features.patch", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "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.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete": -type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -60840,8 +69183,8 @@ type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -60849,7 +69192,7 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60857,21 +69200,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) 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_ { @@ -60894,14 +69237,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -60933,9 +69276,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete", // "parameterOrder": [ // "name" // ], @@ -60943,7 +69286,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -60959,9 +69302,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureGroups.features.operations.get": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get": -type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -60975,8 +69318,8 @@ type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -60984,7 +69327,7 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -60994,7 +69337,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -61002,21 +69345,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) 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_ { @@ -61042,14 +69385,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61081,9 +69424,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo return ret, nil // { // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get", // "parameterOrder": [ // "name" // ], @@ -61091,7 +69434,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61107,9 +69450,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.featureGroups.features.operations.list": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.list": -type ProjectsLocationsFeatureGroupsFeaturesOperationsListCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61123,29 +69466,29 @@ type ProjectsLocationsFeatureGroupsFeaturesOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) List(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) List(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -61153,7 +69496,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pag // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61163,7 +69506,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -61171,21 +69514,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) 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_ { @@ -61211,7 +69554,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 @@ -61219,7 +69562,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61251,9 +69594,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...go return ret, nil // { // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.list", // "parameterOrder": [ // "name" // ], @@ -61266,7 +69609,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...go // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", // "required": true, // "type": "string" // }, @@ -61296,7 +69639,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...go // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) 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 { @@ -61314,9 +69657,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx con } } -// method id "aiplatform.projects.locations.featureGroups.features.operations.wait": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait": -type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61336,8 +69679,8 @@ type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61346,7 +69689,7 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name stri // to wait before timing out. If left blank, the wait will be at most // the time permitted by the underlying HTTP/RPC protocol. If RPC // context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -61354,7 +69697,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61362,21 +69705,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { 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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) 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_ { @@ -61399,14 +69742,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61438,9 +69781,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go return ret, nil // { // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait", // "parameterOrder": [ // "name" // ], @@ -61448,7 +69791,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -61470,9 +69813,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureGroups.operations.delete": +// method id "aiplatform.projects.locations.featureOnlineStores.operations.delete": -type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { +type ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61486,8 +69829,8 @@ type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { - c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61495,7 +69838,7 @@ func (r *ProjectsLocationsFeatureGroupsOperationsService) 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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61503,21 +69846,21 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) 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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { 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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) 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_ { @@ -61540,14 +69883,14 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61579,9 +69922,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) 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}/featureGroups/{featureGroupsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.operations.delete", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.delete", // "parameterOrder": [ // "name" // ], @@ -61589,7 +69932,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61605,9 +69948,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featureGroups.operations.get": +// method id "aiplatform.projects.locations.featureOnlineStores.operations.get": -type ProjectsLocationsFeatureGroupsOperationsGetCall struct { +type ProjectsLocationsFeatureOnlineStoresOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61621,8 +69964,8 @@ type ProjectsLocationsFeatureGroupsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { - c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61630,7 +69973,7 @@ func (r *ProjectsLocationsFeatureGroupsOperationsService) 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61640,7 +69983,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -61648,21 +69991,21 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { 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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) 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_ { @@ -61688,14 +70031,14 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61727,9 +70070,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) 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}/featureGroups/{featureGroupsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.operations.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.get", // "parameterOrder": [ // "name" // ], @@ -61737,7 +70080,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -61753,9 +70096,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.featureGroups.operations.list": +// method id "aiplatform.projects.locations.featureOnlineStores.operations.list": -type ProjectsLocationsFeatureGroupsOperationsListCall struct { +type ProjectsLocationsFeatureOnlineStoresOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61769,29 +70112,29 @@ type ProjectsLocationsFeatureGroupsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureGroupsOperationsService) List(name string) *ProjectsLocationsFeatureGroupsOperationsListCall { - c := &ProjectsLocationsFeatureGroupsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) List(name string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -61799,7 +70142,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) 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 *ProjectsLocationsFeatureGroupsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -61809,7 +70152,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) 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 *ProjectsLocationsFeatureGroupsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -61817,21 +70160,21 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) 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 *ProjectsLocationsFeatureGroupsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { 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 *ProjectsLocationsFeatureGroupsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) 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_ { @@ -61857,7 +70200,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.list" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 @@ -61865,7 +70208,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) 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 *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -61897,9 +70240,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) 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}/featureGroups/{featureGroupsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.operations.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.list", // "parameterOrder": [ // "name" // ], @@ -61912,7 +70255,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", // "required": true, // "type": "string" // }, @@ -61942,7 +70285,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) 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 *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) 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 { @@ -61960,9 +70303,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.featureGroups.operations.wait": +// method id "aiplatform.projects.locations.featureOnlineStores.operations.wait": -type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { +type ProjectsLocationsFeatureOnlineStoresOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -61982,8 +70325,8 @@ type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { + c := &ProjectsLocationsFeatureOnlineStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -61992,7 +70335,7 @@ func (r *ProjectsLocationsFeatureGroupsOperationsService) 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -62000,7 +70343,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62008,21 +70351,21 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { 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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) 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_ { @@ -62045,14 +70388,14 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62084,9 +70427,9 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) 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}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.operations.wait", + // "id": "aiplatform.projects.locations.featureOnlineStores.operations.wait", // "parameterOrder": [ // "name" // ], @@ -62094,7 +70437,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -62116,46 +70459,193 @@ func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featureOnlineStores.create": +// method id "aiplatform.projects.locations.featurestores.batchReadFeatureValues": -type ProjectsLocationsFeatureOnlineStoresCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall struct { + s *Service + featurestore string + googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new FeatureOnlineStore in a given project and -// location. +// BatchReadFeatureValues: Batch reads Feature values from a +// Featurestore. This API enables batch reading Feature values, where +// each read instance in the batch may read Feature values of entities +// from one or more EntityTypes. Point-in-time correctness is guaranteed +// for Feature values of each read instance as of each instance's read +// timestamp. // -// - parent: The resource name of the Location to create -// FeatureOnlineStores. Format: -// `projects/{project}/locations/{location}'`. -func (r *ProjectsLocationsFeatureOnlineStoresService) Create(parent string, googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresCreateCall { - c := &ProjectsLocationsFeatureOnlineStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - featurestore: The resource name of the Featurestore from which to +// query Feature values. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresService) BatchReadFeatureValues(featurestore string, googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featurestore = featurestore + c.googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest = googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest + 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { + 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { + 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest) + 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/{+featurestore}:batchReadFeatureValues") + 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{ + "featurestore": c.featurestore, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.batchReadFeatureValues" 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) 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": "Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:batchReadFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.batchReadFeatureValues", + // "parameterOrder": [ + // "featurestore" + // ], + // "parameters": { + // "featurestore": { + // "description": "Required. The resource name of the Featurestore from which to query Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+featurestore}:batchReadFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featurestores.create": + +type ProjectsLocationsFeaturestoresCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new Featurestore in a given project and location. +// +// - parent: The resource name of the Location to create Featurestores. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeaturestoresService) Create(parent string, googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore) *ProjectsLocationsFeaturestoresCreateCall { + c := &ProjectsLocationsFeaturestoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1featureonlinestore = googlecloudaiplatformv1beta1featureonlinestore + c.googlecloudaiplatformv1beta1featurestore = googlecloudaiplatformv1beta1featurestore return c } -// FeatureOnlineStoreId sets the optional parameter -// "featureOnlineStoreId": Required. The ID to use for this -// FeatureOnlineStore, which will become the final component of the -// FeatureOnlineStore's resource name. This value may be up to 60 -// characters, and valid characters are `[a-z0-9_]`. The first character -// cannot be a number. The value must be unique within the project and -// location. -func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) FeatureOnlineStoreId(featureOnlineStoreId string) *ProjectsLocationsFeatureOnlineStoresCreateCall { - c.urlParams_.Set("featureOnlineStoreId", featureOnlineStoreId) +// FeaturestoreId sets the optional parameter "featurestoreId": +// Required. The ID to use for this Featurestore, which will become the +// final component of the Featurestore's resource name. This value may +// be up to 60 characters, and valid characters are `[a-z0-9_]`. The +// first character cannot be a number. The value must be unique within +// the project and location. +func (c *ProjectsLocationsFeaturestoresCreateCall) FeaturestoreId(featurestoreId string) *ProjectsLocationsFeaturestoresCreateCall { + c.urlParams_.Set("featurestoreId", featurestoreId) 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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresCreateCall { +func (c *ProjectsLocationsFeaturestoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62163,21 +70653,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresCreateCall { +func (c *ProjectsLocationsFeaturestoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresCreateCall { 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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresCreateCall) 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_ { @@ -62185,14 +70675,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureonlinestore) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featurestore) 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/{+parent}/featureOnlineStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featurestores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -62205,14 +70695,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.create" call. +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62243,30 +70733,30 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a new FeatureOnlineStore in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + // "description": "Creates a new Featurestore in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.create", + // "id": "aiplatform.projects.locations.featurestores.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "featureOnlineStoreId": { - // "description": "Required. The ID to use for this FeatureOnlineStore, which will become the final component of the FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "featurestoreId": { + // "description": "Required. The ID to use for this Featurestore, which will become the final component of the Featurestore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`", + // "description": "Required. The resource name of the Location to create Featurestores. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featureOnlineStores", + // "path": "v1beta1/{+parent}/featurestores", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // "$ref": "GoogleCloudAiplatformV1beta1Featurestore" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -62278,9 +70768,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featureOnlineStores.delete": +// method id "aiplatform.projects.locations.featurestores.delete": -type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { +type ProjectsLocationsFeaturestoresDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -62288,65 +70778,217 @@ type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes a single FeatureOnlineStore. The FeatureOnlineStore -// must not contain any FeatureViews. +// Delete: Deletes a single Featurestore. The Featurestore must not +// contain any EntityTypes or `force` must be set to true for the +// request to succeed. +// +// - name: The name of the Featurestore to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresService) Delete(name string) *ProjectsLocationsFeaturestoresDeleteCall { + c := &ProjectsLocationsFeaturestoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any +// EntityTypes and Features for this Featurestore will also be deleted. +// (Otherwise, the request will only work if the Featurestore has no +// EntityTypes.) +func (c *ProjectsLocationsFeaturestoresDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsFeaturestoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresDeleteCall { + 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 *ProjectsLocationsFeaturestoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresDeleteCall { + 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 *ProjectsLocationsFeaturestoresDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresDeleteCall) 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.featurestores.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 *ProjectsLocationsFeaturestoresDeleteCall) 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": "Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be set to true for the request to succeed.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "If set to true, any EntityTypes and Features for this Featurestore will also be deleted. (Otherwise, the request will only work if the Featurestore has no EntityTypes.)", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the Featurestore to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featurestores.get": + +type ProjectsLocationsFeaturestoresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Featurestore. // -// - name: The name of the FeatureOnlineStore to be deleted. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}`. -func (r *ProjectsLocationsFeatureOnlineStoresService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Featurestore resource. +func (r *ProjectsLocationsFeaturestoresService) Get(name string) *ProjectsLocationsFeaturestoresGetCall { + c := &ProjectsLocationsFeaturestoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// FeatureViews and Features for this FeatureOnlineStore will also be -// deleted. (Otherwise, the request will only work if the -// FeatureOnlineStore has no FeatureViews.) -func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Force(force bool) *ProjectsLocationsFeatureOnlineStoresDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresDeleteCall { +func (c *ProjectsLocationsFeaturestoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetCall { 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 *ProjectsLocationsFeaturestoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresGetCall { + 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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresDeleteCall { +func (c *ProjectsLocationsFeaturestoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetCall { 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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresGetCall) 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 } @@ -62357,14 +70999,16 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Featurestore or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1Featurestore.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Featurestore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62383,7 +71027,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Featurestore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62395,30 +71039,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.delete", + // "description": "Gets details of a single Featurestore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "description": "If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.)", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "description": "Required. The name of the Featurestore resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Featurestore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62427,97 +71066,93 @@ func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featureOnlineStores.get": +// method id "aiplatform.projects.locations.featurestores.getIamPolicy": -type ProjectsLocationsFeatureOnlineStoresGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresGetIamPolicyCall struct { + s *Service + resource string + googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single FeatureOnlineStore. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - name: The name of the FeatureOnlineStore resource. -func (r *ProjectsLocationsFeatureOnlineStoresService) Get(name string) *ProjectsLocationsFeatureOnlineStoresGetCall { - c := &ProjectsLocationsFeatureOnlineStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresService) GetIamPolicy(resource string, googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest) *ProjectsLocationsFeaturestoresGetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1getiampolicyrequest = googleiamv1getiampolicyrequest 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 *ProjectsLocationsFeatureOnlineStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresGetCall { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresGetCall { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) 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.googleiamv1getiampolicyrequest) + 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/{+resource}:getIamPolicy") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1FeatureOnlineStore or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1FeatureOnlineStore.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureOnlineStore, error) { +// Do executes the "aiplatform.projects.locations.featurestores.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62536,7 +71171,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1FeatureOnlineStore{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62548,25 +71183,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets details of a single FeatureOnlineStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.get", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the FeatureOnlineStore resource.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:getIamPolicy", + // "request": { + // "$ref": "GoogleIamV1GetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62575,9 +71213,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.featureOnlineStores.list": +// method id "aiplatform.projects.locations.featurestores.list": -type ProjectsLocationsFeatureOnlineStoresListCall struct { +type ProjectsLocationsFeaturestoresListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -62586,28 +71224,28 @@ type ProjectsLocationsFeatureOnlineStoresListCall struct { header_ http.Header } -// List: Lists FeatureOnlineStores in a given project and location. +// List: Lists Featurestores in a given project and location. // -// - parent: The resource name of the Location to list -// FeatureOnlineStores. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeatureOnlineStoresService) List(parent string) *ProjectsLocationsFeatureOnlineStoresListCall { - c := &ProjectsLocationsFeatureOnlineStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to list Featurestores. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeaturestoresService) List(parent string) *ProjectsLocationsFeaturestoresListCall { + c := &ProjectsLocationsFeaturestoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Lists the -// FeatureOnlineStores that match the filter expression. The following -// fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, -// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * -// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `labels`: Supports -// key-value equality and key presence. Examples: * `create_time > -// "2020-01-01" OR update_time > "2020-01-01" FeatureOnlineStores -// created or updated after 2020-01-01. * `labels.env = "prod" -// FeatureOnlineStores with label "env" set to "prod". -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresListCall { +// Filter sets the optional parameter "filter": Lists the featurestores +// that match the filter expression. The following fields are supported: +// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must +// be in RFC 3339 format. * `online_serving_config.fixed_node_count`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * `labels`: +// Supports key-value equality and key presence. Examples: * +// `create_time > "2020-01-01" OR update_time > "2020-01-01" +// Featurestores created or updated after 2020-01-01. * `labels.env = +// "prod" Featurestores with label "env" set to "prod". +func (c *ProjectsLocationsFeaturestoresListCall) Filter(filter string) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("filter", filter) return c } @@ -62615,38 +71253,43 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Filter(filter string) *Pr // 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: * `create_time` * -// `update_time` -func (c *ProjectsLocationsFeatureOnlineStoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresListCall { +// `update_time` * `online_serving_config.fixed_node_count` +func (c *ProjectsLocationsFeaturestoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureOnlineStores to return. The service may return fewer than -// this value. If unspecified, at most 100 FeatureOnlineStores will be -// returned. The maximum value is 100; any value greater than 100 will -// be coerced to 100. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresListCall { +// of Featurestores to return. The service may return fewer than this +// value. If unspecified, at most 100 Featurestores will be returned. +// The maximum value is 100; any value greater than 100 will be coerced +// to 100. +func (c *ProjectsLocationsFeaturestoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous -// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to -// FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the -// call that provided the page token. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresListCall { +// received from a previous FeaturestoreService.ListFeaturestores call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.ListFeaturestores +// must match the call that provided the page token. +func (c *ProjectsLocationsFeaturestoresListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeaturestoresListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresListCall { +func (c *ProjectsLocationsFeaturestoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -62656,7 +71299,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresListCall { +func (c *ProjectsLocationsFeaturestoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresListCall { c.ifNoneMatch_ = entityTag return c } @@ -62664,21 +71307,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresListCall { +func (c *ProjectsLocationsFeaturestoresListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresListCall { 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 *ProjectsLocationsFeatureOnlineStoresListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresListCall) 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_ { @@ -62691,7 +71334,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureOnlineStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featurestores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -62704,17 +71347,16 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse.ServerRes -// ponse.Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.featurestores.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturestoresResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListFeaturestoresResponse.ServerResponse. +// Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse, error) { +func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturestoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62733,7 +71375,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeaturestoresResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62745,46 +71387,52 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists FeatureOnlineStores in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + // "description": "Lists Featurestores in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.list", + // "id": "aiplatform.projects.locations.featurestores.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureOnlineStores created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureOnlineStores with label \"env\" set to \"prod\".", + // "description": "Lists the featurestores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` Featurestores created or updated after 2020-01-01. * `labels.env = \"prod\"` Featurestores with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time` * `online_serving_config.fixed_node_count`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "description": "The maximum number of Featurestores to return. The service may return fewer than this value. If unspecified, at most 100 Featurestores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page token.", + // "description": "A page token, received from a previous FeaturestoreService.ListFeaturestores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeaturestores must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location to list Featurestores. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featureOnlineStores", + // "path": "v1beta1/{+parent}/featurestores", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturestoresResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62796,7 +71444,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse) error) error { +func (c *ProjectsLocationsFeaturestoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturestoresResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -62814,104 +71462,326 @@ func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.featureOnlineStores.patch": +// method id "aiplatform.projects.locations.featurestores.patch": -type ProjectsLocationsFeatureOnlineStoresPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single Featurestore. +// +// - name: Output only. Name of the Featurestore. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresService) Patch(name string, googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore) *ProjectsLocationsFeaturestoresPatchCall { + c := &ProjectsLocationsFeaturestoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1featurestore = googlecloudaiplatformv1beta1featurestore + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Featurestore +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `labels` * +// `online_serving_config.fixed_node_count` * +// `online_serving_config.scaling` * `online_storage_ttl_days` +func (c *ProjectsLocationsFeaturestoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresPatchCall { + 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 *ProjectsLocationsFeaturestoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresPatchCall { + 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 *ProjectsLocationsFeaturestoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresPatchCall { + 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 *ProjectsLocationsFeaturestoresPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featurestore) + 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 += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresPatchCall) 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": "Updates the parameters of a single Featurestore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featurestores.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Name of the Featurestore. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Featurestore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * `online_storage_ttl_days`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Featurestore" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featurestores.searchFeatures": + +type ProjectsLocationsFeaturestoresSearchFeaturesCall struct { + s *Service + location string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// SearchFeatures: Searches Features matching a query in a given +// project. +// +// - location: The resource name of the Location to search Features. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeaturestoresService) SearchFeatures(location string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c := &ProjectsLocationsFeaturestoresSearchFeaturesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.location = location + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 100 Features will be returned. The maximum +// value is 100; any value greater than 100 will be coerced to 100. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// Patch: Updates the parameters of a single FeatureOnlineStore. -// -// - name: Identifier. Name of the FeatureOnlineStore. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// eOnlineStore}`. -func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresPatchCall { - c := &ProjectsLocationsFeatureOnlineStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1featureonlinestore = googlecloudaiplatformv1beta1featureonlinestore +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.SearchFeatures call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.SearchFeatures, +// except `page_size`, must match the call that provided the page token. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c.urlParams_.Set("pageToken", pageToken) return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the -// FeatureOnlineStore resource by the update. The fields specified in -// the update_mask are relative to the resource, not the full request. A -// field will be overwritten if it is in the mask. If the user does not -// provide a mask then only the non-empty fields present in the request -// will be overwritten. Set the update_mask to `*` to override all -// fields. Updatable fields: * `big_query_source` * `labels` * -// `sync_config` -func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Query sets the optional parameter "query": Query string that is a +// conjunction of field-restricted queries and/or field-restricted +// filters. Field-restricted queries and filters can be combined using +// `AND` to form a conjunction. A field query is in the form +// FIELD:QUERY. This implicitly checks if QUERY exists as a substring +// within Feature's FIELD. The QUERY and the FIELD are converted to a +// sequence of words (i.e. tokens) for comparison. This is done by: * +// Removing leading/trailing whitespace and tokenizing the search value. +// Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore +// `_`, or asterisk `*` are treated as delimiters for tokens. `*` is +// treated as a wildcard that matches characters within a token. * +// Ignoring case. * Prepending an asterisk to the first and appending an +// asterisk to the last token in QUERY. A QUERY must be either a +// singular token or a phrase. A phrase is one or multiple words +// enclosed in double quotation marks ("). With phrases, the order of +// the words is important. Words in the phrase must be matching in order +// and consecutively. Supported FIELDs for field-restricted queries: * +// `feature_id` * `description` * `entity_type_id` Examples: * +// `feature_id: foo` --> Matches a Feature with ID containing the +// substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: +// foo*feature` --> Matches a Feature with ID containing the substring +// `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND +// description: bar` --> Matches a Feature with ID containing the +// substring `foo` and description containing the substring `bar`. +// Besides field queries, the following exact-match filters are +// supported. The exact-match filters do not support wildcards. Unlike +// field-restricted queries, exact-match filters are case-sensitive. * +// `feature_id`: Supports = comparisons. * `description`: Supports = +// comparisons. Multi-token filters should be enclosed in quotes. * +// `entity_type_id`: Supports = comparisons. * `value_type`: Supports = +// and != comparisons. * `labels`: Supports key-value equality as well +// as key presence. * `featurestore_id`: Supports = comparisons. +// Examples: * `description = "foo bar" --> Any Feature with +// description exactly equal to `foo bar` * `value_type = DOUBLE` --> +// Features whose type is DOUBLE. * `labels.active = yes AND labels.env +// = prod` --> Features having both (active: yes) and (env: prod) +// labels. * `labels.env: *` --> Any Feature which has a label with +// `env` as the key. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Query(query string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + c.urlParams_.Set("query", query) 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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresPatchCall { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSearchFeaturesCall { 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { + 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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresPatchCall { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSearchFeaturesCall { 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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureonlinestore) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil 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/{+location}/featurestores:searchFeatures") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + 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, + "location": c.location, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.searchFeatures" call. +// Exactly one of *GoogleCloudAiplatformV1beta1SearchFeaturesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1SearchFeaturesResponse.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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchFeaturesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -62930,7 +71800,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1SearchFeaturesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -62942,34 +71812,41 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates the parameters of a single FeatureOnlineStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureOnlineStores.patch", + // "description": "Searches Features matching a query in a given project.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores:searchFeatures", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.searchFeatures", // "parameterOrder": [ - // "name" + // "location" // ], // "parameters": { - // "name": { - // "description": "Identifier. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", + // "location": { + // "description": "Required. The resource name of the Location to search Features. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `labels` * `sync_config`", - // "format": "google-fieldmask", + // "pageSize": { + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 100 Features will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.SearchFeatures, except `page_size`, must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "query": { + // "description": "Query string that is a conjunction of field-restricted queries and/or field-restricted filters. Field-restricted queries and filters can be combined using `AND` to form a conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for comparison. This is done by: * Removing leading/trailing whitespace and tokenizing the search value. Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as delimiters for tokens. `*` is treated as a wildcard that matches characters within a token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk to the last token in QUERY. A QUERY must be either a singular token or a phrase. A phrase is one or multiple words enclosed in double quotation marks (\"). With phrases, the order of the words is important. Words in the phrase must be matching in order and consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * `description` * `entity_type_id` Examples: * `feature_id: foo` --\u003e Matches a Feature with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --\u003e Matches a Feature with ID containing the substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --\u003e Matches a Feature with ID containing the substring `foo` and description containing the substring `bar`. Besides field queries, the following exact-match filters are supported. The exact-match filters do not support wildcards. Unlike field-restricted queries, exact-match filters are case-sensitive. * `feature_id`: Supports = comparisons. * `description`: Supports = comparisons. Multi-token filters should be enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: Supports = and != comparisons. * `labels`: Supports key-value equality as well as key presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = \"foo bar\"` --\u003e Any Feature with description exactly equal to `foo bar` * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with `env` as the key.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" - // }, + // "path": "v1beta1/{+location}/featurestores:searchFeatures", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1SearchFeaturesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -62978,54 +71855,57 @@ func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.create": - -type ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchFeaturesResponse) 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) + } } -// Create: Creates a new FeatureView in a given FeatureOnlineStore. -// -// - parent: The resource name of the FeatureOnlineStore to create -// FeatureViews. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Create(parent string, googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1featureview = googlecloudaiplatformv1beta1featureview - return c -} +// method id "aiplatform.projects.locations.featurestores.setIamPolicy": -// FeatureViewId sets the optional parameter "featureViewId": Required. -// The ID to use for the FeatureView, which will become the final -// component of the FeatureView's resource name. This value may be up to -// 60 characters, and valid characters are `[a-z0-9_]`. The first -// character cannot be a number. The value must be unique within a -// FeatureOnlineStore. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) FeatureViewId(featureViewId string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { - c.urlParams_.Set("featureViewId", featureViewId) - return c +type ProjectsLocationsFeaturestoresSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RunSyncImmediately sets the optional parameter "runSyncImmediately": -// Immutable. If set to true, one on demand sync will be run -// immediately, regardless whether the FeatureView.sync_config is -// configured or not. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) RunSyncImmediately(runSyncImmediately bool) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { - c.urlParams_.Set("runSyncImmediately", fmt.Sprint(runSyncImmediately)) +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresSetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63033,21 +71913,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) 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_ { @@ -63055,14 +71935,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureview) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) 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/{+parent}/featureViews") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -63070,19 +71950,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 +// Do executes the "aiplatform.projects.locations.featurestores.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63101,7 +71981,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63113,38 +71993,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ... } return ret, nil // { - // "description": "Creates a new FeatureView in a given FeatureOnlineStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:setIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.create", + // "id": "aiplatform.projects.locations.featurestores.setIamPolicy", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "featureViewId": { - // "description": "Required. The ID to use for the FeatureView, which will become the final component of the FeatureView's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a FeatureOnlineStore.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" - // }, - // "runSyncImmediately": { - // "description": "Immutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1beta1/{+parent}/featureViews", + // "path": "v1beta1/{+resource}:setIamPolicy", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + // "$ref": "GoogleIamV1SetIamPolicyRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63153,31 +72023,39 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.delete": +// method id "aiplatform.projects.locations.featurestores.testIamPermissions": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresTestIamPermissionsCall struct { + s *Service + resource string + googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single FeatureView. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the FeatureView to be deleted. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { + c := &ProjectsLocationsFeaturestoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63185,21 +72063,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) 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_ { @@ -63207,29 +72085,35 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) + 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/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 +// Do executes the "aiplatform.projects.locations.featurestores.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63248,7 +72132,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63260,25 +72144,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ... } return ret, nil // { - // "description": "Deletes a single FeatureView.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.delete", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "GoogleIamV1TestIamPermissionsRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63287,33 +72174,45 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.create": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall struct { - s *Service - featureView string - googlecloudaiplatformv1beta1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// FetchFeatureValues: Fetch feature values under a FeatureView. +// Create: Creates a new EntityType in a given Featurestore. // -// - featureView: FeatureView resource format -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// eOnlineStore}/featureViews/{featureView}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) FetchFeatureValues(featureView string, googlecloudaiplatformv1beta1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featureView = featureView - c.googlecloudaiplatformv1beta1fetchfeaturevaluesrequest = googlecloudaiplatformv1beta1fetchfeaturevaluesrequest +// - parent: The resource name of the Featurestore to create +// EntityTypes. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Create(parent string, googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { + c := &ProjectsLocationsFeaturestoresEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1entitytype = googlecloudaiplatformv1beta1entitytype + return c +} + +// EntityTypeId sets the optional parameter "entityTypeId": Required. +// The ID to use for the EntityType, which will become the final +// component of the EntityType's resource name. This value may be up to +// 60 characters, and valid characters are `[a-z0-9_]`. The first +// character cannot be a number. The value must be unique within a +// featurestore. +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) EntityTypeId(entityTypeId string) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { + c.urlParams_.Set("entityTypeId", entityTypeId) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63321,21 +72220,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) 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_ { @@ -63343,14 +72242,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1fetchfeaturevaluesrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1entitytype) 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/{+featureView}:fetchFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/entityTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -63358,22 +72257,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featureView": c.featureView, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63392,7 +72288,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63404,28 +72300,33 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } return ret, nil // { - // "description": "Fetch feature values under a FeatureView.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:fetchFeatureValues", + // "description": "Creates a new EntityType in a given Featurestore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.create", // "parameterOrder": [ - // "featureView" + // "parent" // ], // "parameters": { - // "featureView": { - // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + // "entityTypeId": { + // "description": "Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a featurestore.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Featurestore to create EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+featureView}:fetchFeatureValues", + // "path": "v1beta1/{+parent}/entityTypes", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest" + // "$ref": "GoogleCloudAiplatformV1beta1EntityType" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63434,79 +72335,74 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.get": +// method id "aiplatform.projects.locations.featurestores.entityTypes.delete": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single FeatureView. +// Delete: Deletes a single EntityType. The EntityType must not have any +// Features or `force` must be set to true for the request to succeed. // -// - name: The name of the FeatureView resource. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the EntityType to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": If set to true, any +// Features for this EntityType will also be deleted. (Otherwise, the +// request will only work if the EntityType has no Features.) +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -63517,15 +72413,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1FeatureView or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1FeatureView.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureView, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63544,7 +72439,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1FeatureView{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63556,25 +72451,30 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo } return ret, nil // { - // "description": "Gets details of a single FeatureView.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.get", + // "description": "Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to true for the request to succeed.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any Features for this EntityType will also be deleted. (Otherwise, the request will only work if the EntityType has no Features.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "description": "Required. The name of the EntityType to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63583,148 +72483,98 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1beta1deletefeaturevaluesrequest *GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists FeatureViews in a given FeatureOnlineStore. +// DeleteFeatureValues: Delete Feature values from Featurestore. The +// progress of the deletion is tracked by the returned operation. The +// deleted feature values are guaranteed to be invisible to subsequent +// read operations after the operation is marked as successfully done. +// If a delete feature values operation fails, the feature values +// returned from reads and exports may be inconsistent. If consistency +// is required, the caller must retry the same delete request again and +// wait till the new operation returned is marked as successfully done. // -// - parent: The resource name of the FeatureOnlineStore to list -// FeatureViews. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Lists the FeatureViews -// that match the filter expression. The following filters are -// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and -// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality as -// well as key presence. Examples: * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> FeatureViews created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> FeatureViews having both (active: yes) and -// (env: prod) labels. * `labels.env: *` --> Any FeatureView which has a -// label with 'env' as the key. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - 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: * `feature_view_id` * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureViews to return. The service may return fewer than this -// value. If unspecified, at most 1000 FeatureViews will be returned. -// The maximum value is 1000; any value greater than 1000 will be -// coerced to 1000. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous -// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to -// retrieve the subsequent page. When paginating, all other parameters -// provided to FeatureOnlineStoreAdminService.ListFeatureViews must -// match the call that provided the page token. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - entityType: The resource name of the EntityType grouping the +// Features for which values are being deleted from. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) DeleteFeatureValues(entityType string, googlecloudaiplatformv1beta1deletefeaturevaluesrequest *GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1beta1deletefeaturevaluesrequest = googlecloudaiplatformv1beta1deletefeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) 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.googlecloudaiplatformv1beta1deletefeaturevaluesrequest) + 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/{+parent}/featureViews") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+entityType}:deleteFeatureValues") 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{ - "parent": c.parent, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureViewsResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues" 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63743,7 +72593,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeatureViewsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -63755,46 +72605,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...go } return ret, nil // { - // "description": "Lists FeatureViews in a given FeatureOnlineStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.list", + // "description": "Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:deleteFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues", // "parameterOrder": [ - // "parent" + // "entityType" // ], // "parameters": { - // "filter": { - // "description": "Lists the FeatureViews that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any FeatureView which has a label with 'env' as the key.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of FeatureViews to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "entityType": { + // "description": "Required. The resource name of the EntityType grouping the Features for which values are being deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featureViews", + // "path": "v1beta1/{+entityType}:deleteFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -63803,67 +72635,35 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...go } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureViewsResponse) 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.featureOnlineStores.featureViews.patch": +// method id "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1beta1exportfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single FeatureView. +// ExportFeatureValues: Exports Feature values from all the entities of +// a target EntityType. // -// - name: Identifier. Name of the FeatureView. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name string, googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1featureview = googlecloudaiplatformv1beta1featureview - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the FeatureView -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// - entityType: The resource name of the EntityType from which to +// export Feature values. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) ExportFeatureValues(entityType string, googlecloudaiplatformv1beta1exportfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1beta1exportfeaturevaluesrequest = googlecloudaiplatformv1beta1exportfeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -63871,21 +72671,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) 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_ { @@ -63893,34 +72693,34 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureview) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1exportfeaturevaluesrequest) 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/{+entityType}:exportFeatureValues") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.patch" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues" 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -63951,31 +72751,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...g } return ret, nil // { - // "description": "Updates the parameters of a single FeatureView.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.patch", + // "description": "Exports Feature values from all the entities of a target EntityType.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:exportFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "name": { - // "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "entityType": { + // "description": "Required. The resource name of the EntityType from which to export Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+entityType}:exportFeatureValues", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + // "$ref": "GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -63987,95 +72781,98 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...g } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities": +// method id "aiplatform.projects.locations.featurestores.entityTypes.get": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall struct { - s *Service - featureView string - googlecloudaiplatformv1beta1searchnearestentitiesrequest *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SearchNearestEntities: Search the nearest entities under a -// FeatureView. Search only works for indexable feature view; if a -// feature view isn't indexable, returns Invalid argument response. +// Get: Gets details of a single EntityType. // -// - featureView: FeatureView resource format -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// eOnlineStore}/featureViews/{featureView}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) SearchNearestEntities(featureView string, googlecloudaiplatformv1beta1searchnearestentitiesrequest *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featureView = featureView - c.googlecloudaiplatformv1beta1searchnearestentitiesrequest = googlecloudaiplatformv1beta1searchnearestentitiesrequest +// - name: The name of the EntityType resource. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesGetCall{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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1searchnearestentitiesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+featureView}:searchNearestEntities") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featureView": c.featureView, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse.ServerRespo -// nse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1EntityType or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1EntityType.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1EntityType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64094,7 +72891,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCa if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse{ + ret := &GoogleCloudAiplatformV1beta1EntityType{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64106,28 +72903,25 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCa } return ret, nil // { - // "description": "Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:searchNearestEntities", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities", + // "description": "Gets details of a single EntityType.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.get", // "parameterOrder": [ - // "featureView" + // "name" // ], // "parameters": { - // "featureView": { - // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + // "name": { + // "description": "Required. The name of the EntityType resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+featureView}:searchNearestEntities", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse" + // "$ref": "GoogleCloudAiplatformV1beta1EntityType" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64136,33 +72930,52 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCa } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.sync": +// method id "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall struct { - s *Service - featureView string - googlecloudaiplatformv1beta1syncfeatureviewrequest *GoogleCloudAiplatformV1beta1SyncFeatureViewRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) GetIamPolicy(resource string) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c } -// Sync: Triggers on-demand sync for the FeatureView. -// -// - featureView: Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Sync(featureView string, googlecloudaiplatformv1beta1syncfeatureviewrequest *GoogleCloudAiplatformV1beta1SyncFeatureViewRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featureView = featureView - c.googlecloudaiplatformv1beta1syncfeatureviewrequest = googlecloudaiplatformv1beta1syncfeatureviewrequest +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64170,21 +72983,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) 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_ { @@ -64192,14 +73005,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1syncfeatureviewrequest) - 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/{+featureView}:sync") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -64207,21 +73015,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featureView": c.featureView, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. -// Exactly one of *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SyncFeatureViewResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64240,7 +73046,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1SyncFeatureViewResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64252,28 +73058,31 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go } return ret, nil // { - // "description": "Triggers on-demand sync for the FeatureView.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:getIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.sync", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy", // "parameterOrder": [ - // "featureView" + // "resource" // ], // "parameters": { - // "featureView": { - // "description": "Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+featureView}:sync", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest" - // }, + // "path": "v1beta1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewResponse" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64282,100 +73091,106 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get": +// method id "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1beta1importfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single FeatureViewSync. +// ImportFeatureValues: Imports Feature values into the Featurestore +// from a source storage. The progress of the import is tracked by the +// returned operation. The imported features are guaranteed to be +// visible to subsequent read operations after the operation is marked +// as successfully done. If an import operation fails, the Feature +// values returned from reads and exports may be inconsistent. If +// consistency is required, the caller must retry the same import +// request again and wait till the new operation returned is marked as +// successfully done. There are also scenarios where the caller can +// cause inconsistency. - Source data for import contains multiple +// distinct Feature values for the same entity ID and timestamp. - +// Source is modified during an import. This includes adding, updating, +// or removing source data and/or metadata. Examples of updating +// metadata include but are not limited to changing storage location, +// storage class, or retention policy. - Online serving cluster is +// under-provisioned. // -// - name: The name of the FeatureViewSync resource. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}/featureViewSyncs/{featur -// e_view_sync}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - entityType: The resource name of the EntityType grouping the +// Features for which values are being imported. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) ImportFeatureValues(entityType string, googlecloudaiplatformv1beta1importfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1beta1importfeaturevaluesrequest = googlecloudaiplatformv1beta1importfeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) 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.googlecloudaiplatformv1beta1importfeaturevaluesrequest) + 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/{+entityType}:importFeatureValues") 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, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1FeatureViewSync or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1FeatureViewSync.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureViewSync, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues" 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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64394,7 +73209,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1FeatureViewSync{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64406,25 +73221,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall } return ret, nil // { - // "description": "Gets details of a single FeatureViewSync.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs/{featureViewSyncsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get", + // "description": "Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:importFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", + // "entityType": { + // "description": "Required. The resource name of the EntityType grouping the Features for which values are being imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+entityType}:importFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSync" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64433,9 +73251,9 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.list": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall struct { +type ProjectsLocationsFeaturestoresEntityTypesListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -64444,63 +73262,76 @@ type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall st header_ http.Header } -// List: Lists FeatureViewSyncs in a given FeatureView. +// List: Lists EntityTypes in a given Featurestore. // -// - parent: The resource name of the FeatureView to list -// FeatureViewSyncs. Format: -// `projects/{project}/locations/{location}/featureOnlineStores/{featur -// e_online_store}/featureViews/{feature_view}`. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Featurestore to list EntityTypes. +// Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": Lists the -// FeatureViewSyncs that match the filter expression. The following -// filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, -// `>=`, and `<=` comparisons. Values must be in RFC 3339 format. -// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\" --> -// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// Filter sets the optional parameter "filter": Lists the EntityTypes +// that match the filter expression. The following filters are +// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and +// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality as +// well as key presence. Examples: * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> EntityTypes having both (active: yes) and +// (env: prod) labels. * `labels.env: *` --> Any EntityType which has a +// label with 'env' as the key. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesListCall { 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: * `create_time` -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// field name for descending. Supported fields: * `entity_type_id` * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesListCall { c.urlParams_.Set("orderBy", orderBy) return c } // PageSize sets the optional parameter "pageSize": The maximum number -// of FeatureViewSyncs to return. The service may return fewer than this -// value. If unspecified, at most 1000 FeatureViewSyncs will be -// returned. The maximum value is 1000; any value greater than 1000 will -// be coerced to 1000. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// of EntityTypes to return. The service may return fewer than this +// value. If unspecified, at most 1000 EntityTypes will be returned. The +// maximum value is 1000; any value greater than 1000 will be coerced to +// 1000. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, -// received from a previous -// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide -// this to retrieve the subsequent page. When paginating, all other -// parameters provided to -// FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the -// call that provided the page token. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +// received from a previous FeaturestoreService.ListEntityTypes call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.ListEntityTypes must +// match the call that provided the page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -64510,7 +73341,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesListCall { c.ifNoneMatch_ = entityTag return c } @@ -64518,21 +73349,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesListCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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_ { @@ -64545,7 +73376,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViewSyncs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/entityTypes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -64558,17 +73389,16 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse.ServerRespon -// se.Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListEntityTypesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListEntityTypesResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListEntityTypesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64587,7 +73417,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListEntityTypesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64599,46 +73429,52 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal } return ret, nil // { - // "description": "Lists FeatureViewSyncs in a given FeatureView.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs", + // "description": "Lists EntityTypes in a given Featurestore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.list", // "parameterOrder": [ // "parent" // ], // "parameters": { // "filter": { - // "description": "Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z.", + // "description": "Lists the EntityTypes that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any EntityType which has a label with 'env' as the key.", // "location": "query", // "type": "string" // }, // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time`", + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `entity_type_id` * `create_time` * `update_time`", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "description": "The maximum number of EntityTypes to return. The service may return fewer than this value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page token.", + // "description": "A page token, received from a previous FeaturestoreService.ListEntityTypes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListEntityTypes must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "description": "Required. The resource name of the Featurestore to list EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featureViewSyncs", + // "path": "v1beta1/{+parent}/entityTypes", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListEntityTypesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64650,7 +73486,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal // 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse) error) error { +func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListEntityTypesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -64668,214 +73504,97 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCal } } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.patch": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType + 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`. +// Patch: Updates the parameters of a single EntityType. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. Name of the EntityType. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` The last part entity_type is assigned +// by the client. The entity_type can be up to 64 characters long and +// can consist only of ASCII Latin letters A-Z and a-z and +// underscore(_), and ASCII digits 0-9 starting with a letter. The +// value will be unique given a featurestore. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) Patch(name string, googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { + c := &ProjectsLocationsFeaturestoresEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1entitytype = googlecloudaiplatformv1beta1entitytype 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) 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.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall) 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleProtobufEmpty" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get": - -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the EntityType +// resource by the update. The fields specified in the update_mask are +// relative to the resource, not the full request. A field will be +// overwritten if it is in the mask. If the user does not provide a mask +// then only the non-empty fields present in the request will be +// overwritten. Set the update_mask to `*` to override all fields. +// Updatable fields: * `description` * `labels` * +// `monitoring_config.snapshot_analysis.disabled` * +// `monitoring_config.snapshot_analysis.monitoring_interval_days` * +// `monitoring_config.snapshot_analysis.staleness_days` * +// `monitoring_config.import_features_analysis.state` * +// `monitoring_config.import_features_analysis.anomaly_detection_baseline +// ` * `monitoring_config.numerical_threshold_config.value` * +// `monitoring_config.categorical_threshold_config.value` * +// `offline_storage_ttl_days` +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { + 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) 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.googlecloudaiplatformv1beta1entitytype) + 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -64886,14 +73605,15 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) doRe return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1EntityType or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1EntityType.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1EntityType, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -64912,7 +73632,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(o if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1EntityType{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -64924,25 +73644,34 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(o } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.get", + // "description": "Updates the parameters of a single EntityType.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is assigned by the client. The entity_type can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given a featurestore.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the EntityType resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * `monitoring_config.snapshot_analysis.monitoring_interval_days` * `monitoring_config.snapshot_analysis.staleness_days` * `monitoring_config.import_features_analysis.state` * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * `monitoring_config.numerical_threshold_config.value` * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1EntityType" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1EntityType" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -64951,119 +73680,97 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsGetCall) Do(o } -// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1beta1readfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// ReadFeatureValues: Reads Feature values of a specific entity of an +// EntityType. For reading feature values of multiple entities of an +// EntityType, please use StreamingReadFeatureValues. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) List(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - entityType: The resource name of the EntityType for the entity +// being read. Value format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. For example, for a machine learning +// model predicting user clicks on a website, an EntityType ID could +// be `user`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) ReadFeatureValues(entityType string, googlecloudaiplatformv1beta1readfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1beta1readfeaturevaluesrequest = googlecloudaiplatformv1beta1readfeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { - 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) 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.googlecloudaiplatformv1beta1readfeaturevaluesrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+entityType}:readFeatureValues") 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, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65082,7 +73789,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -65094,41 +73801,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Do( } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.list", + // "description": "Reads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:readFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "entityType": { + // "description": "Required. The resource name of the EntityType for the entity being read. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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", + // "path": "v1beta1/{+entityType}:readFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -65137,68 +73831,36 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) Do( } -// 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsListCall) 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.featureOnlineStores.featureViews.operations.wait": +// method id "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy": -type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + 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. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { - c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall{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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { + c := &ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65206,21 +73868,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { 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 *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) 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_ { @@ -65228,9 +73890,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doR } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + 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/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -65238,19 +73905,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) doR } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.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.featurestores.entityTypes.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65269,7 +73936,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -65281,31 +73948,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do( } 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}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/operations/{operationsId}:wait", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:setIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.wait", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -65314,32 +73978,37 @@ func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsWaitCall) Do( } -// method id "aiplatform.projects.locations.featureOnlineStores.operations.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues": -type ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest + 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`. +// StreamingReadFeatureValues: Reads Feature values for multiple +// entities. Depending on their size, data for different entities may be +// broken up across multiple responses. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - entityType: The resource name of the entities' type. Value format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entityType}`. For example, for a machine learning +// model predicting user clicks on a website, an EntityType ID could +// be `user`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) StreamingReadFeatureValues(entityType string, googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest = googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65347,21 +74016,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) 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_ { @@ -65369,29 +74038,36 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest) + 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/{+entityType}:streamingReadFeatureValues") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65410,7 +74086,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -65422,25 +74098,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...go } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.delete", + // "description": "Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:streamingReadFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "entityType": { + // "description": "Required. The resource name of the entities' type. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+entityType}:streamingReadFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -65449,97 +74128,100 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsDeleteCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureOnlineStores.operations.get": +// method id "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions": -type ProjectsLocationsFeatureOnlineStoresOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall struct { + s *Service + resource string + 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. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) TestIamPermissions(resource string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { + c := &ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { - c.ifNoneMatch_ = entityTag +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { + 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65558,7 +74240,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -65570,25 +74252,31 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googl } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.get", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:testIamPermissions", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -65597,119 +74285,99 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.featureOnlineStores.operations.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues": -type ProjectsLocationsFeatureOnlineStoresOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall struct { + s *Service + entityType string + googlecloudaiplatformv1beta1writefeaturevaluesrequest *GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// WriteFeatureValues: Writes Feature values of one or more entities of +// an EntityType. The Feature values are merged into existing entities +// if any. The Feature values to be written must have timestamp within +// the online storage retention. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) List(name string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - entityType: The resource name of the EntityType for the entities +// being written. Value format: +// `projects/{project}/locations/{location}/featurestores/ +// {featurestore}/entityTypes/{entityType}`. For example, for a +// machine learning model predicting user clicks on a website, an +// EntityType ID could be `user`. +func (r *ProjectsLocationsFeaturestoresEntityTypesService) WriteFeatureValues(entityType string, googlecloudaiplatformv1beta1writefeaturevaluesrequest *GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { + c := &ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.entityType = entityType + c.googlecloudaiplatformv1beta1writefeaturevaluesrequest = googlecloudaiplatformv1beta1writefeaturevaluesrequest 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 *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { - 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 *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) 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.googlecloudaiplatformv1beta1writefeaturevaluesrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+entityType}:writeFeatureValues") 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, + "entityType": c.entityType, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureOnlineStores.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse 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 *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// *GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65728,7 +74396,7 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -65740,41 +74408,28 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Do(opts ...goog } 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}/featureOnlineStores/{featureOnlineStoresId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.list", + // "description": "Writes Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:writeFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues", // "parameterOrder": [ - // "name" + // "entityType" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "entityType": { + // "description": "Required. The resource name of the EntityType for the entities being written. Value format: `projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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", + // "path": "v1beta1/{+entityType}:writeFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -65783,68 +74438,34 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsListCall) Do(opts ...goog } -// 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 *ProjectsLocationsFeatureOnlineStoresOperationsListCall) 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.featureOnlineStores.operations.wait": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate": -type ProjectsLocationsFeatureOnlineStoresOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest + 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. +// BatchCreate: Creates a batch of Features in a given EntityType. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureOnlineStoresOperationsService) Wait(name string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { - c := &ProjectsLocationsFeatureOnlineStoresOperationsWaitCall{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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - parent: The resource name of the EntityType to create the batch of +// Features under. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) BatchCreate(parent string, googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest = googlecloudaiplatformv1beta1batchcreatefeaturesrequest 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -65852,21 +74473,21 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Fields(s ...goo // 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) 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_ { @@ -65874,9 +74495,14 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest) + 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/{+parent}/features:batchCreate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -65884,19 +74510,19 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) doRequest(alt s } 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.featureOnlineStores.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate" 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 *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -65927,29 +74553,26 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...goog } 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}/featureOnlineStores/{featureOnlineStoresId}/operations/{operationsId}:wait", + // "description": "Creates a batch of Features in a given EntityType.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features:batchCreate", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureOnlineStores.operations.wait", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "parent": { + // "description": "Required. The resource name of the EntityType to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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/{+parent}/features:batchCreate", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -65960,39 +74583,46 @@ func (c *ProjectsLocationsFeatureOnlineStoresOperationsWaitCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.featurestores.batchReadFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.create": -type ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall struct { - s *Service - featurestore string - googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchReadFeatureValues: Batch reads Feature values from a -// Featurestore. This API enables batch reading Feature values, where -// each read instance in the batch may read Feature values of entities -// from one or more EntityTypes. Point-in-time correctness is guaranteed -// for Feature values of each read instance as of each instance's read -// timestamp. +// Create: Creates a new Feature in a given EntityType. // -// - featurestore: The resource name of the Featurestore from which to -// query Feature values. Format: +// - parent: The resource name of the EntityType or FeatureGroup to +// create a Feature. Format for entity_type as parent: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresService) BatchReadFeatureValues(featurestore string, googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.featurestore = featurestore - c.googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest = googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature + return c +} + +// FeatureId sets the optional parameter "featureId": Required. The ID +// to use for the Feature, which will become the final component of the +// Feature's resource name. This value may be up to 128 characters, and +// valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within an EntityType/FeatureGroup. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { + c.urlParams_.Set("featureId", featureId) 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66000,21 +74630,21 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { 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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) 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_ { @@ -66022,14 +74652,14 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchreadfeaturevaluesrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) 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/{+featurestore}:batchReadFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -66037,19 +74667,19 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "featurestore": c.featurestore, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.batchReadFeatureValues" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66080,25 +74710,30 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...go } return ret, nil // { - // "description": "Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:batchReadFeatureValues", + // "description": "Creates a new Feature in a given EntityType.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.batchReadFeatureValues", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.create", // "parameterOrder": [ - // "featurestore" + // "parent" // ], // "parameters": { - // "featurestore": { - // "description": "Required. The resource name of the Featurestore from which to query Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "featureId": { + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+featurestore}:batchReadFeatureValues", + // "path": "v1beta1/{+parent}/features", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchReadFeatureValuesRequest" + // "$ref": "GoogleCloudAiplatformV1beta1Feature" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -66110,43 +74745,33 @@ func (c *ProjectsLocationsFeaturestoresBatchReadFeatureValuesCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featurestores.create": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.delete": -type ProjectsLocationsFeaturestoresCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Featurestore in a given project and location. +// Delete: Deletes a single Feature. // -// - parent: The resource name of the Location to create Featurestores. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeaturestoresService) Create(parent string, googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore) *ProjectsLocationsFeaturestoresCreateCall { - c := &ProjectsLocationsFeaturestoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1featurestore = googlecloudaiplatformv1beta1featurestore - return c -} - -// FeaturestoreId sets the optional parameter "featurestoreId": -// Required. The ID to use for this Featurestore, which will become the -// final component of the Featurestore's resource name. This value may -// be up to 60 characters, and valid characters are `[a-z0-9_]`. The -// first character cannot be a number. The value must be unique within -// the project and location. -func (c *ProjectsLocationsFeaturestoresCreateCall) FeaturestoreId(featurestoreId string) *ProjectsLocationsFeaturestoresCreateCall { - c.urlParams_.Set("featurestoreId", featurestoreId) +// - name: The name of the Features to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall{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 *ProjectsLocationsFeaturestoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66154,21 +74779,21 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsFeaturestoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { 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 *ProjectsLocationsFeaturestoresCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) 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_ { @@ -66176,34 +74801,29 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featurestore) - 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/{+parent}/featurestores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.create" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66234,31 +74854,23 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new Featurestore in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.create", + // "description": "Deletes a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "featurestoreId": { - // "description": "Required. The ID to use for this Featurestore, which will become the final component of the Featurestore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create Featurestores. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featurestores", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Featurestore" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -66269,76 +74881,82 @@ func (c *ProjectsLocationsFeaturestoresCreateCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featurestores.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.get": -type ProjectsLocationsFeaturestoresDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single Featurestore. The Featurestore must not -// contain any EntityTypes or `force` must be set to true for the -// request to succeed. +// Get: Gets details of a single Feature. // -// - name: The name of the Featurestore to be deleted. Format: +// - name: The name of the Feature resource. Format for entity_type as +// parent: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresService) Delete(name string) *ProjectsLocationsFeaturestoresDeleteCall { - c := &ProjectsLocationsFeaturestoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// EntityTypes and Features for this Featurestore will also be deleted. -// (Otherwise, the request will only work if the Featurestore has no -// EntityTypes.) -func (c *ProjectsLocationsFeaturestoresDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsFeaturestoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { + 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 *ProjectsLocationsFeaturestoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { 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 *ProjectsLocationsFeaturestoresDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) 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 } @@ -66349,14 +74967,15 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66375,7 +74994,7 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Feature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66387,30 +75006,25 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be set to true for the request to succeed.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.delete", + // "description": "Gets details of a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "description": "If set to true, any EntityTypes and Features for this Featurestore will also be deleted. (Otherwise, the request will only work if the Featurestore has no EntityTypes.)", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the Featurestore to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Feature" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66419,30 +75033,103 @@ func (c *ProjectsLocationsFeaturestoresDeleteCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.featurestores.get": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.list": -type ProjectsLocationsFeaturestoresGetCall struct { +type ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets details of a single Featurestore. +// List: Lists Features in a given EntityType. // -// - name: The name of the Featurestore resource. -func (r *ProjectsLocationsFeaturestoresService) Get(name string) *ProjectsLocationsFeaturestoresGetCall { - c := &ProjectsLocationsFeaturestoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list Features. Format +// for entity_type as parent: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` Format for feature_group as parent: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the Features that +// match the filter expression. The following filters are supported: * +// `value_type`: Supports = and != comparisons. * `create_time`: +// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC +// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality as well as key presence. Examples: * `value_type = +// DOUBLE` --> Features whose type is DOUBLE. * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> Features having both (active: yes) and (env: +// prod) labels. * `labels.env: *` --> Any Feature which has a label +// with 'env' as the key. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// LatestStatsCount sets the optional parameter "latestStatsCount": Only +// applicable for Vertex AI Feature Store (Legacy). If set, return the +// most recent ListFeaturesRequest.latest_stats_count of stats for each +// Feature in response. Valid value is [0, 10]. If number of stats +// exists < ListFeaturesRequest.latest_stats_count, return all existing +// stats. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) + 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: * `feature_id` * +// `value_type` (Not supported for FeatureRegistry Feature) * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 1000 Features will be returned. The maximum +// value is 1000; any value greater than 1000 will be coerced to 1000. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.ListFeatures call or +// FeatureRegistryService.ListFeatures call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided +// to FeaturestoreService.ListFeatures or +// FeatureRegistryService.ListFeatures must match the call that provided +// the page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66452,7 +75139,7 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsFeaturestoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { c.ifNoneMatch_ = entityTag return c } @@ -66460,21 +75147,21 @@ func (c *ProjectsLocationsFeaturestoresGetCall) IfNoneMatch(entityTag string) *P // 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 *ProjectsLocationsFeaturestoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { 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 *ProjectsLocationsFeaturestoresGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) 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_ { @@ -66487,7 +75174,7 @@ func (c *ProjectsLocationsFeaturestoresGetCall) doRequest(alt string) (*http.Res var body io.Reader = nil 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}/features") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -66495,21 +75182,21 @@ func (c *ProjectsLocationsFeaturestoresGetCall) 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.featurestores.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Featurestore or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1Featurestore.ServerResponse.Header or -// (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListFeaturesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Featurestore, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66528,7 +75215,7 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Featurestore{ + ret := &GoogleCloudAiplatformV1beta1ListFeaturesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66540,25 +75227,58 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets details of a single Featurestore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", + // "description": "Lists Features in a given EntityType.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.get", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Featurestore resource.", + // "filter": { + // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "location": "query", + // "type": "string" + // }, + // "latestStatsCount": { + // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/features", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Featurestore" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66567,36 +75287,74 @@ func (c *ProjectsLocationsFeaturestoresGetCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.featurestores.getIamPolicy": +// 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturesResponse) 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) + } +} -type ProjectsLocationsFeaturestoresGetIamPolicyCall struct { - s *Service - resource string - googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.patch": + +type ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// Patch: Updates the parameters of a single Feature. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresService) GetIamPolicy(resource string, googleiamv1getiampolicyrequest *GoogleIamV1GetIamPolicyRequest) *ProjectsLocationsFeaturestoresGetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1getiampolicyrequest = googleiamv1getiampolicyrequest +// - name: Immutable. Name of the Feature. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/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. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Patch(name string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Features resource +// by the update. The fields specified in the update_mask are relative +// to the resource, not the full request. A field will be overwritten if +// it is in the mask. If the user does not provide a mask then only the +// non-empty fields present in the request will be overwritten. Set the +// update_mask to `*` to override all fields. Updatable fields: * +// `description` * `labels` * `disable_monitoring` (Not supported for +// FeatureRegistry Feature) +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { + 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 *ProjectsLocationsFeaturestoresGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -66604,21 +75362,21 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { 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 *ProjectsLocationsFeaturestoresGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) 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_ { @@ -66626,34 +75384,35 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1getiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) 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/{+resource}:getIamPolicy") + 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 } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66672,7 +75431,7 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudAiplatformV1beta1Feature{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66684,28 +75443,34 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.getIamPolicy", + // "description": "Updates the parameters of a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.patch", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "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.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:getIamPolicy", + // "path": "v1beta1/{+name}", // "request": { - // "$ref": "GoogleIamV1GetIamPolicyRequest" + // "$ref": "GoogleCloudAiplatformV1beta1Feature" // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudAiplatformV1beta1Feature" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66714,150 +75479,90 @@ func (c *ProjectsLocationsFeaturestoresGetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featurestores.list": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel": -type ProjectsLocationsFeaturestoresListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Featurestores in a given project and location. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location to list Featurestores. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeaturestoresService) List(parent string) *ProjectsLocationsFeaturestoresListCall { - c := &ProjectsLocationsFeaturestoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Lists the featurestores -// that match the filter expression. The following fields are supported: -// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must -// be in RFC 3339 format. * `online_serving_config.fixed_node_count`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. * `labels`: -// Supports key-value equality and key presence. Examples: * -// `create_time > "2020-01-01" OR update_time > "2020-01-01" -// Featurestores created or updated after 2020-01-01. * `labels.env = -// "prod" Featurestores with label "env" set to "prod". -func (c *ProjectsLocationsFeaturestoresListCall) Filter(filter string) *ProjectsLocationsFeaturestoresListCall { - 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: * `create_time` * -// `update_time` * `online_serving_config.fixed_node_count` -func (c *ProjectsLocationsFeaturestoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Featurestores to return. The service may return fewer than this -// value. If unspecified, at most 100 Featurestores will be returned. -// The maximum value is 100; any value greater than 100 will be coerced -// to 100. -func (c *ProjectsLocationsFeaturestoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListFeaturestores call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to FeaturestoreService.ListFeaturestores -// must match the call that provided the page token. -func (c *ProjectsLocationsFeaturestoresListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeaturestoresListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall{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 *ProjectsLocationsFeaturestoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresListCall { - 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 *ProjectsLocationsFeaturestoresListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresListCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) 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/{+parent}/featurestores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturestoresResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListFeaturestoresResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturestoresResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -66876,7 +75581,7 @@ func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeaturestoresResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -66888,52 +75593,25 @@ func (c *ProjectsLocationsFeaturestoresListCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Lists Featurestores in a given project and location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.list", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Lists the featurestores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `online_serving_config.fixed_node_count`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` Featurestores created or updated after 2020-01-01. * `labels.env = \"prod\"` Featurestores with label \"env\" set to \"prod\".", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time` * `online_serving_config.fixed_node_count`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of Featurestores to return. The service may return fewer than this value. If unspecified, at most 100 Featurestores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListFeaturestores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeaturestores must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list Featurestores. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/featurestores", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturestoresResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -66942,69 +75620,32 @@ func (c *ProjectsLocationsFeaturestoresListCall) 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 *ProjectsLocationsFeaturestoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturestoresResponse) 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.featurestores.patch": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete": -type ProjectsLocationsFeaturestoresPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single Featurestore. +// 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: Output only. Name of the Featurestore. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresService) Patch(name string, googlecloudaiplatformv1beta1featurestore *GoogleCloudAiplatformV1beta1Featurestore) *ProjectsLocationsFeaturestoresPatchCall { - c := &ProjectsLocationsFeaturestoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1featurestore = googlecloudaiplatformv1beta1featurestore - return c -} - -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Featurestore -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `labels` * -// `online_serving_config.fixed_node_count` * -// `online_serving_config.scaling` * `online_storage_ttl_days` -func (c *ProjectsLocationsFeaturestoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresPatchCall { - 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 *ProjectsLocationsFeaturestoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67012,21 +75653,21 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsFeaturestoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresPatchCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) 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_ { @@ -67034,16 +75675,11 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featurestore) - 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -67054,14 +75690,14 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67080,7 +75716,7 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67092,34 +75728,25 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Updates the parameters of a single Featurestore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featurestores.patch", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. Name of the Featurestore. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Featurestore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `online_serving_config.fixed_node_count` * `online_serving_config.scaling` * `online_storage_ttl_days`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Featurestore" - // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67128,94 +75755,32 @@ func (c *ProjectsLocationsFeaturestoresPatchCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.featurestores.searchFeatures": +// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get": -type ProjectsLocationsFeaturestoresSearchFeaturesCall struct { +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { s *Service - location string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// SearchFeatures: Searches Features matching a query in a given -// project. +// 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. // -// - location: The resource name of the Location to search Features. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsFeaturestoresService) SearchFeatures(location string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c := &ProjectsLocationsFeaturestoresSearchFeaturesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.location = location - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Features to return. The service may return fewer than this value. -// If unspecified, at most 100 Features will be returned. The maximum -// value is 100; any value greater than 100 will be coerced to 100. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.SearchFeatures call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to FeaturestoreService.SearchFeatures, -// except `page_size`, must match the call that provided the page token. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Query sets the optional parameter "query": Query string that is a -// conjunction of field-restricted queries and/or field-restricted -// filters. Field-restricted queries and filters can be combined using -// `AND` to form a conjunction. A field query is in the form -// FIELD:QUERY. This implicitly checks if QUERY exists as a substring -// within Feature's FIELD. The QUERY and the FIELD are converted to a -// sequence of words (i.e. tokens) for comparison. This is done by: * -// Removing leading/trailing whitespace and tokenizing the search value. -// Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore -// `_`, or asterisk `*` are treated as delimiters for tokens. `*` is -// treated as a wildcard that matches characters within a token. * -// Ignoring case. * Prepending an asterisk to the first and appending an -// asterisk to the last token in QUERY. A QUERY must be either a -// singular token or a phrase. A phrase is one or multiple words -// enclosed in double quotation marks ("). With phrases, the order of -// the words is important. Words in the phrase must be matching in order -// and consecutively. Supported FIELDs for field-restricted queries: * -// `feature_id` * `description` * `entity_type_id` Examples: * -// `feature_id: foo` --> Matches a Feature with ID containing the -// substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: -// foo*feature` --> Matches a Feature with ID containing the substring -// `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND -// description: bar` --> Matches a Feature with ID containing the -// substring `foo` and description containing the substring `bar`. -// Besides field queries, the following exact-match filters are -// supported. The exact-match filters do not support wildcards. Unlike -// field-restricted queries, exact-match filters are case-sensitive. * -// `feature_id`: Supports = comparisons. * `description`: Supports = -// comparisons. Multi-token filters should be enclosed in quotes. * -// `entity_type_id`: Supports = comparisons. * `value_type`: Supports = -// and != comparisons. * `labels`: Supports key-value equality as well -// as key presence. * `featurestore_id`: Supports = comparisons. -// Examples: * `description = "foo bar" --> Any Feature with -// description exactly equal to `foo bar` * `value_type = DOUBLE` --> -// Features whose type is DOUBLE. * `labels.active = yes AND labels.env -// = prod` --> Features having both (active: yes) and (env: prod) -// labels. * `labels.env: *` --> Any Feature which has a label with -// `env` as the key. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Query(query string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { - c.urlParams_.Set("query", query) +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSearchFeaturesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67225,7 +75790,7 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresSearchFeaturesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -67233,21 +75798,21 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSearchFeaturesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) 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_ { @@ -67260,7 +75825,7 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+location}/featurestores:searchFeatures") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -67268,21 +75833,19 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "location": c.location, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.searchFeatures" call. -// Exactly one of *GoogleCloudAiplatformV1beta1SearchFeaturesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1SearchFeaturesResponse.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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchFeaturesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67301,7 +75864,7 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1SearchFeaturesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67313,41 +75876,25 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Searches Features matching a query in a given project.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores:searchFeatures", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.searchFeatures", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", // "parameterOrder": [ - // "location" + // "name" // ], // "parameters": { - // "location": { - // "description": "Required. The resource name of the Location to search Features. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 100 Features will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.SearchFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.SearchFeatures, except `page_size`, must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "query": { - // "description": "Query string that is a conjunction of field-restricted queries and/or field-restricted filters. Field-restricted queries and filters can be combined using `AND` to form a conjunction. A field query is in the form FIELD:QUERY. This implicitly checks if QUERY exists as a substring within Feature's FIELD. The QUERY and the FIELD are converted to a sequence of words (i.e. tokens) for comparison. This is done by: * Removing leading/trailing whitespace and tokenizing the search value. Characters that are not one of alphanumeric `[a-zA-Z0-9]`, underscore `_`, or asterisk `*` are treated as delimiters for tokens. `*` is treated as a wildcard that matches characters within a token. * Ignoring case. * Prepending an asterisk to the first and appending an asterisk to the last token in QUERY. A QUERY must be either a singular token or a phrase. A phrase is one or multiple words enclosed in double quotation marks (\"). With phrases, the order of the words is important. Words in the phrase must be matching in order and consecutively. Supported FIELDs for field-restricted queries: * `feature_id` * `description` * `entity_type_id` Examples: * `feature_id: foo` --\u003e Matches a Feature with ID containing the substring `foo` (eg. `foo`, `foofeature`, `barfoo`). * `feature_id: foo*feature` --\u003e Matches a Feature with ID containing the substring `foo*feature` (eg. `foobarfeature`). * `feature_id: foo AND description: bar` --\u003e Matches a Feature with ID containing the substring `foo` and description containing the substring `bar`. Besides field queries, the following exact-match filters are supported. The exact-match filters do not support wildcards. Unlike field-restricted queries, exact-match filters are case-sensitive. * `feature_id`: Supports = comparisons. * `description`: Supports = comparisons. Multi-token filters should be enclosed in quotes. * `entity_type_id`: Supports = comparisons. * `value_type`: Supports = and != comparisons. * `labels`: Supports key-value equality as well as key presence. * `featurestore_id`: Supports = comparisons. Examples: * `description = \"foo bar\"` --\u003e Any Feature with description exactly equal to `foo bar` * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with `env` as the key.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+location}/featurestores:searchFeatures", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchFeaturesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67356,114 +75903,119 @@ func (c *ProjectsLocationsFeaturestoresSearchFeaturesCall) 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 *ProjectsLocationsFeaturestoresSearchFeaturesCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchFeaturesResponse) 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.featurestores.entityTypes.features.operations.list": + +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// method id "aiplatform.projects.locations.featurestores.setIamPolicy": +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} -type ProjectsLocationsFeaturestoresSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresSetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresSetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { + 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresSetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { 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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *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 *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67482,7 +76034,7 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67494,28 +76046,41 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.setIamPolicy", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "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/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67524,39 +76089,68 @@ func (c *ProjectsLocationsFeaturestoresSetIamPolicyCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.featurestores.testIamPermissions": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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.featurestores.entityTypes.features.operations.wait": -type ProjectsLocationsFeaturestoresTestIamPermissionsCall struct { - s *Service - resource string - googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// 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. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresService) TestIamPermissions(resource string, googleiamv1testiampermissionsrequest *GoogleIamV1TestIamPermissionsRequest) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { - c := &ProjectsLocationsFeaturestoresTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1testiampermissionsrequest = googleiamv1testiampermissionsrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67564,21 +76158,21 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) 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 *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresTestIamPermissionsCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) 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_ { @@ -67586,14 +76180,9 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt str } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1testiampermissionsrequest) - 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -67601,20 +76190,19 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) doRequest(alt str } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67633,7 +76221,7 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67645,28 +76233,31 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...google } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}:testIamPermissions", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.testIamPermissions", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:testIamPermissions", - // "request": { - // "$ref": "GoogleIamV1TestIamPermissionsRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67675,45 +76266,38 @@ func (c *ProjectsLocationsFeaturestoresTestIamPermissionsCall) Do(opts ...google } -// method id "aiplatform.projects.locations.featurestores.entityTypes.create": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel": -type ProjectsLocationsFeaturestoresEntityTypesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new EntityType in a given Featurestore. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Featurestore to create -// EntityTypes. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Create(parent string, googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { - c := &ProjectsLocationsFeaturestoresEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1entitytype = googlecloudaiplatformv1beta1entitytype - return c -} - -// EntityTypeId sets the optional parameter "entityTypeId": Required. -// The ID to use for the EntityType, which will become the final -// component of the EntityType's resource name. This value may be up to -// 60 characters, and valid characters are `[a-z0-9_]`. The first -// character cannot be a number. The value must be unique within a -// featurestore. -func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) EntityTypeId(entityTypeId string) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { - c.urlParams_.Set("entityTypeId", entityTypeId) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67721,21 +76305,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Fields(s ...google // 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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesCreateCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) 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_ { @@ -67743,14 +76327,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1entitytype) - 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/{+parent}/entityTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -67758,19 +76337,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67789,7 +76368,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67801,33 +76380,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates a new EntityType in a given Featurestore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.create", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "entityTypeId": { - // "description": "Required. The ID to use for the EntityType, which will become the final component of the EntityType's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a featurestore.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Featurestore to create EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/entityTypes", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1EntityType" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67836,9 +76407,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.featurestores.entityTypes.delete": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesDeleteCall struct { +type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -67846,30 +76417,22 @@ type ProjectsLocationsFeaturestoresEntityTypesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single EntityType. The EntityType must not have any -// Features or `force` must be set to true for the request to succeed. +// 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 EntityType to be deleted. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": If set to true, any -// Features for this EntityType will also be deleted. (Otherwise, the -// request will only work if the EntityType has no Features.) -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -67877,21 +76440,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Fields(s ...google // 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) 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_ { @@ -67914,14 +76477,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -67940,7 +76503,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -67952,30 +76515,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to true for the request to succeed.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.delete", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "description": "If set to true, any Features for this EntityType will also be deleted. (Otherwise, the request will only work if the EntityType has no Features.)", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the EntityType to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -67984,98 +76542,97 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1beta1deletefeaturevaluesrequest *GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// DeleteFeatureValues: Delete Feature values from Featurestore. The -// progress of the deletion is tracked by the returned operation. The -// deleted feature values are guaranteed to be invisible to subsequent -// read operations after the operation is marked as successfully done. -// If a delete feature values operation fails, the feature values -// returned from reads and exports may be inconsistent. If consistency -// is required, the caller must retry the same delete request again and -// wait till the new operation returned is marked as successfully done. +// 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. // -// - entityType: The resource name of the EntityType grouping the -// Features for which values are being deleted from. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) DeleteFeatureValues(entityType string, googlecloudaiplatformv1beta1deletefeaturevaluesrequest *GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1beta1deletefeaturevaluesrequest = googlecloudaiplatformv1beta1deletefeaturevaluesrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1deletefeaturevaluesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+entityType}:deleteFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues" call. +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68106,26 +76663,23 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(op } return ret, nil // { - // "description": "Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:deleteFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.deleteFeatureValues", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.get", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType grouping the Features for which values are being deleted from. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+entityType}:deleteFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DeleteFeatureValuesRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -68136,92 +76690,119 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesDeleteFeatureValuesCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues": +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1beta1exportfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ExportFeatureValues: Exports Feature values from all the entities of -// a target EntityType. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - entityType: The resource name of the EntityType from which to -// export Feature values. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) ExportFeatureValues(entityType string, googlecloudaiplatformv1beta1exportfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1beta1exportfeaturevaluesrequest = googlecloudaiplatformv1beta1exportfeaturevaluesrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1exportfeaturevaluesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+entityType}:exportFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues" 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 +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68240,7 +76821,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68252,28 +76833,41 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(op } return ret, nil // { - // "description": "Exports Feature values from all the entities of a target EntityType.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:exportFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.exportFeatureValues", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.list", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType from which to export Feature values. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "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/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "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/{+entityType}:exportFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ExportFeatureValuesRequest" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -68282,79 +76876,102 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesExportFeatureValuesCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.get": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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) + } +} -type ProjectsLocationsFeaturestoresEntityTypesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.wait": + +type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets details of a single EntityType. +// 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 EntityType resource. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesGetCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetCall { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -68365,15 +76982,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1EntityType or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1EntityType.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1EntityType, error) { +func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68392,7 +77008,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1EntityType{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68404,25 +77020,31 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets details of a single EntityType.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.get", + // "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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the EntityType resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/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}", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1EntityType" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -68431,52 +77053,38 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy": +// method id "aiplatform.projects.locations.featurestores.operations.cancel": -type ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall struct { +type ProjectsLocationsFeaturestoresOperationsCancelCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// 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`. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) GetIamPolicy(resource string) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsFeaturestoresOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresOperationsCancelCall { + c := &ProjectsLocationsFeaturestoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68484,21 +77092,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) 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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) 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_ { @@ -68508,7 +77116,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(al var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -68516,19 +77124,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.featurestores.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 -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// *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 *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68547,7 +77155,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68559,31 +77167,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...g } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:getIamPolicy", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.getIamPolicy", + // "id": "aiplatform.projects.locations.featurestores.operations.cancel", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:getIamPolicy", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -68592,49 +77194,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesGetIamPolicyCall) Do(opts ...g } -// method id "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues": +// method id "aiplatform.projects.locations.featurestores.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1beta1importfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ImportFeatureValues: Imports Feature values into the Featurestore -// from a source storage. The progress of the import is tracked by the -// returned operation. The imported features are guaranteed to be -// visible to subsequent read operations after the operation is marked -// as successfully done. If an import operation fails, the Feature -// values returned from reads and exports may be inconsistent. If -// consistency is required, the caller must retry the same import -// request again and wait till the new operation returned is marked as -// successfully done. There are also scenarios where the caller can -// cause inconsistency. - Source data for import contains multiple -// distinct Feature values for the same entity ID and timestamp. - -// Source is modified during an import. This includes adding, updating, -// or removing source data and/or metadata. Examples of updating -// metadata include but are not limited to changing storage location, -// storage class, or retention policy. - Online serving cluster is -// under-provisioned. +// 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`. // -// - entityType: The resource name of the EntityType grouping the -// Features for which values are being imported. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) ImportFeatureValues(entityType string, googlecloudaiplatformv1beta1importfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1beta1importfeaturevaluesrequest = googlecloudaiplatformv1beta1importfeaturevaluesrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresOperationsDeleteCall { + c := &ProjectsLocationsFeaturestoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68642,21 +77227,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Field // 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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) 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_ { @@ -68664,34 +77249,29 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) doReq } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1importfeaturevaluesrequest) - 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/{+entityType}:importFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues" 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.featurestores.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 *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68710,7 +77290,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68722,28 +77302,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(op } return ret, nil // { - // "description": "Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:importFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.importFeatureValues", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featurestores.operations.delete", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType grouping the Features for which values are being imported. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+entityType}:importFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ImportFeatureValuesRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -68752,87 +77329,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesImportFeatureValuesCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.list": +// method id "aiplatform.projects.locations.featurestores.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesListCall struct { +type ProjectsLocationsFeaturestoresOperationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists EntityTypes in a given Featurestore. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The resource name of the Featurestore to list EntityTypes. -// Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Lists the EntityTypes -// that match the filter expression. The following filters are -// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and -// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: -// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality as -// well as key presence. Examples: * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> EntityTypes having both (active: yes) and -// (env: prod) labels. * `labels.env: *` --> Any EntityType which has a -// label with 'env' as the key. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - 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: * `entity_type_id` * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of EntityTypes to return. The service may return fewer than this -// value. If unspecified, at most 1000 EntityTypes will be returned. The -// maximum value is 1000; any value greater than 1000 will be coerced to -// 1000. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListEntityTypes call. -// Provide this to retrieve the subsequent page. When paginating, all -// other parameters provided to FeaturestoreService.ListEntityTypes must -// match the call that provided the page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeaturestoresOperationsService) Get(name string) *ProjectsLocationsFeaturestoresOperationsGetCall { + c := &ProjectsLocationsFeaturestoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesListCall { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -68842,7 +77364,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesListCall { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -68850,21 +77372,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesListCall { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsGetCall) 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_ { @@ -68877,7 +77399,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/entityTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -68885,21 +77407,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) doRequest(alt string } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListEntityTypesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListEntityTypesResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListEntityTypesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -68918,7 +77438,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListEntityTypesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -68930,172 +77450,127 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists EntityTypes in a given Featurestore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.list", + // "id": "aiplatform.projects.locations.featurestores.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Lists the EntityTypes that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e EntityTypes having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any EntityType which has a label with 'env' as the key.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `entity_type_id` * `create_time` * `update_time`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of EntityTypes to return. The service may return fewer than this value. If unspecified, at most 1000 EntityTypes will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListEntityTypes call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListEntityTypes must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Featurestore to list EntityTypes. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/entityTypes", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListEntityTypesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "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 *ProjectsLocationsFeaturestoresEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListEntityTypesResponse) 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.featurestores.entityTypes.patch": +// method id "aiplatform.projects.locations.featurestores.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeaturestoresOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single EntityType. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - name: Immutable. Name of the EntityType. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` The last part entity_type is assigned -// by the client. The entity_type can be up to 64 characters long and -// can consist only of ASCII Latin letters A-Z and a-z and -// underscore(_), and ASCII digits 0-9 starting with a letter. The -// value will be unique given a featurestore. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) Patch(name string, googlecloudaiplatformv1beta1entitytype *GoogleCloudAiplatformV1beta1EntityType) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { - c := &ProjectsLocationsFeaturestoresEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeaturestoresOperationsService) List(name string) *ProjectsLocationsFeaturestoresOperationsListCall { + c := &ProjectsLocationsFeaturestoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1entitytype = googlecloudaiplatformv1beta1entitytype return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the EntityType -// resource by the update. The fields specified in the update_mask are -// relative to the resource, not the full request. A field will be -// overwritten if it is in the mask. If the user does not provide a mask -// then only the non-empty fields present in the request will be -// overwritten. Set the update_mask to `*` to override all fields. -// Updatable fields: * `description` * `labels` * -// `monitoring_config.snapshot_analysis.disabled` * -// `monitoring_config.snapshot_analysis.monitoring_interval_days` * -// `monitoring_config.snapshot_analysis.staleness_days` * -// `monitoring_config.import_features_analysis.state` * -// `monitoring_config.import_features_analysis.anomaly_detection_baseline -// ` * `monitoring_config.numerical_threshold_config.value` * -// `monitoring_config.categorical_threshold_config.value` * -// `offline_storage_ttl_days` -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsListCall { 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 *ProjectsLocationsFeaturestoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesPatchCall { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1entitytype) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil 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/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -69106,15 +77581,15 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1EntityType or error will +// Do executes the "aiplatform.projects.locations.featurestores.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 -// *GoogleCloudAiplatformV1beta1EntityType.ServerResponse.Header or (if +// *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 *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1EntityType, error) { +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69133,7 +77608,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1EntityType{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69145,34 +77620,41 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleap } return ret, nil // { - // "description": "Updates the parameters of a single EntityType.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.patch", + // "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}/featurestores/{featurestoresId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featurestores.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Immutable. Name of the EntityType. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` The last part entity_type is assigned by the client. The entity_type can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z and underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given a featurestore.", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the EntityType resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `monitoring_config.snapshot_analysis.disabled` * `monitoring_config.snapshot_analysis.monitoring_interval_days` * `monitoring_config.snapshot_analysis.staleness_days` * `monitoring_config.import_features_analysis.state` * `monitoring_config.import_features_analysis.anomaly_detection_baseline` * `monitoring_config.numerical_threshold_config.value` * `monitoring_config.categorical_threshold_config.value` * `offline_storage_ttl_days`", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1EntityType" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1EntityType" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69181,38 +77663,68 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesPatchCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeaturestoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // 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) + } +} -type ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1beta1readfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.featurestores.operations.wait": + +type ProjectsLocationsFeaturestoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadFeatureValues: Reads Feature values of a specific entity of an -// EntityType. For reading feature values of multiple entities of an -// EntityType, please use StreamingReadFeatureValues. +// 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. // -// - entityType: The resource name of the EntityType for the entity -// being read. Value format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. For example, for a machine learning -// model predicting user clicks on a website, an EntityType ID could -// be `user`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) ReadFeatureValues(entityType string, googlecloudaiplatformv1beta1readfeaturevaluesrequest *GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1beta1readfeaturevaluesrequest = googlecloudaiplatformv1beta1readfeaturevaluesrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeaturestoresOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c := &ProjectsLocationsFeaturestoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69220,21 +77732,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Fields( // 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 *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) 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_ { @@ -69242,14 +77754,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doReque } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1readfeaturevaluesrequest) - 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/{+entityType}:readFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -69257,21 +77764,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) doReque } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse, error) { +// Do executes the "aiplatform.projects.locations.featurestores.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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69290,7 +77795,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69302,28 +77807,31 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts } return ret, nil // { - // "description": "Reads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:readFeatureValues", + // "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}/featurestores/{featurestoresId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.readFeatureValues", + // "id": "aiplatform.projects.locations.featurestores.operations.wait", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType for the entity being read. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/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/{+entityType}:readFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ReadFeatureValuesRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69332,36 +77840,42 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesReadFeatureValuesCall) Do(opts } -// method id "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.cancel": -type ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsHyperparameterTuningJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// Cancel: Cancels a HyperparameterTuningJob. Starts asynchronous +// cancellation on the HyperparameterTuningJob. The server makes a best +// effort to cancel the job, but success is not guaranteed. Clients can +// use JobService.GetHyperparameterTuningJob or other methods to check +// whether the cancellation succeeded or whether the job completed +// despite cancellation. On successful cancellation, the +// HyperparameterTuningJob is not deleted; instead it becomes a job with +// a HyperparameterTuningJob.error value with a google.rpc.Status.code +// of 1, corresponding to `Code.CANCELLED`, and +// HyperparameterTuningJob.state is set to `CANCELLED`. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { - c := &ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the HyperparameterTuningJob to cancel. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h +// yperparameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest) *ProjectsLocationsHyperparameterTuningJobsCancelCall { + c := &ProjectsLocationsHyperparameterTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest = googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest 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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69369,21 +77883,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) 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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall { +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) 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_ { @@ -69391,14 +77905,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(al } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest) 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/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -69406,19 +77920,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// *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 *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69437,7 +77951,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69449,28 +77963,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...g } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:setIamPolicy", + // "description": "Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.setIamPolicy", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:setIamPolicy", + // "path": "v1beta1/{+name}:cancel", // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" + // "$ref": "GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest" // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69479,37 +77993,33 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesSetIamPolicyCall) Do(opts ...g } -// method id "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.create": -type ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsHyperparameterTuningJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1hyperparametertuningjob *GoogleCloudAiplatformV1beta1HyperparameterTuningJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// StreamingReadFeatureValues: Reads Feature values for multiple -// entities. Depending on their size, data for different entities may be -// broken up across multiple responses. +// Create: Creates a HyperparameterTuningJob // -// - entityType: The resource name of the entities' type. Value format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entityType}`. For example, for a machine learning -// model predicting user clicks on a website, an EntityType ID could -// be `user`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) StreamingReadFeatureValues(entityType string, googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest *GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest = googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest +// - parent: The resource name of the Location to create the +// HyperparameterTuningJob in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Create(parent string, googlecloudaiplatformv1beta1hyperparametertuningjob *GoogleCloudAiplatformV1beta1HyperparameterTuningJob) *ProjectsLocationsHyperparameterTuningJobsCreateCall { + c := &ProjectsLocationsHyperparameterTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1hyperparametertuningjob = googlecloudaiplatformv1beta1hyperparametertuningjob 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 *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69517,21 +78027,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall // 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 *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCreateCall { 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 *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) 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_ { @@ -69539,14 +78049,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1streamingreadfeaturevaluesrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1hyperparametertuningjob) 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/{+entityType}:streamingReadFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hyperparameterTuningJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -69554,21 +78064,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1HyperparameterTuningJob // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse.ServerResponse. -// Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1HyperparameterTuningJob.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1HyperparameterTuningJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69587,7 +78097,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse{ + ret := &GoogleCloudAiplatformV1beta1HyperparameterTuningJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69599,28 +78109,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } return ret, nil // { - // "description": "Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:streamingReadFeatureValues", + // "description": "Creates a HyperparameterTuningJob", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.streamingReadFeatureValues", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.create", // "parameterOrder": [ - // "entityType" + // "parent" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the entities' type. Value format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", + // "parent": { + // "description": "Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+entityType}:streamingReadFeatureValues", + // "path": "v1beta1/{+parent}/hyperparameterTuningJobs", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest" + // "$ref": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ReadFeatureValuesResponse" + // "$ref": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69629,47 +78139,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesStreamingReadFeatureValuesCall } -// method id "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.delete": -type ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall struct { +type ProjectsLocationsHyperparameterTuningJobsDeleteCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// Delete: Deletes a HyperparameterTuningJob. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) TestIamPermissions(resource string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { - c := &ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// Permissions sets the optional parameter "permissions": The set of -// permissions to check for the `resource`. Permissions with wildcards -// (such as `*` or `storage.*`) are not allowed. For more information -// see IAM Overview -// (https://cloud.google.com/iam/docs/overview#permissions). -func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { - c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) +// - name: The name of the HyperparameterTuningJob resource to be +// deleted. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h +// yperparameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { + c := &ProjectsLocationsHyperparameterTuningJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -69677,21 +78172,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Fields // 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 *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) 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_ { @@ -69701,28 +78196,27 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) doRequ var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69741,7 +78235,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69753,31 +78247,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opt } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.testIamPermissions", + // "description": "Deletes a HyperparameterTuningJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.delete", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "permissions": { - // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:testIamPermissions", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69786,99 +78274,99 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesTestIamPermissionsCall) Do(opt } -// method id "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.get": -type ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall struct { - s *Service - entityType string - googlecloudaiplatformv1beta1writefeaturevaluesrequest *GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsHyperparameterTuningJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// WriteFeatureValues: Writes Feature values of one or more entities of -// an EntityType. The Feature values are merged into existing entities -// if any. The Feature values to be written must have timestamp within -// the online storage retention. +// Get: Gets a HyperparameterTuningJob // -// - entityType: The resource name of the EntityType for the entities -// being written. Value format: -// `projects/{project}/locations/{location}/featurestores/ -// {featurestore}/entityTypes/{entityType}`. For example, for a -// machine learning model predicting user clicks on a website, an -// EntityType ID could be `user`. -func (r *ProjectsLocationsFeaturestoresEntityTypesService) WriteFeatureValues(entityType string, googlecloudaiplatformv1beta1writefeaturevaluesrequest *GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { - c := &ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.entityType = entityType - c.googlecloudaiplatformv1beta1writefeaturevaluesrequest = googlecloudaiplatformv1beta1writefeaturevaluesrequest +// - name: The name of the HyperparameterTuningJob resource. Format: +// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h +// yperparameter_tuning_job}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsGetCall { + c := &ProjectsLocationsHyperparameterTuningJobsGetCall{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 *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsGetCall { 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsGetCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1writefeaturevaluesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+entityType}:writeFeatureValues") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "entityType": c.entityType, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse.ServerResponse -// .Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1HyperparameterTuningJob +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1HyperparameterTuningJob.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1HyperparameterTuningJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -69897,7 +78385,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse{ + ret := &GoogleCloudAiplatformV1beta1HyperparameterTuningJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -69909,28 +78397,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opt } return ret, nil // { - // "description": "Writes Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}:writeFeatureValues", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.writeFeatureValues", + // "description": "Gets a HyperparameterTuningJob", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.get", // "parameterOrder": [ - // "entityType" + // "name" // ], // "parameters": { - // "entityType": { - // "description": "Required. The resource name of the EntityType for the entities being written. Value format: `projects/{project}/locations/{location}/featurestores/ {featurestore}/entityTypes/{entityType}`. For example, for a machine learning model predicting user clicks on a website, an EntityType ID could be `user`.", + // "name": { + // "description": "Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+entityType}:writeFeatureValues", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1WriteFeatureValuesRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1WriteFeatureValuesResponse" + // "$ref": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -69939,73 +78424,119 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesWriteFeatureValuesCall) Do(opt } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.list": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsHyperparameterTuningJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BatchCreate: Creates a batch of Features in a given EntityType. +// List: Lists HyperparameterTuningJobs in a Location. // -// - parent: The resource name of the EntityType to create the batch of -// Features under. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) BatchCreate(parent string, googlecloudaiplatformv1beta1batchcreatefeaturesrequest *GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to list the +// HyperparameterTuningJobs from. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsHyperparameterTuningJobsService) List(parent string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c := &ProjectsLocationsHyperparameterTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest = googlecloudaiplatformv1beta1batchcreatefeaturesrequest + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListHyperparameterTuningJobsResponse.next_page_token of the previous +// JobService.ListHyperparameterTuningJobs call. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) ReadMask(readMask string) *ProjectsLocationsHyperparameterTuningJobsListCall { + c.urlParams_.Set("readMask", readMask) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsListCall { 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 *ProjectsLocationsHyperparameterTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcreatefeaturesrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features:batchCreate") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hyperparameterTuningJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -70016,14 +78547,17 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) doReq return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate" 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse.Serv +// erResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70042,7 +78576,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70054,28 +78588,47 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(op } return ret, nil // { - // "description": "Creates a batch of Features in a given EntityType.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features:batchCreate", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.batchCreate", + // "description": "Lists HyperparameterTuningJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListHyperparameterTuningJobsResponse.next_page_token of the previous JobService.ListHyperparameterTuningJobs call.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The resource name of the EntityType to create the batch of Features under. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/features:batchCreate", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchCreateFeaturesRequest" - // }, + // "path": "v1beta1/{+parent}/hyperparameterTuningJobs", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70084,46 +78637,59 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesBatchCreateCall) Do(op } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.create": - -type ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse) 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) + } } -// Create: Creates a new Feature in a given EntityType. -// -// - parent: The resource name of the EntityType or FeatureGroup to -// create a Feature. Format for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature - return c +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel": + +type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// FeatureId sets the optional parameter "featureId": Required. The ID -// to use for the Feature, which will become the final component of the -// Feature's resource name. This value may be up to 128 characters, and -// valid characters are `[a-z0-9_]`. The first character cannot be a -// number. The value must be unique within an EntityType/FeatureGroup. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { - c.urlParams_.Set("featureId", featureId) +// 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 *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall{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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70131,21 +78697,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) 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_ { @@ -70153,14 +78719,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) - 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/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -70168,19 +78729,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) doRequest( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70199,7 +78760,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70211,33 +78772,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. } return ret, nil // { - // "description": "Creates a new Feature in a given EntityType.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", + // "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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.create", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "featureId": { - // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the EntityType or FeatureGroup to create a Feature. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/features", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70246,9 +78799,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.delete": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70256,15 +78809,14 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { header_ http.Header } -// Delete: Deletes a single Feature. +// 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 Features to be deleted. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/features/{feature}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70272,7 +78824,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70280,21 +78832,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) 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_ { @@ -70317,14 +78869,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.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 +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70343,7 +78895,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70355,25 +78907,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. } return ret, nil // { - // "description": "Deletes a single Feature.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.delete", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70382,9 +78934,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.get": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -70393,16 +78945,13 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { header_ http.Header } -// Get: Gets details of a single Feature. +// 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 Feature resource. Format for entity_type as -// parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -70410,7 +78959,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70420,7 +78969,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -70428,21 +78977,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) 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_ { @@ -70468,15 +79017,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70495,7 +79043,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Feature{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70507,25 +79055,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go } return ret, nil // { - // "description": "Gets details of a single Feature.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", + // "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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.get", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Feature resource. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70534,103 +79082,53 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.list": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall struct { +type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Features in a given EntityType. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list Features. Format -// for entity_type as parent: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}` Format for feature_group as parent: -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}`. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) List(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Lists the Features that -// match the filter expression. The following filters are supported: * -// `value_type`: Supports = and != comparisons. * `create_time`: -// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC -// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= -// comparisons. Values must be in RFC 3339 format. * `labels`: Supports -// key-value equality as well as key presence. Examples: * `value_type = -// DOUBLE` --> Features whose type is DOUBLE. * `create_time > -// \"2020-01-31T15:30:00.000000Z\" OR update_time > -// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated -// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND -// labels.env = prod` --> Features having both (active: yes) and (env: -// prod) labels. * `labels.env: *` --> Any Feature which has a label -// with 'env' as the key. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// LatestStatsCount sets the optional parameter "latestStatsCount": Only -// applicable for Vertex AI Feature Store (Legacy). If set, return the -// most recent ListFeaturesRequest.latest_stats_count of stats for each -// Feature in response. Valid value is [0, 10]. If number of stats -// exists < ListFeaturesRequest.latest_stats_count, return all existing -// stats. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) - 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: * `feature_id` * -// `value_type` (Not supported for FeatureRegistry Feature) * -// `create_time` * `update_time` -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Features to return. The service may return fewer than this value. -// If unspecified, at most 1000 Features will be returned. The maximum -// value is 1000; any value greater than 1000 will be coerced to 1000. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous FeaturestoreService.ListFeatures call or -// FeatureRegistryService.ListFeatures call. Provide this to retrieve -// the subsequent page. When paginating, all other parameters provided -// to FeaturestoreService.ListFeatures or -// FeatureRegistryService.ListFeatures must match the call that provided -// the page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70640,7 +79138,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Fields(s ... // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -70648,21 +79146,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) IfNoneMatch( // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) 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_ { @@ -70675,7 +79173,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(al var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -70683,21 +79181,20 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) doRequest(al } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListFeaturesResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturesResponse, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70716,7 +79213,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListFeaturesResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70728,58 +79225,41 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g } return ret, nil // { - // "description": "Lists Features in a given EntityType.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features", + // "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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.list", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "latestStatsCount": { - // "description": "Only applicable for Vertex AI Feature Store (Legacy). If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call or FeatureRegistryService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures or FeatureRegistryService.ListFeatures must match the call that provided the page token.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list Features. Format for entity_type as parent: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` Format for feature_group as parent: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/features", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturesResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70791,7 +79271,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturesResponse) error) error { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) 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 { @@ -70809,53 +79289,47 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Pages(ctx co } } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.patch": +// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single Feature. +// 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: Immutable. Name of the Feature. Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}` -// `projects/{project}/locations/{location}/featureGroups/{feature_grou -// p}/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. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Patch(name string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { + c := &ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature return c } -// UpdateMask sets the optional parameter "updateMask": Field mask is -// used to specify the fields to be overwritten in the Features resource -// by the update. The fields specified in the update_mask are relative -// to the resource, not the full request. A field will be overwritten if -// it is in the mask. If the user does not provide a mask then only the -// non-empty fields present in the request will be overwritten. Set the -// update_mask to `*` to override all fields. Updatable fields: * -// `description` * `labels` * `disable_monitoring` (Not supported for -// FeatureRegistry Feature) -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -70863,21 +79337,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Header() http.Header { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) 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_ { @@ -70885,16 +79359,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) - 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -70905,15 +79374,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { +// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -70932,7 +79400,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Feature{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -70944,34 +79412,31 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ... } return ret, nil // { - // "description": "Updates the parameters of a single Feature.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.patch", + // "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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "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.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -70980,38 +79445,32 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) Do(opts ... } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel": +// method id "aiplatform.projects.locations.indexEndpoints.create": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. -// The server makes a best effort to cancel the operation, but success -// is not guaranteed. If the server doesn't support this method, it -// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use -// Operations.GetOperation or other methods to check whether the -// cancellation succeeded or whether the operation completed despite -// cancellation. On successful cancellation, the operation is not -// deleted; instead, it becomes an operation with an Operation.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// Create: Creates an IndexEndpoint. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the +// IndexEndpoint in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexEndpointsService) Create(parent string, googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint) *ProjectsLocationsIndexEndpointsCreateCall { + c := &ProjectsLocationsIndexEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1indexendpoint = googlecloudaiplatformv1beta1indexendpoint 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71019,21 +79478,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsCreateCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsCreateCall) 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_ { @@ -71041,9 +79500,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1indexendpoint) + 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/{+parent}/indexEndpoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -71051,19 +79515,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } 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.featurestores.entityTypes.features.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.indexEndpoints.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71082,7 +79546,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) 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, @@ -71094,25 +79558,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:cancel", + // "description": "Creates an IndexEndpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.cancel", + // "id": "aiplatform.projects.locations.indexEndpoints.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 IndexEndpoint in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/indexEndpoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71121,9 +79588,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsCancelCall) } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete": +// method id "aiplatform.projects.locations.indexEndpoints.delete": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall struct { +type ProjectsLocationsIndexEndpointsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -71131,14 +79598,13 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall struc header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes an IndexEndpoint. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the IndexEndpoint resource to be deleted. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLocationsIndexEndpointsDeleteCall { + c := &ProjectsLocationsIndexEndpointsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -71146,7 +79612,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Del // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71154,21 +79620,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) // 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeleteCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) 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_ { @@ -71191,14 +79657,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71217,7 +79683,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71229,25 +79695,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", + // "description": "Deletes an IndexEndpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.delete", + // "id": "aiplatform.projects.locations.indexEndpoints.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the IndexEndpoint resource to be deleted. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71256,97 +79722,92 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsDeleteCall) } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get": +// method id "aiplatform.projects.locations.indexEndpoints.deployIndex": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsDeployIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1beta1deployindexrequest *GoogleCloudAiplatformV1beta1DeployIndexRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// DeployIndex: Deploys an Index into this IndexEndpoint, creating a +// DeployedIndex within it. Only non-empty Indexes can be deployed. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - indexEndpoint: The name of the IndexEndpoint resource into which to +// deploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) DeployIndex(indexEndpoint string, googlecloudaiplatformv1beta1deployindexrequest *GoogleCloudAiplatformV1beta1DeployIndexRequest) *ProjectsLocationsIndexEndpointsDeployIndexCall { + c := &ProjectsLocationsIndexEndpointsDeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1beta1deployindexrequest = googlecloudaiplatformv1beta1deployindexrequest 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { - c.ifNoneMatch_ = entityTag +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeployIndexCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeployIndexCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) 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.googlecloudaiplatformv1beta1deployindexrequest) + 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/{+indexEndpoint}:deployIndex") 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71377,23 +79838,26 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.get", + // "description": "Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:deployIndex", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.deployIndex", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "indexEndpoint": { + // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+indexEndpoint}:deployIndex", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DeployIndexRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -71404,119 +79868,93 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsGetCall) Do( } -// method id "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list": +// method id "aiplatform.projects.locations.indexEndpoints.findNeighbors": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsFindNeighborsCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1beta1findneighborsrequest *GoogleCloudAiplatformV1beta1FindNeighborsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// FindNeighbors: Finds the nearest neighbors of each vector within the +// request. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - indexEndpoint: The name of the index endpoint. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) FindNeighbors(indexEndpoint string, googlecloudaiplatformv1beta1findneighborsrequest *GoogleCloudAiplatformV1beta1FindNeighborsRequest) *ProjectsLocationsIndexEndpointsFindNeighborsCall { + c := &ProjectsLocationsIndexEndpointsFindNeighborsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1beta1findneighborsrequest = googlecloudaiplatformv1beta1findneighborsrequest 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsFindNeighborsCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsFindNeighborsCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) 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.googlecloudaiplatformv1beta1findneighborsrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+indexEndpoint}:findNeighbors") 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FindNeighborsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FindNeighborsResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FindNeighborsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71535,7 +79973,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1FindNeighborsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71547,41 +79985,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.list", + // "description": "Finds the nearest neighbors of each vector within the request.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:findNeighbors", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.findNeighbors", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "indexEndpoint": { + // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "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", + // "path": "v1beta1/{+indexEndpoint}:findNeighbors", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FindNeighborsRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1FindNeighborsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71590,102 +80015,79 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Do } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // 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.featurestores.entityTypes.features.operations.wait": +// method id "aiplatform.projects.locations.indexEndpoints.get": -type ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets an IndexEndpoint. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the IndexEndpoint resource. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocationsIndexEndpointsGetCall { + c := &ProjectsLocationsIndexEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsGetCall { 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 *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsGetCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsGetCall { 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 *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -71696,14 +80098,16 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) do return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1IndexEndpoint or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1IndexEndpoint.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1IndexEndpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71722,7 +80126,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1IndexEndpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71734,31 +80138,25 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/features/{featuresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.features.operations.wait", + // "description": "Gets an IndexEndpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexEndpoints.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The name of the IndexEndpoint resource. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "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" + // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71767,90 +80165,140 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesOperationsWaitCall) Do } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel": +// method id "aiplatform.projects.locations.indexEndpoints.list": -type ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: 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`. +// List: Lists IndexEndpoints in a Location. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location from which to list the +// IndexEndpoints. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexEndpointsService) List(parent string) *ProjectsLocationsIndexEndpointsListCall { + c := &ProjectsLocationsIndexEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `index_endpoint` supports = and !=. +// `index_endpoint` represents the IndexEndpoint ID, ie. the last +// segment of the IndexEndpoint's resourcename. * `display_name` +// supports =, != and regex() (uses re2 +// (https://github.com/google/re2/wiki/Syntax) syntax) * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* or labels:key - key existence A key +// including a space must be quoted. `labels."a key". Some examples: * +// `index_endpoint="1" * `display_name="myDisplayName" * +// `regex(display_name, "^A") -> The display name starts with an A. * +// `labels.myKey="myValue" +func (c *ProjectsLocationsIndexEndpointsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsIndexEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListIndexEndpointsResponse.next_page_token of the previous +// IndexEndpointService.ListIndexEndpoints call. +func (c *ProjectsLocationsIndexEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsIndexEndpointsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsListCall { 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 *ProjectsLocationsIndexEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsListCall { + 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsListCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsListCall) 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}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/indexEndpoints") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -71869,7 +80317,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -71881,25 +80329,47 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.cancel", + // "description": "Lists IndexEndpoints in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexEndpoints.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* or labels:key - key existence A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `index_endpoint=\"1\"` * `display_name=\"myDisplayName\"` * `regex(display_name, \"^A\") -\u003e The display name starts with an A. * `labels.myKey=\"myValue\"`", + // "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. Typically obtained via ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the IndexEndpoints. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/indexEndpoints", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -71908,32 +80378,56 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsCancelCall) Do(opts } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.delete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse) 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.indexEndpoints.mutateDeployedIndex": -type ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsMutateDeployedIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1beta1deployedindex *GoogleCloudAiplatformV1beta1DeployedIndex + 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`. +// MutateDeployedIndex: Update an existing DeployedIndex under an +// IndexEndpoint. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - indexEndpoint: The name of the IndexEndpoint resource into which to +// deploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) MutateDeployedIndex(indexEndpoint string, googlecloudaiplatformv1beta1deployedindex *GoogleCloudAiplatformV1beta1DeployedIndex) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { + c := &ProjectsLocationsIndexEndpointsMutateDeployedIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1beta1deployedindex = googlecloudaiplatformv1beta1deployedindex 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -71941,21 +80435,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) 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_ { @@ -71963,29 +80457,34 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) doReques } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1deployedindex) + 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/{+indexEndpoint}:mutateDeployedIndex") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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.indexEndpoints.mutateDeployedIndex" 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72004,7 +80503,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts 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, @@ -72016,25 +80515,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.delete", + // "description": "Update an existing DeployedIndex under an IndexEndpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:mutateDeployedIndex", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "indexEndpoint": { + // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+indexEndpoint}:mutateDeployedIndex", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1DeployedIndex" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -72043,79 +80545,77 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsDeleteCall) Do(opts } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.get": +// method id "aiplatform.projects.locations.indexEndpoints.patch": -type ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint + 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. +// Patch: Updates an IndexEndpoint. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the IndexEndpoint. +func (r *ProjectsLocationsIndexEndpointsService) Patch(name string, googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint) *ProjectsLocationsIndexEndpointsPatchCall { + c := &ProjectsLocationsIndexEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1indexendpoint = googlecloudaiplatformv1beta1indexendpoint + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. See google.protobuf.FieldMask. +func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexEndpointsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsPatchCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsPatchCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsPatchCall) 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.googlecloudaiplatformv1beta1indexendpoint) + 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -72126,14 +80626,16 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1IndexEndpoint or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1IndexEndpoint.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1IndexEndpoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72152,7 +80654,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1IndexEndpoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -72164,25 +80666,34 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.get", + // "description": "Updates an IndexEndpoint.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.indexEndpoints.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Output only. The resource name of the IndexEndpoint.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -72191,119 +80702,94 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsGetCall) Do(opts ... } -// method id "aiplatform.projects.locations.featurestores.entityTypes.operations.list": +// method id "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints": -type ProjectsLocationsFeaturestoresEntityTypesOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsReadIndexDatapointsCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1beta1readindexdatapointsrequest *GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// ReadIndexDatapoints: Reads the datapoints/vectors of the given IDs. A +// maximum of 1000 datapoints can be retrieved in a batch. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) List(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - indexEndpoint: The name of the index endpoint. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) ReadIndexDatapoints(indexEndpoint string, googlecloudaiplatformv1beta1readindexdatapointsrequest *GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { + c := &ProjectsLocationsIndexEndpointsReadIndexDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1beta1readindexdatapointsrequest = googlecloudaiplatformv1beta1readindexdatapointsrequest 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { - 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) 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.googlecloudaiplatformv1beta1readindexdatapointsrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+indexEndpoint}:readIndexDatapoints") 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, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.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 *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse.ServerRespons +// e.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72322,7 +80808,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -72334,41 +80820,28 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.list", + // "description": "Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:readIndexDatapoints", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "indexEndpoint": { + // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "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", + // "path": "v1beta1/{+indexEndpoint}:readIndexDatapoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -72377,68 +80850,35 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Do(opts .. } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // 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.featurestores.entityTypes.operations.wait": +// method id "aiplatform.projects.locations.indexEndpoints.undeployIndex": -type ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexEndpointsUndeployIndexCall struct { + s *Service + indexEndpoint string + googlecloudaiplatformv1beta1undeployindexrequest *GoogleCloudAiplatformV1beta1UndeployIndexRequest + 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. +// UndeployIndex: Undeploys an Index from an IndexEndpoint, removing a +// DeployedIndex from it, and freeing all resources it's using. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresEntityTypesOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - indexEndpoint: The name of the IndexEndpoint resource from which to +// undeploy an Index. Format: +// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo +// int}`. +func (r *ProjectsLocationsIndexEndpointsService) UndeployIndex(indexEndpoint string, googlecloudaiplatformv1beta1undeployindexrequest *GoogleCloudAiplatformV1beta1UndeployIndexRequest) *ProjectsLocationsIndexEndpointsUndeployIndexCall { + c := &ProjectsLocationsIndexEndpointsUndeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.indexEndpoint = indexEndpoint + c.googlecloudaiplatformv1beta1undeployindexrequest = googlecloudaiplatformv1beta1undeployindexrequest 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsUndeployIndexCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72446,21 +80886,21 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsUndeployIndexCall { 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) 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_ { @@ -72468,9 +80908,14 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1undeployindexrequest) + 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/{+indexEndpoint}:undeployIndex") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -72478,19 +80923,19 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) doRequest( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "indexEndpoint": c.indexEndpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.entityTypes.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" 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 *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72521,29 +80966,26 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts .. } 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}/featurestores/{featurestoresId}/entityTypes/{entityTypesId}/operations/{operationsId}:wait", + // "description": "Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:undeployIndex", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.entityTypes.operations.wait", + // "id": "aiplatform.projects.locations.indexEndpoints.undeployIndex", // "parameterOrder": [ - // "name" + // "indexEndpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "indexEndpoint": { + // "description": "Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "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/{+indexEndpoint}:undeployIndex", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1UndeployIndexRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -72554,9 +80996,9 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesOperationsWaitCall) Do(opts .. } -// method id "aiplatform.projects.locations.featurestores.operations.cancel": +// method id "aiplatform.projects.locations.indexEndpoints.operations.cancel": -type ProjectsLocationsFeaturestoresOperationsCancelCall struct { +type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72576,8 +81018,8 @@ type ProjectsLocationsFeaturestoresOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsFeaturestoresOperationsService) Cancel(name string) *ProjectsLocationsFeaturestoresOperationsCancelCall { - c := &ProjectsLocationsFeaturestoresOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) *ProjectsLocationsIndexEndpointsOperationsCancelCall { + c := &ProjectsLocationsIndexEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72585,7 +81027,7 @@ func (r *ProjectsLocationsFeaturestoresOperationsService) 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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72593,21 +81035,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) 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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsCancelCall { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsCancelCall { 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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) 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_ { @@ -72630,14 +81072,14 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72669,9 +81111,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) 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}/featurestores/{featurestoresId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.operations.cancel", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -72679,7 +81121,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -72695,9 +81137,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsCancelCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featurestores.operations.delete": +// method id "aiplatform.projects.locations.indexEndpoints.operations.delete": -type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { +type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72711,8 +81153,8 @@ type ProjectsLocationsFeaturestoresOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *ProjectsLocationsFeaturestoresOperationsDeleteCall { - c := &ProjectsLocationsFeaturestoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { + c := &ProjectsLocationsIndexEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72720,7 +81162,7 @@ func (r *ProjectsLocationsFeaturestoresOperationsService) Delete(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72728,21 +81170,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) 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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsDeleteCall { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { 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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) 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_ { @@ -72765,14 +81207,14 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.delete" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72804,9 +81246,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) 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}/featurestores/{featurestoresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featurestores.operations.delete", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.delete", // "parameterOrder": [ // "name" // ], @@ -72814,7 +81256,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleap // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -72830,9 +81272,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featurestores.operations.get": +// method id "aiplatform.projects.locations.indexEndpoints.operations.get": -type ProjectsLocationsFeaturestoresOperationsGetCall struct { +type ProjectsLocationsIndexEndpointsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72845,9 +81287,9 @@ type ProjectsLocationsFeaturestoresOperationsGetCall struct { // use this method to poll the operation result at intervals as // recommended by the API service. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeaturestoresOperationsService) Get(name string) *ProjectsLocationsFeaturestoresOperationsGetCall { - c := &ProjectsLocationsFeaturestoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *ProjectsLocationsIndexEndpointsOperationsGetCall { + c := &ProjectsLocationsIndexEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -72855,7 +81297,7 @@ func (r *ProjectsLocationsFeaturestoresOperationsService) 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 *ProjectsLocationsFeaturestoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -72865,7 +81307,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) 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 *ProjectsLocationsFeaturestoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -72873,21 +81315,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) 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 *ProjectsLocationsFeaturestoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsGetCall { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsGetCall { 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 *ProjectsLocationsFeaturestoresOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) 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_ { @@ -72913,14 +81355,14 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -72952,9 +81394,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) 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}/featurestores/{featurestoresId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.operations.get", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.get", // "parameterOrder": [ // "name" // ], @@ -72962,7 +81404,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.C // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -72978,9 +81420,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.featurestores.operations.list": +// method id "aiplatform.projects.locations.indexEndpoints.operations.list": -type ProjectsLocationsFeaturestoresOperationsListCall struct { +type ProjectsLocationsIndexEndpointsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -72994,29 +81436,29 @@ type ProjectsLocationsFeaturestoresOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeaturestoresOperationsService) List(name string) *ProjectsLocationsFeaturestoresOperationsListCall { - c := &ProjectsLocationsFeaturestoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) List(name string) *ProjectsLocationsIndexEndpointsOperationsListCall { + c := &ProjectsLocationsIndexEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) Filter(filter string) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsFeaturestoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -73024,7 +81466,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 *ProjectsLocationsFeaturestoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73034,7 +81476,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 *ProjectsLocationsFeaturestoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -73042,21 +81484,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 *ProjectsLocationsFeaturestoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsListCall { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsListCall { 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 *ProjectsLocationsFeaturestoresOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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_ { @@ -73082,7 +81524,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.list" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.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 @@ -73090,7 +81532,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73122,9 +81564,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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}/featurestores/{featurestoresId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featurestores.operations.list", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.list", // "parameterOrder": [ // "name" // ], @@ -73137,7 +81579,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", // "required": true, // "type": "string" // }, @@ -73167,7 +81609,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) 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 *ProjectsLocationsFeaturestoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -73185,9 +81627,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.featurestores.operations.wait": +// method id "aiplatform.projects.locations.indexEndpoints.operations.wait": -type ProjectsLocationsFeaturestoresOperationsWaitCall struct { +type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -73207,8 +81649,8 @@ type ProjectsLocationsFeaturestoresOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeaturestoresOperationsService) Wait(name string) *ProjectsLocationsFeaturestoresOperationsWaitCall { - c := &ProjectsLocationsFeaturestoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { + c := &ProjectsLocationsIndexEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -73217,7 +81659,7 @@ func (r *ProjectsLocationsFeaturestoresOperationsService) 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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -73225,7 +81667,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) 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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73233,21 +81675,21 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) 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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeaturestoresOperationsWaitCall { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsWaitCall { 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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) 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_ { @@ -73270,14 +81712,14 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featurestores.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73309,9 +81751,9 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) 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}/featurestores/{featurestoresId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featurestores.operations.wait", + // "id": "aiplatform.projects.locations.indexEndpoints.operations.wait", // "parameterOrder": [ // "name" // ], @@ -73319,7 +81761,7 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi. // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -73341,42 +81783,32 @@ func (c *ProjectsLocationsFeaturestoresOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.cancel": +// method id "aiplatform.projects.locations.indexes.create": -type ProjectsLocationsHyperparameterTuningJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a HyperparameterTuningJob. Starts asynchronous -// cancellation on the HyperparameterTuningJob. The server makes a best -// effort to cancel the job, but success is not guaranteed. Clients can -// use JobService.GetHyperparameterTuningJob or other methods to check -// whether the cancellation succeeded or whether the job completed -// despite cancellation. On successful cancellation, the -// HyperparameterTuningJob is not deleted; instead it becomes a job with -// a HyperparameterTuningJob.error value with a google.rpc.Status.code -// of 1, corresponding to `Code.CANCELLED`, and -// HyperparameterTuningJob.state is set to `CANCELLED`. +// Create: Creates an Index. // -// - name: The name of the HyperparameterTuningJob to cancel. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h -// yperparameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest *GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest) *ProjectsLocationsHyperparameterTuningJobsCancelCall { - c := &ProjectsLocationsHyperparameterTuningJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest = googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest +// - parent: The resource name of the Location to create the Index in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexesService) Create(parent string, googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index) *ProjectsLocationsIndexesCreateCall { + c := &ProjectsLocationsIndexesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1index = googlecloudaiplatformv1beta1index 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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCancelCall { +func (c *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73384,21 +81816,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Fields(s ...google // 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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCancelCall { +func (c *ProjectsLocationsIndexesCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexesCreateCall { 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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesCreateCall) 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_ { @@ -73406,14 +81838,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelhyperparametertuningjobrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1index) 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/{+parent}/indexes") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -73421,19 +81853,19 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) doRequest(alt stri } 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.hyperparameterTuningJobs.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.indexes.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 *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73452,7 +81884,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea 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, @@ -73464,28 +81896,310 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea } return ret, nil // { - // "description": "Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetHyperparameterTuningJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a HyperparameterTuningJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and HyperparameterTuningJob.state is set to `CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}:cancel", + // "description": "Creates an Index.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.cancel", + // "id": "aiplatform.projects.locations.indexes.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/indexes", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Index" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.indexes.delete": + +type ProjectsLocationsIndexesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an Index. An Index can only be deleted when all its +// DeployedIndexes had been undeployed. +// +// - name: The name of the Index resource to be deleted. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocationsIndexesDeleteCall { + c := &ProjectsLocationsIndexesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsIndexesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesDeleteCall { + 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 *ProjectsLocationsIndexesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIndexesDeleteCall) 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.indexes.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 *ProjectsLocationsIndexesDeleteCall) 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": "Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.indexes.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the HyperparameterTuningJob to cancel. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", + // "description": "Required. The name of the Index resource to be deleted. Format: `projects/{project}/locations/{location}/indexes/{index}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CancelHyperparameterTuningJobRequest" + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.indexes.get": + +type ProjectsLocationsIndexesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an Index. +// +// - name: The name of the Index resource. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsIndexesGetCall { + c := &ProjectsLocationsIndexesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesGetCall { + 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 *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesGetCall { + 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 *ProjectsLocationsIndexesGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesGetCall { + 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 *ProjectsLocationsIndexesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsIndexesGetCall) 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.indexes.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Index or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Index.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Index, 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 := &GoogleCloudAiplatformV1beta1Index{ + 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 an Index.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexes.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Index resource. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "required": true, + // "type": "string" + // } // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1Index" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73494,72 +82208,108 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCancelCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.create": +// method id "aiplatform.projects.locations.indexes.list": -type ProjectsLocationsHyperparameterTuningJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1hyperparametertuningjob *GoogleCloudAiplatformV1beta1HyperparameterTuningJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a HyperparameterTuningJob +// List: Lists Indexes in a Location. // -// - parent: The resource name of the Location to create the -// HyperparameterTuningJob in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Create(parent string, googlecloudaiplatformv1beta1hyperparametertuningjob *GoogleCloudAiplatformV1beta1HyperparameterTuningJob) *ProjectsLocationsHyperparameterTuningJobsCreateCall { - c := &ProjectsLocationsHyperparameterTuningJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location from which to list the +// Indexes. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsIndexesService) List(parent string) *ProjectsLocationsIndexesListCall { + c := &ProjectsLocationsIndexesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1hyperparametertuningjob = googlecloudaiplatformv1beta1hyperparametertuningjob + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsIndexesListCall) Filter(filter string) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsIndexesListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListIndexesResponse.next_page_token of the previous +// IndexService.ListIndexes call. +func (c *ProjectsLocationsIndexesListCall) PageToken(pageToken string) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsIndexesListCall) ReadMask(readMask string) *ProjectsLocationsIndexesListCall { + c.urlParams_.Set("readMask", readMask) 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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsCreateCall { +func (c *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesListCall { 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 *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesListCall { + 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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsCreateCall { +func (c *ProjectsLocationsIndexesListCall) Context(ctx context.Context) *ProjectsLocationsIndexesListCall { 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 *ProjectsLocationsHyperparameterTuningJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsIndexesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1hyperparametertuningjob) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/hyperparameterTuningJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/indexes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -73570,16 +82320,18 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1HyperparameterTuningJob -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1HyperparameterTuningJob.ServerResponse.He -// ader or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.indexes.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListIndexesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListIndexesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1HyperparameterTuningJob, error) { +func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListIndexesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73598,7 +82350,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1HyperparameterTuningJob{ + ret := &GoogleCloudAiplatformV1beta1ListIndexesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73610,28 +82362,47 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates a HyperparameterTuningJob", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.create", + // "description": "Lists Indexes in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.indexes.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The resource name of the Location to create the HyperparameterTuningJob in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/hyperparameterTuningJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob" - // }, + // "path": "v1beta1/{+parent}/indexes", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob" + // "$ref": "GoogleCloudAiplatformV1beta1ListIndexesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73640,32 +82411,60 @@ func (c *ProjectsLocationsHyperparameterTuningJobsCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.delete": +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListIndexesResponse) 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) + } +} -type ProjectsLocationsHyperparameterTuningJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.indexes.patch": + +type ProjectsLocationsIndexesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a HyperparameterTuningJob. +// Patch: Updates an Index. // -// - name: The name of the HyperparameterTuningJob resource to be -// deleted. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h -// yperparameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { - c := &ProjectsLocationsHyperparameterTuningJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. The resource name of the Index. +func (r *ProjectsLocationsIndexesService) Patch(name string, googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index) *ProjectsLocationsIndexesPatchCall { + c := &ProjectsLocationsIndexesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1index = googlecloudaiplatformv1beta1index + return c +} + +// UpdateMask sets the optional parameter "updateMask": The update mask +// applies to the resource. For the `FieldMask` definition, see +// google.protobuf.FieldMask. +func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexesPatchCall { + c.urlParams_.Set("updateMask", updateMask) 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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { +func (c *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -73673,21 +82472,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Fields(s ...google // 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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsDeleteCall { +func (c *ProjectsLocationsIndexesPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexesPatchCall { 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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesPatchCall) 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_ { @@ -73695,11 +82494,16 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1index) + 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -73710,14 +82514,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.delete" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73748,23 +82552,32 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes a HyperparameterTuningJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.delete", + // "description": "Updates an Index.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.indexes.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the HyperparameterTuningJob resource to be deleted. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", + // "description": "Output only. The resource name of the Index.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Index" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -73775,99 +82588,91 @@ func (c *ProjectsLocationsHyperparameterTuningJobsDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.get": +// method id "aiplatform.projects.locations.indexes.removeDatapoints": -type ProjectsLocationsHyperparameterTuningJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesRemoveDatapointsCall struct { + s *Service + index string + googlecloudaiplatformv1beta1removedatapointsrequest *GoogleCloudAiplatformV1beta1RemoveDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a HyperparameterTuningJob +// RemoveDatapoints: Remove Datapoints from an Index. // -// - name: The name of the HyperparameterTuningJob resource. Format: -// `projects/{project}/locations/{location}/hyperparameterTuningJobs/{h -// yperparameter_tuning_job}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsGetCall { - c := &ProjectsLocationsHyperparameterTuningJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - index: The name of the Index resource to be updated. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) RemoveDatapoints(index string, googlecloudaiplatformv1beta1removedatapointsrequest *GoogleCloudAiplatformV1beta1RemoveDatapointsRequest) *ProjectsLocationsIndexesRemoveDatapointsCall { + c := &ProjectsLocationsIndexesRemoveDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.index = index + c.googlecloudaiplatformv1beta1removedatapointsrequest = googlecloudaiplatformv1beta1removedatapointsrequest 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsGetCall { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesRemoveDatapointsCall { 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsGetCall { - 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsGetCall { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesRemoveDatapointsCall { 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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) 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.googlecloudaiplatformv1beta1removedatapointsrequest) + 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/{+index}:removeDatapoints") 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, + "index": c.index, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1HyperparameterTuningJob +// Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. +// Exactly one of *GoogleCloudAiplatformV1beta1RemoveDatapointsResponse // or error will be non-nil. Any non-2xx status code is an error. // Response headers are in either -// *GoogleCloudAiplatformV1beta1HyperparameterTuningJob.ServerResponse.He -// ader or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1RemoveDatapointsResponse.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 *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1HyperparameterTuningJob, error) { +func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RemoveDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -73886,7 +82691,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1HyperparameterTuningJob{ + ret := &GoogleCloudAiplatformV1beta1RemoveDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -73898,25 +82703,28 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets a HyperparameterTuningJob", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.get", + // "description": "Remove Datapoints from an Index.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:removeDatapoints", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexes.removeDatapoints", // "parameterOrder": [ - // "name" + // "index" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the HyperparameterTuningJob resource. Format: `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}`", + // "index": { + // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+index}:removeDatapoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1RemoveDatapointsRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob" + // "$ref": "GoogleCloudAiplatformV1beta1RemoveDatapointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -73925,140 +82733,91 @@ func (c *ProjectsLocationsHyperparameterTuningJobsGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.list": +// method id "aiplatform.projects.locations.indexes.upsertDatapoints": -type ProjectsLocationsHyperparameterTuningJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsIndexesUpsertDatapointsCall struct { + s *Service + index string + googlecloudaiplatformv1beta1upsertdatapointsrequest *GoogleCloudAiplatformV1beta1UpsertDatapointsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists HyperparameterTuningJobs in a Location. +// UpsertDatapoints: Add/update Datapoints into an Index. // -// - parent: The resource name of the Location to list the -// HyperparameterTuningJobs from. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsHyperparameterTuningJobsService) List(parent string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c := &ProjectsLocationsHyperparameterTuningJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListHyperparameterTuningJobsResponse.next_page_token of the previous -// JobService.ListHyperparameterTuningJobs call. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) ReadMask(readMask string) *ProjectsLocationsHyperparameterTuningJobsListCall { - c.urlParams_.Set("readMask", readMask) +// - index: The name of the Index resource to be updated. Format: +// `projects/{project}/locations/{location}/indexes/{index}`. +func (r *ProjectsLocationsIndexesService) UpsertDatapoints(index string, googlecloudaiplatformv1beta1upsertdatapointsrequest *GoogleCloudAiplatformV1beta1UpsertDatapointsRequest) *ProjectsLocationsIndexesUpsertDatapointsCall { + c := &ProjectsLocationsIndexesUpsertDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.index = index + c.googlecloudaiplatformv1beta1upsertdatapointsrequest = googlecloudaiplatformv1beta1upsertdatapointsrequest 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsListCall { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesUpsertDatapointsCall { 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 *ProjectsLocationsHyperparameterTuningJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsListCall { - 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsListCall { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesUpsertDatapointsCall { 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) 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.googlecloudaiplatformv1beta1upsertdatapointsrequest) + 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/{+parent}/hyperparameterTuningJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+index}:upsertDatapoints") 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{ - "parent": c.parent, + "index": c.index, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. +// Exactly one of *GoogleCloudAiplatformV1beta1UpsertDatapointsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1UpsertDatapointsResponse.ServerResponse.H +// eader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse, error) { +func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1UpsertDatapointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74077,7 +82836,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse{ + ret := &GoogleCloudAiplatformV1beta1UpsertDatapointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -74089,47 +82848,28 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists HyperparameterTuningJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.list", + // "description": "Add/update Datapoints into an Index.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:upsertDatapoints", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.indexes.upsertDatapoints", // "parameterOrder": [ - // "parent" + // "index" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListHyperparameterTuningJobsResponse.next_page_token of the previous JobService.ListHyperparameterTuningJobs call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list the HyperparameterTuningJobs from. Format: `projects/{project}/locations/{location}`", + // "index": { + // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/hyperparameterTuningJobs", + // "path": "v1beta1/{+index}:upsertDatapoints", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1UpsertDatapointsRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1UpsertDatapointsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -74138,30 +82878,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsListCall) 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 *ProjectsLocationsHyperparameterTuningJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListHyperparameterTuningJobsResponse) 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.hyperparameterTuningJobs.operations.cancel": +// method id "aiplatform.projects.locations.indexes.operations.cancel": -type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { +type ProjectsLocationsIndexesOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74181,8 +82900,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *ProjectsLocationsIndexesOperationsCancelCall { + c := &ProjectsLocationsIndexesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74190,7 +82909,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Cancel(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74198,21 +82917,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) 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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsCancelCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsCancelCall) 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_ { @@ -74235,14 +82954,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74274,9 +82993,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.cancel", + // "id": "aiplatform.projects.locations.indexes.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -74284,7 +83003,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -74300,9 +83019,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsCancelCall) Do(opts } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete": +// method id "aiplatform.projects.locations.indexes.operations.delete": -type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { +type ProjectsLocationsIndexesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74316,8 +83035,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *ProjectsLocationsIndexesOperationsDeleteCall { + c := &ProjectsLocationsIndexesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74325,7 +83044,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Delete(name // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74333,21 +83052,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) 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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsDeleteCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) 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_ { @@ -74370,14 +83089,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) doReques return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74409,9 +83128,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts return ret, nil // { // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.delete", + // "id": "aiplatform.projects.locations.indexes.operations.delete", // "parameterOrder": [ // "name" // ], @@ -74419,7 +83138,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -74435,9 +83154,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsDeleteCall) Do(opts } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get": +// method id "aiplatform.projects.locations.indexes.operations.get": -type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { +type ProjectsLocationsIndexesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74451,8 +83170,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLocationsIndexesOperationsGetCall { + c := &ProjectsLocationsIndexesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74460,7 +83179,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Get(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74470,7 +83189,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Fields(s .. // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -74478,21 +83197,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) IfNoneMatch // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall { +func (c *ProjectsLocationsIndexesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsGetCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsGetCall) 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_ { @@ -74518,14 +83237,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74557,9 +83276,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.get", + // "id": "aiplatform.projects.locations.indexes.operations.get", // "parameterOrder": [ // "name" // ], @@ -74567,7 +83286,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -74583,9 +83302,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsGetCall) Do(opts ... } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list": +// method id "aiplatform.projects.locations.indexes.operations.list": -type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { +type ProjectsLocationsIndexesOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74599,29 +83318,29 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) List(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) List(name string) *ProjectsLocationsIndexesOperationsListCall { + c := &ProjectsLocationsIndexesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Filter(filter string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Filter(filter string) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -74629,7 +83348,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) PageToken( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74639,7 +83358,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Fields(s . // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -74647,21 +83366,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) IfNoneMatc // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsListCall { +func (c *ProjectsLocationsIndexesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsListCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsListCall) 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_ { @@ -74687,7 +83406,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list" call. +// Do executes the "aiplatform.projects.locations.indexes.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 @@ -74695,7 +83414,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) doRequest( // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74727,9 +83446,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.list", + // "id": "aiplatform.projects.locations.indexes.operations.list", // "parameterOrder": [ // "name" // ], @@ -74742,7 +83461,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", // "required": true, // "type": "string" // }, @@ -74772,7 +83491,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Do(opts .. // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsIndexesOperationsListCall) 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 { @@ -74790,9 +83509,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsListCall) Pages(ctx } } -// method id "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait": +// method id "aiplatform.projects.locations.indexes.operations.wait": -type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { +type ProjectsLocationsIndexesOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -74812,8 +83531,8 @@ type ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall struct { // is done. // // - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { - c := &ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsLocationsIndexesOperationsWaitCall { + c := &ProjectsLocationsIndexesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -74822,7 +83541,7 @@ func (r *ProjectsLocationsHyperparameterTuningJobsOperationsService) Wait(name s // 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexesOperationsWaitCall { c.urlParams_.Set("timeout", timeout) return c } @@ -74830,7 +83549,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Timeout(ti // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74838,21 +83557,21 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsWaitCall { 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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsIndexesOperationsWaitCall) 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_ { @@ -74875,14 +83594,14 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait" call. +// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -74914,9 +83633,9 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. 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}/hyperparameterTuningJobs/{hyperparameterTuningJobsId}/operations/{operationsId}:wait", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.hyperparameterTuningJobs.operations.wait", + // "id": "aiplatform.projects.locations.indexes.operations.wait", // "parameterOrder": [ // "name" // ], @@ -74924,7 +83643,7 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. // "name": { // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/hyperparameterTuningJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, @@ -74946,32 +83665,48 @@ func (c *ProjectsLocationsHyperparameterTuningJobsOperationsWaitCall) Do(opts .. } -// method id "aiplatform.projects.locations.indexEndpoints.create": +// method id "aiplatform.projects.locations.metadataStores.create": -type ProjectsLocationsIndexEndpointsCreateCall struct { +type ProjectsLocationsMetadataStoresCreateCall struct { s *Service parent string - googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint + googlecloudaiplatformv1beta1metadatastore *GoogleCloudAiplatformV1beta1MetadataStore urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates an IndexEndpoint. +// Create: Initializes a MetadataStore, including allocation of +// resources. // -// - parent: The resource name of the Location to create the -// IndexEndpoint in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexEndpointsService) Create(parent string, googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint) *ProjectsLocationsIndexEndpointsCreateCall { - c := &ProjectsLocationsIndexEndpointsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location where the MetadataStore +// should be created. Format: +// `projects/{project}/locations/{location}/`. +func (r *ProjectsLocationsMetadataStoresService) Create(parent string, googlecloudaiplatformv1beta1metadatastore *GoogleCloudAiplatformV1beta1MetadataStore) *ProjectsLocationsMetadataStoresCreateCall { + c := &ProjectsLocationsMetadataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1indexendpoint = googlecloudaiplatformv1beta1indexendpoint + c.googlecloudaiplatformv1beta1metadatastore = googlecloudaiplatformv1beta1metadatastore + return c +} + +// MetadataStoreId sets the optional parameter "metadataStoreId": The +// {metadatastore} portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }` If not provided, the MetadataStore's ID will be a UUID generated +// by the service. Must be 4-128 characters in length. Valid characters +// are `/a-z-/`. Must be unique across all MetadataStores in the parent +// Location. (Otherwise the request will fail with ALREADY_EXISTS, or +// PERMISSION_DENIED if the caller can't view the preexisting +// MetadataStore.) +func (c *ProjectsLocationsMetadataStoresCreateCall) MetadataStoreId(metadataStoreId string) *ProjectsLocationsMetadataStoresCreateCall { + c.urlParams_.Set("metadataStoreId", metadataStoreId) 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 *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsCreateCall { +func (c *ProjectsLocationsMetadataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -74979,21 +83714,21 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsIndexEndpointsCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsCreateCall { +func (c *ProjectsLocationsMetadataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresCreateCall { 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 *ProjectsLocationsIndexEndpointsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresCreateCall) 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_ { @@ -75001,171 +83736,34 @@ func (c *ProjectsLocationsIndexEndpointsCreateCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1indexendpoint) - 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/{+parent}/indexEndpoints") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsIndexEndpointsCreateCall) 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, - }) - } + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1metadatastore) 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": "Creates an IndexEndpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.create", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the IndexEndpoint in. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/indexEndpoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.indexEndpoints.delete": - -type ProjectsLocationsIndexEndpointsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes an IndexEndpoint. -// -// - name: The name of the IndexEndpoint resource to be deleted. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) Delete(name string) *ProjectsLocationsIndexEndpointsDeleteCall { - c := &ProjectsLocationsIndexEndpointsDeleteCall{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 *ProjectsLocationsIndexEndpointsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsIndexEndpointsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeleteCall { - 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 *ProjectsLocationsIndexEndpointsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsIndexEndpointsDeleteCall) 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 + return nil, err } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil + 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}/metadataStores") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.indexEndpoints.delete" call. +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75196,23 +83794,31 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes an IndexEndpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexEndpoints.delete", + // "description": "Initializes a MetadataStore, including allocation of resources.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the IndexEndpoint resource to be deleted. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "metadataStoreId": { + // "description": "The {metadatastore} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataStores in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataStore.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location where the MetadataStore should be created. Format: `projects/{project}/locations/{location}/`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/metadataStores", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1MetadataStore" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -75223,35 +83829,39 @@ func (c *ProjectsLocationsIndexEndpointsDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.indexEndpoints.deployIndex": +// method id "aiplatform.projects.locations.metadataStores.delete": -type ProjectsLocationsIndexEndpointsDeployIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1beta1deployindexrequest *GoogleCloudAiplatformV1beta1DeployIndexRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// DeployIndex: Deploys an Index into this IndexEndpoint, creating a -// DeployedIndex within it. Only non-empty Indexes can be deployed. +// Delete: Deletes a single MetadataStore and all its child resources +// (Artifacts, Executions, and Contexts). // -// - indexEndpoint: The name of the IndexEndpoint resource into which to -// deploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) DeployIndex(indexEndpoint string, googlecloudaiplatformv1beta1deployindexrequest *GoogleCloudAiplatformV1beta1DeployIndexRequest) *ProjectsLocationsIndexEndpointsDeployIndexCall { - c := &ProjectsLocationsIndexEndpointsDeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1beta1deployindexrequest = googlecloudaiplatformv1beta1deployindexrequest +// - name: The resource name of the MetadataStore to delete. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresService) Delete(name string) *ProjectsLocationsMetadataStoresDeleteCall { + c := &ProjectsLocationsMetadataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": Deprecated: Field is no +// longer supported. +func (c *ProjectsLocationsMetadataStoresDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) 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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsDeployIndexCall { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75259,21 +83869,21 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsDeployIndexCall { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresDeleteCall { 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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresDeleteCall) 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_ { @@ -75281,34 +83891,29 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1deployindexrequest) - 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/{+indexEndpoint}:deployIndex") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.deployIndex" call. +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75339,26 +83944,29 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:deployIndex", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.deployIndex", + // "description": "Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.delete", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "force": { + // "deprecated": true, + // "description": "Deprecated: Field is no longer supported.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The resource name of the MetadataStore to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+indexEndpoint}:deployIndex", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DeployIndexRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -75369,93 +83977,99 @@ func (c *ProjectsLocationsIndexEndpointsDeployIndexCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.indexEndpoints.findNeighbors": +// method id "aiplatform.projects.locations.metadataStores.get": -type ProjectsLocationsIndexEndpointsFindNeighborsCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1beta1findneighborsrequest *GoogleCloudAiplatformV1beta1FindNeighborsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// FindNeighbors: Finds the nearest neighbors of each vector within the -// request. +// Get: Retrieves a specific MetadataStore. // -// - indexEndpoint: The name of the index endpoint. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) FindNeighbors(indexEndpoint string, googlecloudaiplatformv1beta1findneighborsrequest *GoogleCloudAiplatformV1beta1FindNeighborsRequest) *ProjectsLocationsIndexEndpointsFindNeighborsCall { - c := &ProjectsLocationsIndexEndpointsFindNeighborsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1beta1findneighborsrequest = googlecloudaiplatformv1beta1findneighborsrequest +// - name: The resource name of the MetadataStore to retrieve. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresService) Get(name string) *ProjectsLocationsMetadataStoresGetCall { + c := &ProjectsLocationsMetadataStoresGetCall{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 *ProjectsLocationsIndexEndpointsFindNeighborsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsFindNeighborsCall { +func (c *ProjectsLocationsMetadataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresGetCall { 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 *ProjectsLocationsMetadataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresGetCall { + 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 *ProjectsLocationsIndexEndpointsFindNeighborsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsFindNeighborsCall { +func (c *ProjectsLocationsMetadataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresGetCall { 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 *ProjectsLocationsIndexEndpointsFindNeighborsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1findneighborsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+indexEndpoint}:findNeighbors") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.findNeighbors" call. -// Exactly one of *GoogleCloudAiplatformV1beta1FindNeighborsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.metadataStores.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1MetadataStore or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1FindNeighborsResponse.ServerResponse.Head -// er or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1MetadataStore.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FindNeighborsResponse, error) { +func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1MetadataStore, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75474,7 +84088,7 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1FindNeighborsResponse{ + ret := &GoogleCloudAiplatformV1beta1MetadataStore{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75486,28 +84100,25 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Finds the nearest neighbors of each vector within the request.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:findNeighbors", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.findNeighbors", + // "description": "Retrieves a specific MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.get", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "name": { + // "description": "Required. The resource name of the MetadataStore to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+indexEndpoint}:findNeighbors", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1FindNeighborsRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1FindNeighborsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1MetadataStore" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75516,32 +84127,49 @@ func (c *ProjectsLocationsIndexEndpointsFindNeighborsCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.indexEndpoints.get": +// method id "aiplatform.projects.locations.metadataStores.list": -type ProjectsLocationsIndexEndpointsGetCall struct { +type ProjectsLocationsMetadataStoresListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// Get: Gets an IndexEndpoint. +// List: Lists MetadataStores for a Location. // -// - name: The name of the IndexEndpoint resource. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) Get(name string) *ProjectsLocationsIndexEndpointsGetCall { - c := &ProjectsLocationsIndexEndpointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The Location whose MetadataStores should be listed. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsMetadataStoresService) List(parent string) *ProjectsLocationsMetadataStoresListCall { + c := &ProjectsLocationsMetadataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Metadata Stores to return. The service may return fewer. Must be +// in range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListMetadataStores call. +// Provide this to retrieve the subsequent page. When paginating, all +// other provided parameters must match the call that provided the page +// token. (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresListCall { + 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 *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsMetadataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75551,7 +84179,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsMetadataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresListCall { c.ifNoneMatch_ = entityTag return c } @@ -75559,21 +84187,21 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) IfNoneMatch(entityTag string) * // 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 *ProjectsLocationsIndexEndpointsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsGetCall { +func (c *ProjectsLocationsMetadataStoresListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresListCall { 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 *ProjectsLocationsIndexEndpointsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresListCall) 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_ { @@ -75586,7 +84214,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Re var body io.Reader = nil 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}/metadataStores") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -75594,21 +84222,22 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) doRequest(alt string) (*http.Re } 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.indexEndpoints.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1IndexEndpoint or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1IndexEndpoint.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.metadataStores.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListMetadataStoresResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1ListMetadataStoresResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1IndexEndpoint, error) { +func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListMetadataStoresResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75627,7 +84256,7 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1IndexEndpoint{ + ret := &GoogleCloudAiplatformV1beta1ListMetadataStoresResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75639,25 +84268,36 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Gets an IndexEndpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", + // "description": "Lists MetadataStores for a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.get", + // "id": "aiplatform.projects.locations.metadataStores.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the IndexEndpoint resource. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "pageSize": { + // "description": "The maximum number of Metadata Stores to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous MetadataService.ListMetadataStores call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The Location whose MetadataStores should be listed. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/metadataStores", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" + // "$ref": "GoogleCloudAiplatformV1beta1ListMetadataStoresResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75666,119 +84306,108 @@ func (c *ProjectsLocationsIndexEndpointsGetCall) Do(opts ...googleapi.CallOption } -// method id "aiplatform.projects.locations.indexEndpoints.list": - -type ProjectsLocationsIndexEndpointsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists IndexEndpoints in a Location. -// -// - parent: The resource name of the Location from which to list the -// IndexEndpoints. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexEndpointsService) List(parent string) *ProjectsLocationsIndexEndpointsListCall { - c := &ProjectsLocationsIndexEndpointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c +// 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 *ProjectsLocationsMetadataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListMetadataStoresResponse) 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) + } } -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `index_endpoint` supports = and !=. -// `index_endpoint` represents the IndexEndpoint ID, ie. the last -// segment of the IndexEndpoint's resourcename. * `display_name` -// supports =, != and regex() (uses re2 -// (https://github.com/google/re2/wiki/Syntax) syntax) * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* or labels:key - key existence A key -// including a space must be quoted. `labels."a key". Some examples: * -// `index_endpoint="1" * `display_name="myDisplayName" * -// `regex(display_name, "^A") -> The display name starts with an A. * -// `labels.myKey="myValue" -func (c *ProjectsLocationsIndexEndpointsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("filter", filter) - return c -} +// method id "aiplatform.projects.locations.metadataStores.artifacts.create": -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsIndexEndpointsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type ProjectsLocationsMetadataStoresArtifactsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListIndexEndpointsResponse.next_page_token of the previous -// IndexEndpointService.ListIndexEndpoints call. -func (c *ProjectsLocationsIndexEndpointsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Create: Creates an Artifact associated with a MetadataStore. +// +// - parent: The resource name of the MetadataStore where the Artifact +// should be created. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Create(parent string, googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact) *ProjectsLocationsMetadataStoresArtifactsCreateCall { + c := &ProjectsLocationsMetadataStoresArtifactsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1artifact = googlecloudaiplatformv1beta1artifact return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsIndexEndpointsListCall) ReadMask(readMask string) *ProjectsLocationsIndexEndpointsListCall { - c.urlParams_.Set("readMask", readMask) +// ArtifactId sets the optional parameter "artifactId": The {artifact} +// portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }/artifacts/{artifact}` If not provided, the Artifact's ID will be a +// UUID generated by the service. Must be 4-128 characters in length. +// Valid characters are `/a-z-/`. Must be unique across all Artifacts in +// the parent MetadataStore. (Otherwise the request will fail with +// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the +// preexisting Artifact.) +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) ArtifactId(artifactId string) *ProjectsLocationsMetadataStoresArtifactsCreateCall { + c.urlParams_.Set("artifactId", artifactId) 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 *ProjectsLocationsIndexEndpointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsCreateCall { 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 *ProjectsLocationsIndexEndpointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsListCall { - 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 *ProjectsLocationsIndexEndpointsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsCreateCall { 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 *ProjectsLocationsIndexEndpointsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) 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.googlecloudaiplatformv1beta1artifact) + 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/{+parent}/indexEndpoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/artifacts") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -75789,17 +84418,15 @@ func (c *ProjectsLocationsIndexEndpointsListCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse.ServerResponse -// .Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Artifact or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Artifact.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Artifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -75818,7 +84445,7 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse{ + ret := &GoogleCloudAiplatformV1beta1Artifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -75830,47 +84457,33 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists IndexEndpoints in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.list", + // "description": "Creates an Artifact associated with a MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `index_endpoint` supports = and !=. `index_endpoint` represents the IndexEndpoint ID, ie. the last segment of the IndexEndpoint's resourcename. * `display_name` supports =, != and regex() (uses [re2](https://github.com/google/re2/wiki/Syntax) syntax) * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* or labels:key - key existence A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `index_endpoint=\"1\"` * `display_name=\"myDisplayName\"` * `regex(display_name, \"^A\") -\u003e The display name starts with an A. * `labels.myKey=\"myValue\"`", - // "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. Typically obtained via ListIndexEndpointsResponse.next_page_token of the previous IndexEndpointService.ListIndexEndpoints call.", + // "artifactId": { + // "description": "The {artifact} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Artifact.)", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location from which to list the IndexEndpoints. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the MetadataStore where the Artifact should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/indexEndpoints", + // "path": "v1beta1/{+parent}/artifacts", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Artifact" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1Artifact" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -75879,56 +84492,39 @@ func (c *ProjectsLocationsIndexEndpointsListCall) Do(opts ...googleapi.CallOptio } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexEndpointsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListIndexEndpointsResponse) 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.indexEndpoints.mutateDeployedIndex": +// method id "aiplatform.projects.locations.metadataStores.artifacts.delete": -type ProjectsLocationsIndexEndpointsMutateDeployedIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1beta1deployedindex *GoogleCloudAiplatformV1beta1DeployedIndex - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// MutateDeployedIndex: Update an existing DeployedIndex under an -// IndexEndpoint. +// Delete: Deletes an Artifact. // -// - indexEndpoint: The name of the IndexEndpoint resource into which to -// deploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) MutateDeployedIndex(indexEndpoint string, googlecloudaiplatformv1beta1deployedindex *GoogleCloudAiplatformV1beta1DeployedIndex) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { - c := &ProjectsLocationsIndexEndpointsMutateDeployedIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1beta1deployedindex = googlecloudaiplatformv1beta1deployedindex +// - name: The resource name of the Artifact to delete. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/artifacts/{artifact}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Delete(name string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { + c := &ProjectsLocationsMetadataStoresArtifactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": The etag of the Artifact to +// delete. If this is provided, it must match the server's etag. +// Otherwise, the request will fail with a FAILED_PRECONDITION. +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { + c.urlParams_.Set("etag", etag) 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -75936,21 +84532,21 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Fields(s ...goo // 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { 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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) 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_ { @@ -75958,34 +84554,29 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1deployedindex) - 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/{+indexEndpoint}:mutateDeployedIndex") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76016,26 +84607,28 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...goog } return ret, nil // { - // "description": "Update an existing DeployedIndex under an IndexEndpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:mutateDeployedIndex", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.mutateDeployedIndex", + // "description": "Deletes an Artifact.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.delete", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the IndexEndpoint resource into which to deploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "etag": { + // "description": "Optional. The etag of the Artifact to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. The resource name of the Artifact to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+indexEndpoint}:mutateDeployedIndex", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1DeployedIndex" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -76046,77 +84639,79 @@ func (c *ProjectsLocationsIndexEndpointsMutateDeployedIndexCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.indexEndpoints.patch": +// method id "aiplatform.projects.locations.metadataStores.artifacts.get": -type ProjectsLocationsIndexEndpointsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an IndexEndpoint. +// Get: Retrieves a specific Artifact. // -// - name: Output only. The resource name of the IndexEndpoint. -func (r *ProjectsLocationsIndexEndpointsService) Patch(name string, googlecloudaiplatformv1beta1indexendpoint *GoogleCloudAiplatformV1beta1IndexEndpoint) *ProjectsLocationsIndexEndpointsPatchCall { - c := &ProjectsLocationsIndexEndpointsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Artifact to retrieve. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/artifacts/{artifact}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Get(name string) *ProjectsLocationsMetadataStoresArtifactsGetCall { + c := &ProjectsLocationsMetadataStoresArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1indexendpoint = googlecloudaiplatformv1beta1indexendpoint - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. See google.protobuf.FieldMask. -func (c *ProjectsLocationsIndexEndpointsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexEndpointsPatchCall { - c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsPatchCall { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsGetCall { 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsGetCall { + 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 *ProjectsLocationsIndexEndpointsPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsPatchCall { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsGetCall { 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 *ProjectsLocationsIndexEndpointsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1indexendpoint) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -76127,16 +84722,15 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1IndexEndpoint or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1IndexEndpoint.ServerResponse.Header or +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Artifact or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Artifact.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1IndexEndpoint, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Artifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76155,7 +84749,7 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1IndexEndpoint{ + ret := &GoogleCloudAiplatformV1beta1Artifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76167,34 +84761,25 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Updates an IndexEndpoint.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.indexEndpoints.patch", + // "description": "Retrieves a specific Artifact.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. The resource name of the IndexEndpoint.", + // "description": "Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. See google.protobuf.FieldMask.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" - // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1IndexEndpoint" + // "$ref": "GoogleCloudAiplatformV1beta1Artifact" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76203,94 +84788,156 @@ func (c *ProjectsLocationsIndexEndpointsPatchCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints": +// method id "aiplatform.projects.locations.metadataStores.artifacts.list": -type ProjectsLocationsIndexEndpointsReadIndexDatapointsCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1beta1readindexdatapointsrequest *GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ReadIndexDatapoints: Reads the datapoints/vectors of the given IDs. A -// maximum of 1000 datapoints can be retrieved in a batch. +// List: Lists Artifacts in the MetadataStore. // -// - indexEndpoint: The name of the index endpoint. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) ReadIndexDatapoints(indexEndpoint string, googlecloudaiplatformv1beta1readindexdatapointsrequest *GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { - c := &ProjectsLocationsIndexEndpointsReadIndexDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1beta1readindexdatapointsrequest = googlecloudaiplatformv1beta1readindexdatapointsrequest +// - parent: The MetadataStore whose Artifacts should be listed. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) List(parent string) *ProjectsLocationsMetadataStoresArtifactsListCall { + c := &ProjectsLocationsMetadataStoresArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Artifacts to satisfy in order to be part of +// the result set. The syntax to define filter query is based on +// https://google.aip.dev/160. The supported set of filters include the +// following: * **Attribute filtering**: For example: `display_name = +// "test". Supported fields include: `name`, `display_name`, `uri`, +// `state`, `schema_title`, `create_time`, and `update_time`. Time +// fields, such as `create_time` and `update_time`, require values +// specified in RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..`. For +// example: `metadata.field_1.number_value = 10.0` In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` * **Context based filtering**: To filter Artifacts based on the +// contexts to which they belong, use the function operator with the +// full resource name `in_context()`. For example: +// `in_context("projects//locations//metadataStores//contexts/")` Each +// of the above supported filter types can be combined together using +// logical operators (`AND` & `OR`). Maximum nested expression depth +// allowed is 5. For example: `display_name = "test" AND +// metadata.field1.bool_value = true`. +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": How the list of +// messages is ordered. Specify the values to order by and an ordering +// operation. The default sorting order is ascending. To specify +// descending order for a field, users append a " desc" suffix; for +// example: "foo desc, bar". Subfields are specified with a `.` +// character, such as foo.bar. see https://google.aip.dev/132#ordering +// for more details. +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresArtifactsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Artifacts to return. The service may return fewer. Must be in +// range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListArtifacts call. Provide +// this to retrieve the subsequent page. When paginating, all other +// provided parameters must match the call that provided the page token. +// (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresArtifactsListCall { + 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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsListCall { 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 *ProjectsLocationsMetadataStoresArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsListCall { + 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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsListCall { 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 *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1readindexdatapointsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+indexEndpoint}:readIndexDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/artifacts") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListArtifactsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse.ServerRespons -// e.Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListArtifactsResponse.ServerResponse.Head +// er or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListArtifactsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76309,7 +84956,7 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListArtifactsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76321,28 +84968,46 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog } return ret, nil // { - // "description": "Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:readIndexDatapoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.readIndexDatapoints", + // "description": "Lists Artifacts in the MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.list", // "parameterOrder": [ - // "indexEndpoint" + // "parent" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the index endpoint. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "filter": { + // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Artifacts based on the contexts to which they belong, use the function operator with the full resource name `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The MetadataStore whose Artifacts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+indexEndpoint}:readIndexDatapoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ReadIndexDatapointsRequest" - // }, + // "path": "v1beta1/{+parent}/artifacts", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ReadIndexDatapointsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListArtifactsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76351,35 +85016,66 @@ func (c *ProjectsLocationsIndexEndpointsReadIndexDatapointsCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.indexEndpoints.undeployIndex": +// 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListArtifactsResponse) 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) + } +} -type ProjectsLocationsIndexEndpointsUndeployIndexCall struct { - s *Service - indexEndpoint string - googlecloudaiplatformv1beta1undeployindexrequest *GoogleCloudAiplatformV1beta1UndeployIndexRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.metadataStores.artifacts.patch": + +type ProjectsLocationsMetadataStoresArtifactsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// UndeployIndex: Undeploys an Index from an IndexEndpoint, removing a -// DeployedIndex from it, and freeing all resources it's using. +// Patch: Updates a stored Artifact. // -// - indexEndpoint: The name of the IndexEndpoint resource from which to -// undeploy an Index. Format: -// `projects/{project}/locations/{location}/indexEndpoints/{index_endpo -// int}`. -func (r *ProjectsLocationsIndexEndpointsService) UndeployIndex(indexEndpoint string, googlecloudaiplatformv1beta1undeployindexrequest *GoogleCloudAiplatformV1beta1UndeployIndexRequest) *ProjectsLocationsIndexEndpointsUndeployIndexCall { - c := &ProjectsLocationsIndexEndpointsUndeployIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.indexEndpoint = indexEndpoint - c.googlecloudaiplatformv1beta1undeployindexrequest = googlecloudaiplatformv1beta1undeployindexrequest +// - name: Output only. The resource name of the Artifact. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Patch(name string, googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact) *ProjectsLocationsMetadataStoresArtifactsPatchCall { + c := &ProjectsLocationsMetadataStoresArtifactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1artifact = googlecloudaiplatformv1beta1artifact + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, and the Artifact is not found, a new Artifact is created. +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresArtifactsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": A FieldMask +// indicating which fields should be updated. +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresArtifactsPatchCall { + 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsUndeployIndexCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -76387,21 +85083,21 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsUndeployIndexCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPatchCall { 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) 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_ { @@ -76409,34 +85105,35 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1undeployindexrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1artifact) 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/{+indexEndpoint}:undeployIndex") + 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 } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "indexEndpoint": c.indexEndpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.undeployIndex" 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 *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Artifact or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Artifact.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Artifact, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76455,7 +85152,7 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Artifact{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76467,28 +85164,39 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexEndpoints/{indexEndpointsId}:undeployIndex", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.undeployIndex", + // "description": "Updates a stored Artifact.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.patch", // "parameterOrder": [ - // "indexEndpoint" + // "name" // ], // "parameters": { - // "indexEndpoint": { - // "description": "Required. The name of the IndexEndpoint resource from which to undeploy an Index. Format: `projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}`", + // "allowMissing": { + // "description": "If set to true, and the Artifact is not found, a new Artifact is created.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Output only. The resource name of the Artifact.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. A FieldMask indicating which fields should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+indexEndpoint}:undeployIndex", + // "path": "v1beta1/{+name}", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1UndeployIndexRequest" + // "$ref": "GoogleCloudAiplatformV1beta1Artifact" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Artifact" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76497,38 +85205,33 @@ func (c *ProjectsLocationsIndexEndpointsUndeployIndexCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.indexEndpoints.operations.cancel": +// method id "aiplatform.projects.locations.metadataStores.artifacts.purge": -type ProjectsLocationsIndexEndpointsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsPurgeCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1purgeartifactsrequest *GoogleCloudAiplatformV1beta1PurgeArtifactsRequest + 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`. +// Purge: Purges Artifacts. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Cancel(name string) *ProjectsLocationsIndexEndpointsOperationsCancelCall { - c := &ProjectsLocationsIndexEndpointsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The metadata store to purge Artifacts from. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresArtifactsService) Purge(parent string, googlecloudaiplatformv1beta1purgeartifactsrequest *GoogleCloudAiplatformV1beta1PurgeArtifactsRequest) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { + c := &ProjectsLocationsMetadataStoresArtifactsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1purgeartifactsrequest = googlecloudaiplatformv1beta1purgeartifactsrequest 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -76536,21 +85239,21 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Fields(s ...google // 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) 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_ { @@ -76558,9 +85261,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1purgeartifactsrequest) + 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/{+parent}/artifacts:purge") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -76568,19 +85276,19 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) doRequest(alt stri } 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.indexEndpoints.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.metadataStores.artifacts.purge" 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 *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76599,7 +85307,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea 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, @@ -76611,25 +85319,28 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea } 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:cancel", + // "description": "Purges Artifacts.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts:purge", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.cancel", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.purge", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "parent": { + // "description": "Required. The metadata store to purge Artifacts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/artifacts:purge", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PurgeArtifactsRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76638,84 +85349,138 @@ func (c *ProjectsLocationsIndexEndpointsOperationsCancelCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.indexEndpoints.operations.delete": +// method id "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph": -type ProjectsLocationsIndexEndpointsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall struct { + s *Service + artifact 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`. +// QueryArtifactLineageSubgraph: Retrieves lineage of an Artifact +// represented through Artifacts and Executions connected by Event edges +// and returned as a LineageSubgraph. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Delete(name string) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { - c := &ProjectsLocationsIndexEndpointsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - artifact: The resource name of the Artifact whose Lineage needs to +// be retrieved as a LineageSubgraph. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/artifacts/{artifact}` The request may error with +// FAILED_PRECONDITION if the number of Artifacts, the number of +// Executions, or the number of Events that would be returned for the +// Context exceeds 1000. +func (r *ProjectsLocationsMetadataStoresArtifactsService) QueryArtifactLineageSubgraph(artifact string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + c := &ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.artifact = artifact + return c +} + +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Artifacts to satisfy in order to be part of +// the Lineage Subgraph. The syntax to define filter query is based on +// https://google.aip.dev/160. The supported set of filters include the +// following: * **Attribute filtering**: For example: `display_name = +// "test" Supported fields include: `name`, `display_name`, `uri`, +// `state`, `schema_title`, `create_time`, and `update_time`. Time +// fields, such as `create_time` and `update_time`, require values +// specified in RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..`. For +// example: `metadata.field_1.number_value = 10.0` In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` Each of the above supported filter types can be combined +// together using logical operators (`AND` & `OR`). Maximum nested +// expression depth allowed is 5. For example: `display_name = "test" +// AND metadata.field1.bool_value = true`. +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + c.urlParams_.Set("filter", filter) + return c +} + +// MaxHops sets the optional parameter "maxHops": Specifies the size of +// the lineage graph in terms of number of hops from the specified +// artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only +// input artifact is returned. No value: Transitive closure is performed +// to return the complete graph. +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) MaxHops(maxHops int64) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + c.urlParams_.Set("maxHops", fmt.Sprint(maxHops)) 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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { + 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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { 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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+artifact}:queryArtifactLineageSubgraph") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "artifact": c.artifact, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.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 *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph" call. +// Exactly one of *GoogleCloudAiplatformV1beta1LineageSubgraph or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1LineageSubgraph.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1LineageSubgraph, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76734,7 +85499,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1LineageSubgraph{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76746,25 +85511,36 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea } 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.delete", + // "description": "Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}:queryArtifactLineageSubgraph", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph", // "parameterOrder": [ - // "name" + // "artifact" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "artifact": { + // "description": "Required. The resource name of the Artifact whose Lineage needs to be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "required": true, // "type": "string" + // }, + // "filter": { + // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"` Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "maxHops": { + // "description": "Specifies the size of the lineage graph in terms of number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: Transitive closure is performed to return the complete graph.", + // "format": "int32", + // "location": "query", + // "type": "integer" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+artifact}:queryArtifactLineageSubgraph", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1LineageSubgraph" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76773,24 +85549,30 @@ func (c *ProjectsLocationsIndexEndpointsOperationsDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.indexEndpoints.operations.get": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel": -type ProjectsLocationsIndexEndpointsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall struct { + s *Service + name string + 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. +// 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. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *ProjectsLocationsIndexEndpointsOperationsGetCall { - c := &ProjectsLocationsIndexEndpointsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -76798,54 +85580,41 @@ func (r *ProjectsLocationsIndexEndpointsOperationsService) Get(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall { 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 *ProjectsLocationsIndexEndpointsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsGetCall { - 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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall { 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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -76856,14 +85625,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.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 +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -76882,7 +85651,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -76894,25 +85663,25 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.get", + // "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}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -76921,100 +85690,66 @@ func (c *ProjectsLocationsIndexEndpointsOperationsGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.indexEndpoints.operations.list": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.delete": -type ProjectsLocationsIndexEndpointsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// 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's parent resource. -func (r *ProjectsLocationsIndexEndpointsOperationsService) List(name string) *ProjectsLocationsIndexEndpointsOperationsListCall { - c := &ProjectsLocationsIndexEndpointsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Filter(filter string) *ProjectsLocationsIndexEndpointsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexEndpointsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexEndpointsOperationsListCall { - 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall { 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 *ProjectsLocationsIndexEndpointsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexEndpointsOperationsListCall { - 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsListCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall { 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 *ProjectsLocationsIndexEndpointsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -77025,15 +85760,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.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 +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77052,7 +85786,7 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77064,41 +85798,25 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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}/indexEndpoints/{indexEndpointsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.list", + // "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}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/operations/[^/]+$", // "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", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77107,102 +85825,79 @@ func (c *ProjectsLocationsIndexEndpointsOperationsListCall) 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 *ProjectsLocationsIndexEndpointsOperationsListCall) 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.indexEndpoints.operations.wait": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.get": -type ProjectsLocationsIndexEndpointsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Get: Gets 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 to wait on. -func (r *ProjectsLocationsIndexEndpointsOperationsService) Wait(name string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - c := &ProjectsLocationsIndexEndpointsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Get(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsGetCall{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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexEndpointsOperationsWaitCall { - 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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexEndpointsOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { + 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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexEndpointsOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall { 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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -77213,14 +85908,14 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexEndpoints.operations.wait" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77251,29 +85946,23 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) 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}/indexEndpoints/{indexEndpointsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexEndpoints.operations.wait", + // "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}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexEndpoints/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/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", + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -77284,89 +85973,119 @@ func (c *ProjectsLocationsIndexEndpointsOperationsWaitCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.indexes.create": +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.list": -type ProjectsLocationsIndexesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresArtifactsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates an Index. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to create the Index in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexesService) Create(parent string, googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index) *ProjectsLocationsIndexesCreateCall { - c := &ProjectsLocationsIndexesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1index = googlecloudaiplatformv1beta1index +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) List(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { + 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 *ProjectsLocationsIndexesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesCreateCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { 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 *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { + 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 *ProjectsLocationsIndexesCreateCall) Context(ctx context.Context) *ProjectsLocationsIndexesCreateCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsListCall { 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 *ProjectsLocationsIndexesCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1index) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/indexes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77385,7 +86104,7 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77397,28 +86116,41 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Creates an Index.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.create", + // "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}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the Index in. Format: `projects/{project}/locations/{location}`", + // "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/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", // "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/{+parent}/indexes", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Index" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77427,9 +86159,30 @@ func (c *ProjectsLocationsIndexesCreateCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.indexes.delete": +// 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 *ProjectsLocationsMetadataStoresArtifactsOperationsListCall) 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) + } +} -type ProjectsLocationsIndexesDeleteCall struct { +// method id "aiplatform.projects.locations.metadataStores.artifacts.operations.wait": + +type ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -77437,21 +86190,37 @@ type ProjectsLocationsIndexesDeleteCall struct { header_ http.Header } -// Delete: Deletes an Index. An Index can only be deleted when all its -// DeployedIndexes had been undeployed. +// 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 Index resource to be deleted. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) Delete(name string) *ProjectsLocationsIndexesDeleteCall { - c := &ProjectsLocationsIndexesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMetadataStoresArtifactsOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall{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 *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { + 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 *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -77459,21 +86228,21 @@ func (c *ProjectsLocationsIndexesDeleteCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsIndexesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesDeleteCall { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall { 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 *ProjectsLocationsIndexesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) 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_ { @@ -77483,9 +86252,9 @@ func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Respon var body io.Reader = nil 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -77496,14 +86265,14 @@ func (c *ProjectsLocationsIndexesDeleteCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.delete" call. +// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresArtifactsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77534,23 +86303,29 @@ func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Deletes an Index. An Index can only be deleted when all its DeployedIndexes had been undeployed.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexes.delete", + // "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}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.artifacts.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Index resource to be deleted. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+/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}", + // "path": "v1beta1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -77561,97 +86336,96 @@ func (c *ProjectsLocationsIndexesDeleteCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.indexes.get": +// method id "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions": -type ProjectsLocationsIndexesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall struct { + s *Service + context string + googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets an Index. +// AddContextArtifactsAndExecutions: Adds a set of Artifacts and +// Executions to a Context. If any of the Artifacts or Executions have +// already been added to a Context, they are simply skipped. // -// - name: The name of the Index resource. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) Get(name string) *ProjectsLocationsIndexesGetCall { - c := &ProjectsLocationsIndexesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - context: The resource name of the Context that the Artifacts and +// Executions belong to. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) AddContextArtifactsAndExecutions(context string, googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { + c := &ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context + c.googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest = googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest 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 *ProjectsLocationsIndexesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { 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 *ProjectsLocationsIndexesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesGetCall { - 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 *ProjectsLocationsIndexesGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesGetCall { +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { 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 *ProjectsLocationsIndexesGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) 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.googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest) + 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/{+context}:addContextArtifactsAndExecutions") 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, + "context": c.context, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Index or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Index.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse. +// ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Index, error) { +func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77670,7 +86444,7 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Index{ + ret := &GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77682,25 +86456,28 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Gets an Index.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.get", + // "description": "Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextArtifactsAndExecutions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions", // "parameterOrder": [ - // "name" + // "context" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Index resource. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "context": { + // "description": "Required. The resource name of the Context that the Artifacts and Executions belong to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+context}:addContextArtifactsAndExecutions", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Index" + // "$ref": "GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77709,130 +86486,97 @@ func (c *ProjectsLocationsIndexesGetCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "aiplatform.projects.locations.indexes.list": +// method id "aiplatform.projects.locations.metadataStores.contexts.addContextChildren": -type ProjectsLocationsIndexesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsAddContextChildrenCall struct { + s *Service + context string + googlecloudaiplatformv1beta1addcontextchildrenrequest *GoogleCloudAiplatformV1beta1AddContextChildrenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Indexes in a Location. +// AddContextChildren: Adds a set of Contexts as children to a parent +// Context. If any of the child Contexts have already been added to the +// parent Context, they are simply skipped. If this call would create a +// cycle or cause any Context to have more than 10 parents, the request +// will fail with an INVALID_ARGUMENT error. // -// - parent: The resource name of the Location from which to list the -// Indexes. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsIndexesService) List(parent string) *ProjectsLocationsIndexesListCall { - c := &ProjectsLocationsIndexesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsIndexesListCall) Filter(filter string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsIndexesListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListIndexesResponse.next_page_token of the previous -// IndexService.ListIndexes call. -func (c *ProjectsLocationsIndexesListCall) PageToken(pageToken string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsIndexesListCall) ReadMask(readMask string) *ProjectsLocationsIndexesListCall { - c.urlParams_.Set("readMask", readMask) +// - context: The resource name of the parent Context. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) AddContextChildren(context string, googlecloudaiplatformv1beta1addcontextchildrenrequest *GoogleCloudAiplatformV1beta1AddContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { + c := &ProjectsLocationsMetadataStoresContextsAddContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context + c.googlecloudaiplatformv1beta1addcontextchildrenrequest = googlecloudaiplatformv1beta1addcontextchildrenrequest 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 *ProjectsLocationsIndexesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { 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 *ProjectsLocationsIndexesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesListCall { - 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 *ProjectsLocationsIndexesListCall) Context(ctx context.Context) *ProjectsLocationsIndexesListCall { +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { 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 *ProjectsLocationsIndexesListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) 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.googlecloudaiplatformv1beta1addcontextchildrenrequest) + 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/{+parent}/indexes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+context}:addContextChildren") 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{ - "parent": c.parent, + "context": c.context, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListIndexesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListIndexesResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextChildren" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1AddContextChildrenResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1AddContextChildrenResponse.ServerResponse +// .Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListIndexesResponse, error) { +func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AddContextChildrenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -77851,7 +86595,7 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListIndexesResponse{ + ret := &GoogleCloudAiplatformV1beta1AddContextChildrenResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -77863,47 +86607,28 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Lists Indexes in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.list", + // "description": "Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextChildren", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextChildren", // "parameterOrder": [ - // "parent" + // "context" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListIndexesResponse.next_page_token of the previous IndexService.ListIndexes call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location from which to list the Indexes. Format: `projects/{project}/locations/{location}`", + // "context": { + // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/indexes", + // "path": "v1beta1/{+context}:addContextChildren", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1AddContextChildrenRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListIndexesResponse" + // "$ref": "GoogleCloudAiplatformV1beta1AddContextChildrenResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -77912,60 +86637,48 @@ func (c *ProjectsLocationsIndexesListCall) Do(opts ...googleapi.CallOption) (*Go } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListIndexesResponse) 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.indexes.patch": - -type ProjectsLocationsIndexesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.metadataStores.contexts.create": + +type ProjectsLocationsMetadataStoresContextsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates an Index. +// Create: Creates a Context associated with a MetadataStore. // -// - name: Output only. The resource name of the Index. -func (r *ProjectsLocationsIndexesService) Patch(name string, googlecloudaiplatformv1beta1index *GoogleCloudAiplatformV1beta1Index) *ProjectsLocationsIndexesPatchCall { - c := &ProjectsLocationsIndexesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1index = googlecloudaiplatformv1beta1index +// - parent: The resource name of the MetadataStore where the Context +// should be created. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Create(parent string, googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context) *ProjectsLocationsMetadataStoresContextsCreateCall { + c := &ProjectsLocationsMetadataStoresContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1context = googlecloudaiplatformv1beta1context return c } -// UpdateMask sets the optional parameter "updateMask": The update mask -// applies to the resource. For the `FieldMask` definition, see -// google.protobuf.FieldMask. -func (c *ProjectsLocationsIndexesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIndexesPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// ContextId sets the optional parameter "contextId": The {context} +// portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }/contexts/{context}`. If not provided, the Context's ID will be a +// UUID generated by the service. Must be 4-128 characters in length. +// Valid characters are `/a-z-/`. Must be unique across all Contexts in +// the parent MetadataStore. (Otherwise the request will fail with +// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the +// preexisting Context.) +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) ContextId(contextId string) *ProjectsLocationsMetadataStoresContextsCreateCall { + c.urlParams_.Set("contextId", contextId) 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 *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesPatchCall { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -77973,21 +86686,21 @@ func (c *ProjectsLocationsIndexesPatchCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsIndexesPatchCall) Context(ctx context.Context) *ProjectsLocationsIndexesPatchCall { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsCreateCall { 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 *ProjectsLocationsIndexesPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) 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_ { @@ -77995,34 +86708,35 @@ func (c *ProjectsLocationsIndexesPatchCall) doRequest(alt string) (*http.Respons } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1index) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1context) 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}/contexts") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Context or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Context.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Context, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78041,7 +86755,7 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Context{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -78053,34 +86767,33 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Updates an Index.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.indexes.patch", + // "description": "Creates a Context associated with a MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Output only. The resource name of the Index.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", - // "required": true, + // "contextId": { + // "description": "The {context} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.)", + // "location": "query", // "type": "string" // }, - // "updateMask": { - // "description": "The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", - // "format": "google-fieldmask", - // "location": "query", + // "parent": { + // "description": "Required. The resource name of the MetadataStore where the Context should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/contexts", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Index" + // "$ref": "GoogleCloudAiplatformV1beta1Context" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Context" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -78089,32 +86802,46 @@ func (c *ProjectsLocationsIndexesPatchCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.indexes.removeDatapoints": +// method id "aiplatform.projects.locations.metadataStores.contexts.delete": -type ProjectsLocationsIndexesRemoveDatapointsCall struct { - s *Service - index string - googlecloudaiplatformv1beta1removedatapointsrequest *GoogleCloudAiplatformV1beta1RemoveDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// RemoveDatapoints: Remove Datapoints from an Index. +// Delete: Deletes a stored Context. // -// - index: The name of the Index resource to be updated. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) RemoveDatapoints(index string, googlecloudaiplatformv1beta1removedatapointsrequest *GoogleCloudAiplatformV1beta1RemoveDatapointsRequest) *ProjectsLocationsIndexesRemoveDatapointsCall { - c := &ProjectsLocationsIndexesRemoveDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.index = index - c.googlecloudaiplatformv1beta1removedatapointsrequest = googlecloudaiplatformv1beta1removedatapointsrequest +// - name: The resource name of the Context to delete. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Delete(name string) *ProjectsLocationsMetadataStoresContextsDeleteCall { + c := &ProjectsLocationsMetadataStoresContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": The etag of the Context to +// delete. If this is provided, it must match the server's etag. +// Otherwise, the request will fail with a FAILED_PRECONDITION. +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresContextsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Force sets the optional parameter "force": The force deletion +// semantics is still undefined. Users should not use this field. +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresContextsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) 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 *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesRemoveDatapointsCall { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -78122,21 +86849,21 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesRemoveDatapointsCall { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsDeleteCall { 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 *ProjectsLocationsIndexesRemoveDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) 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_ { @@ -78144,36 +86871,29 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1removedatapointsrequest) - 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/{+index}:removeDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "index": c.index, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.removeDatapoints" call. -// Exactly one of *GoogleCloudAiplatformV1beta1RemoveDatapointsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1RemoveDatapointsResponse.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 *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RemoveDatapointsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78192,7 +86912,7 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1RemoveDatapointsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -78204,28 +86924,35 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Remove Datapoints from an Index.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:removeDatapoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.removeDatapoints", + // "description": "Deletes a stored Context.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.contexts.delete", // "parameterOrder": [ - // "index" + // "name" // ], // "parameters": { - // "index": { - // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "etag": { + // "description": "Optional. The etag of the Context to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", + // "location": "query", + // "type": "string" + // }, + // "force": { + // "description": "The force deletion semantics is still undefined. Users should not use this field.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The resource name of the Context to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+index}:removeDatapoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1RemoveDatapointsRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1RemoveDatapointsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -78234,91 +86961,98 @@ func (c *ProjectsLocationsIndexesRemoveDatapointsCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.upsertDatapoints": +// method id "aiplatform.projects.locations.metadataStores.contexts.get": -type ProjectsLocationsIndexesUpsertDatapointsCall struct { - s *Service - index string - googlecloudaiplatformv1beta1upsertdatapointsrequest *GoogleCloudAiplatformV1beta1UpsertDatapointsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// UpsertDatapoints: Add/update Datapoints into an Index. +// Get: Retrieves a specific Context. // -// - index: The name of the Index resource to be updated. Format: -// `projects/{project}/locations/{location}/indexes/{index}`. -func (r *ProjectsLocationsIndexesService) UpsertDatapoints(index string, googlecloudaiplatformv1beta1upsertdatapointsrequest *GoogleCloudAiplatformV1beta1UpsertDatapointsRequest) *ProjectsLocationsIndexesUpsertDatapointsCall { - c := &ProjectsLocationsIndexesUpsertDatapointsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.index = index - c.googlecloudaiplatformv1beta1upsertdatapointsrequest = googlecloudaiplatformv1beta1upsertdatapointsrequest +// - name: The resource name of the Context to retrieve. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Get(name string) *ProjectsLocationsMetadataStoresContextsGetCall { + c := &ProjectsLocationsMetadataStoresContextsGetCall{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 *ProjectsLocationsIndexesUpsertDatapointsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesUpsertDatapointsCall { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsGetCall { 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 *ProjectsLocationsMetadataStoresContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsGetCall { + 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 *ProjectsLocationsIndexesUpsertDatapointsCall) Context(ctx context.Context) *ProjectsLocationsIndexesUpsertDatapointsCall { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsGetCall { 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 *ProjectsLocationsIndexesUpsertDatapointsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1upsertdatapointsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+index}:upsertDatapoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "index": c.index, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.upsertDatapoints" call. -// Exactly one of *GoogleCloudAiplatformV1beta1UpsertDatapointsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1UpsertDatapointsResponse.ServerResponse.H -// eader or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Context or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Context.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1UpsertDatapointsResponse, error) { +func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Context, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78337,7 +87071,7 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1UpsertDatapointsResponse{ + ret := &GoogleCloudAiplatformV1beta1Context{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -78349,28 +87083,25 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Add/update Datapoints into an Index.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/indexes/{indexesId}:upsertDatapoints", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.upsertDatapoints", + // "description": "Retrieves a specific Context.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.contexts.get", // "parameterOrder": [ - // "index" + // "name" // ], // "parameters": { - // "index": { - // "description": "Required. The name of the Index resource to be updated. Format: `projects/{project}/locations/{location}/indexes/{index}`", + // "name": { + // "description": "Required. The resource name of the Context to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+index}:upsertDatapoints", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1UpsertDatapointsRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1UpsertDatapointsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1Context" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -78379,90 +87110,156 @@ func (c *ProjectsLocationsIndexesUpsertDatapointsCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.operations.cancel": +// method id "aiplatform.projects.locations.metadataStores.contexts.list": -type ProjectsLocationsIndexesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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`. +// List: Lists Contexts on the MetadataStore. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsIndexesOperationsService) Cancel(name string) *ProjectsLocationsIndexesOperationsCancelCall { - c := &ProjectsLocationsIndexesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The MetadataStore whose Contexts should be listed. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresContextsService) List(parent string) *ProjectsLocationsMetadataStoresContextsListCall { + c := &ProjectsLocationsMetadataStoresContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Contexts to satisfy in order to be part of +// the result set. The syntax to define filter query is based on +// https://google.aip.dev/160. Following are the supported set of +// filters: * **Attribute filtering**: For example: `display_name = +// "test". Supported fields include: `name`, `display_name`, +// `schema_title`, `create_time`, and `update_time`. Time fields, such +// as `create_time` and `update_time`, require values specified in +// RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..`. For +// example: `metadata.field_1.number_value = 10.0`. In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` * **Parent Child filtering**: To filter Contexts based on +// parent-child relationship use the HAS operator as follows: ``` +// parent_contexts: "projects//locations//metadataStores//contexts/" +// child_contexts: "projects//locations//metadataStores//contexts/" ``` +// Each of the above supported filters can be combined together using +// logical operators (`AND` & `OR`). Maximum nested expression depth +// allowed is 5. For example: `display_name = "test" AND +// metadata.field1.bool_value = true`. +func (c *ProjectsLocationsMetadataStoresContextsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresContextsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": How the list of +// messages is ordered. Specify the values to order by and an ordering +// operation. The default sorting order is ascending. To specify +// descending order for a field, users append a " desc" suffix; for +// example: "foo desc, bar". Subfields are specified with a `.` +// character, such as foo.bar. see https://google.aip.dev/132#ordering +// for more details. +func (c *ProjectsLocationsMetadataStoresContextsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresContextsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Contexts to return. The service may return fewer. Must be in range +// 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresContextsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListContexts call. Provide +// this to retrieve the subsequent page. When paginating, all other +// provided parameters must match the call that provided the page token. +// (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresContextsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresContextsListCall { + 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 *ProjectsLocationsIndexesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsListCall { 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 *ProjectsLocationsMetadataStoresContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsListCall { + 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 *ProjectsLocationsIndexesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsCancelCall { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsListCall { 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 *ProjectsLocationsIndexesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsListCall) 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}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/contexts") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListContextsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListContextsResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListContextsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78481,7 +87278,7 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ListContextsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -78493,25 +87290,46 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call } 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}/indexes/{indexesId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.operations.cancel", + // "description": "Lists Contexts on the MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.contexts.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "filter": { + // "description": "Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0`. In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Parent Child filtering**: To filter Contexts based on parent-child relationship use the HAS operator as follows: ``` parent_contexts: \"projects//locations//metadataStores//contexts/\" child_contexts: \"projects//locations//metadataStores//contexts/\" ``` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Contexts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The MetadataStore whose Contexts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/contexts", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ListContextsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -78520,32 +87338,66 @@ func (c *ProjectsLocationsIndexesOperationsCancelCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.operations.delete": +// 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 *ProjectsLocationsMetadataStoresContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListContextsResponse) 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.metadataStores.contexts.patch": -type ProjectsLocationsIndexesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context + 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`. +// Patch: Updates a stored Context. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsIndexesOperationsService) Delete(name string) *ProjectsLocationsIndexesOperationsDeleteCall { - c := &ProjectsLocationsIndexesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Immutable. The resource name of the Context. +func (r *ProjectsLocationsMetadataStoresContextsService) Patch(name string, googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context) *ProjectsLocationsMetadataStoresContextsPatchCall { + c := &ProjectsLocationsMetadataStoresContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1context = googlecloudaiplatformv1beta1context + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, and the Context is not found, a new Context is created. +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresContextsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// UpdateMask sets the optional parameter "updateMask": A FieldMask +// indicating which fields should be updated. +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresContextsPatchCall { + 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 *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -78553,21 +87405,21 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsIndexesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPatchCall { 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 *ProjectsLocationsIndexesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) 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_ { @@ -78575,11 +87427,16 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1context) + 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -78590,14 +87447,15 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Context or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Context.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Context, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78616,7 +87474,7 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1Context{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -78628,25 +87486,39 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call } 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}/indexes/{indexesId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.indexes.operations.delete", + // "description": "Updates a stored Context.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.metadataStores.contexts.patch", // "parameterOrder": [ // "name" // ], // "parameters": { + // "allowMissing": { + // "description": "If set to true, and the Context is not found, a new Context is created.", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Immutable. The resource name of the Context.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Optional. A FieldMask indicating which fields should be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Context" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1Context" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -78655,97 +87527,90 @@ func (c *ProjectsLocationsIndexesOperationsDeleteCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.indexes.operations.get": +// method id "aiplatform.projects.locations.metadataStores.contexts.purge": -type ProjectsLocationsIndexesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsPurgeCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1purgecontextsrequest *GoogleCloudAiplatformV1beta1PurgeContextsRequest + 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. +// Purge: Purges Contexts. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsIndexesOperationsService) Get(name string) *ProjectsLocationsIndexesOperationsGetCall { - c := &ProjectsLocationsIndexesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The metadata store to purge Contexts from. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}`. +func (r *ProjectsLocationsMetadataStoresContextsService) Purge(parent string, googlecloudaiplatformv1beta1purgecontextsrequest *GoogleCloudAiplatformV1beta1PurgeContextsRequest) *ProjectsLocationsMetadataStoresContextsPurgeCall { + c := &ProjectsLocationsMetadataStoresContextsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1purgecontextsrequest = googlecloudaiplatformv1beta1purgecontextsrequest 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 *ProjectsLocationsIndexesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPurgeCall { 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 *ProjectsLocationsIndexesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsGetCall { - 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 *ProjectsLocationsIndexesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsGetCall { +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPurgeCall { 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 *ProjectsLocationsIndexesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) 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.googlecloudaiplatformv1beta1purgecontextsrequest) + 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}/contexts:purge") 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.indexes.operations.get" call. +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.purge" 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 *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78776,23 +87641,26 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOpt } 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}/indexes/{indexesId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.operations.get", + // "description": "Purges Contexts.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts:purge", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.contexts.purge", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "parent": { + // "description": "Required. The metadata store to purge Contexts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/contexts:purge", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PurgeContextsRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -78803,53 +87671,38 @@ func (c *ProjectsLocationsIndexesOperationsGetCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.indexes.operations.list": +// method id "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph": -type ProjectsLocationsIndexesOperationsListCall struct { +type ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall struct { s *Service - name string + context 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`. +// QueryContextLineageSubgraph: Retrieves Artifacts and Executions +// within the specified Context, connected by Event edges and returned +// as a LineageSubgraph. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsIndexesOperationsService) List(name string) *ProjectsLocationsIndexesOperationsListCall { - c := &ProjectsLocationsIndexesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsIndexesOperationsListCall) Filter(filter string) *ProjectsLocationsIndexesOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsIndexesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsIndexesOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsIndexesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsIndexesOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - context: The resource name of the Context whose Artifacts and +// Executions should be retrieved as a LineageSubgraph. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}` The request may error with +// FAILED_PRECONDITION if the number of Artifacts, the number of +// Executions, or the number of Events that would be returned for the +// Context exceeds 1000. +func (r *ProjectsLocationsMetadataStoresContextsService) QueryContextLineageSubgraph(context string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { + c := &ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context 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 *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -78859,7 +87712,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { c.ifNoneMatch_ = entityTag return c } @@ -78867,21 +87720,21 @@ func (c *ProjectsLocationsIndexesOperationsListCall) IfNoneMatch(entityTag strin // 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 *ProjectsLocationsIndexesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsListCall { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { 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 *ProjectsLocationsIndexesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) 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_ { @@ -78894,7 +87747,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt 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/{+context}:queryContextLineageSubgraph") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -78902,20 +87755,21 @@ func (c *ProjectsLocationsIndexesOperationsListCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "context": c.context, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph" call. +// Exactly one of *GoogleCloudAiplatformV1beta1LineageSubgraph or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1LineageSubgraph.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1LineageSubgraph, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -78934,7 +87788,7 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1LineageSubgraph{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -78946,41 +87800,25 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp } 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}/indexes/{indexesId}/operations", + // "description": "Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:queryContextLineageSubgraph", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.indexes.operations.list", + // "id": "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph", // "parameterOrder": [ - // "name" + // "context" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "context": { + // "description": "Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "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", + // "path": "v1beta1/{+context}:queryContextLineageSubgraph", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1LineageSubgraph" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -78989,68 +87827,35 @@ func (c *ProjectsLocationsIndexesOperationsListCall) Do(opts ...googleapi.CallOp } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsIndexesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { - 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.indexes.operations.wait": +// method id "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren": -type ProjectsLocationsIndexesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall struct { + s *Service + context string + googlecloudaiplatformv1beta1removecontextchildrenrequest *GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest + 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. +// RemoveContextChildren: Remove a set of children contexts from a +// parent Context. If any of the child Contexts were NOT added to the +// parent Context, they are simply skipped. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsIndexesOperationsService) Wait(name string) *ProjectsLocationsIndexesOperationsWaitCall { - c := &ProjectsLocationsIndexesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - 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 *ProjectsLocationsIndexesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsIndexesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - context: The resource name of the parent Context. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/contexts/{context}`. +func (r *ProjectsLocationsMetadataStoresContextsService) RemoveContextChildren(context string, googlecloudaiplatformv1beta1removecontextchildrenrequest *GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { + c := &ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.context = context + c.googlecloudaiplatformv1beta1removecontextchildrenrequest = googlecloudaiplatformv1beta1removecontextchildrenrequest 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 *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -79058,21 +87863,21 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsIndexesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsIndexesOperationsWaitCall { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { 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 *ProjectsLocationsIndexesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) 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_ { @@ -79080,9 +87885,14 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*htt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1removecontextchildrenrequest) + 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/{+context}:removeContextChildren") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -79090,19 +87900,22 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "context": c.context, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.indexes.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 *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse.ServerRespo +// nse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -79121,7 +87934,7 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -79133,31 +87946,28 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp } 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}/indexes/{indexesId}/operations/{operationsId}:wait", + // "description": "Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:removeContextChildren", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.indexes.operations.wait", + // "id": "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren", // "parameterOrder": [ - // "name" + // "context" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "context": { + // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/indexes/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", // "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/{+context}:removeContextChildren", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -79166,48 +87976,38 @@ func (c *ProjectsLocationsIndexesOperationsWaitCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.metadataStores.create": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.cancel": -type ProjectsLocationsMetadataStoresCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1metadatastore *GoogleCloudAiplatformV1beta1MetadataStore - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Initializes a MetadataStore, including allocation of -// resources. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location where the MetadataStore -// should be created. Format: -// `projects/{project}/locations/{location}/`. -func (r *ProjectsLocationsMetadataStoresService) Create(parent string, googlecloudaiplatformv1beta1metadatastore *GoogleCloudAiplatformV1beta1MetadataStore) *ProjectsLocationsMetadataStoresCreateCall { - c := &ProjectsLocationsMetadataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1metadatastore = googlecloudaiplatformv1beta1metadatastore - return c -} - -// MetadataStoreId sets the optional parameter "metadataStoreId": The -// {metadatastore} portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }` If not provided, the MetadataStore's ID will be a UUID generated -// by the service. Must be 4-128 characters in length. Valid characters -// are `/a-z-/`. Must be unique across all MetadataStores in the parent -// Location. (Otherwise the request will fail with ALREADY_EXISTS, or -// PERMISSION_DENIED if the caller can't view the preexisting -// MetadataStore.) -func (c *ProjectsLocationsMetadataStoresCreateCall) MetadataStoreId(metadataStoreId string) *ProjectsLocationsMetadataStoresCreateCall { - c.urlParams_.Set("metadataStoreId", metadataStoreId) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresContextsOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsCancelCall{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 *ProjectsLocationsMetadataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -79215,21 +88015,21 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsMetadataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) 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_ { @@ -79237,14 +88037,9 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1metadatastore) - 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/{+parent}/metadataStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -79252,19 +88047,19 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) doRequest(alt string) (*http } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.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 +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -79283,7 +88078,7 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -79295,33 +88090,25 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Initializes a MetadataStore, including allocation of resources.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.create", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "metadataStoreId": { - // "description": "The {metadatastore} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataStores in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataStore.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location where the MetadataStore should be created. Format: `projects/{project}/locations/{location}/`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/metadataStores", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1MetadataStore" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -79330,9 +88117,9 @@ func (c *ProjectsLocationsMetadataStoresCreateCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.metadataStores.delete": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.delete": -type ProjectsLocationsMetadataStoresDeleteCall struct { +type ProjectsLocationsMetadataStoresContextsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -79340,29 +88127,22 @@ type ProjectsLocationsMetadataStoresDeleteCall struct { header_ http.Header } -// Delete: Deletes a single MetadataStore and all its child resources -// (Artifacts, Executions, and Contexts). +// 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 resource name of the MetadataStore to delete. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresService) Delete(name string) *ProjectsLocationsMetadataStoresDeleteCall { - c := &ProjectsLocationsMetadataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Force sets the optional parameter "force": Deprecated: Field is no -// longer supported. -func (c *ProjectsLocationsMetadataStoresDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsMetadataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -79370,21 +88150,21 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsMetadataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresDeleteCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) 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_ { @@ -79407,14 +88187,14 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.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 +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -79433,7 +88213,7 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -79445,31 +88225,25 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.delete", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "force": { - // "deprecated": true, - // "description": "Deprecated: Field is no longer supported.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The resource name of the MetadataStore to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -79478,9 +88252,9 @@ func (c *ProjectsLocationsMetadataStoresDeleteCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.metadataStores.get": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.get": -type ProjectsLocationsMetadataStoresGetCall struct { +type ProjectsLocationsMetadataStoresContextsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -79489,13 +88263,13 @@ type ProjectsLocationsMetadataStoresGetCall struct { header_ http.Header } -// Get: Retrieves a specific MetadataStore. +// 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 resource name of the MetadataStore to retrieve. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresService) Get(name string) *ProjectsLocationsMetadataStoresGetCall { - c := &ProjectsLocationsMetadataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Get(name string) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -79503,7 +88277,7 @@ func (r *ProjectsLocationsMetadataStoresService) Get(name string) *ProjectsLocat // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresGetCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -79513,7 +88287,7 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Fields(s ...googleapi.Field) *P // 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 *ProjectsLocationsMetadataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresGetCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -79521,21 +88295,21 @@ func (c *ProjectsLocationsMetadataStoresGetCall) IfNoneMatch(entityTag string) * // 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 *ProjectsLocationsMetadataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresGetCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsGetCall) 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_ { @@ -79561,16 +88335,14 @@ func (c *ProjectsLocationsMetadataStoresGetCall) doRequest(alt string) (*http.Re return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1MetadataStore or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1MetadataStore.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1MetadataStore, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresContextsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -79589,7 +88361,7 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1MetadataStore{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -79601,25 +88373,25 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption } return ret, nil // { - // "description": "Retrieves a specific MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.get", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the MetadataStore to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1MetadataStore" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -79628,41 +88400,45 @@ func (c *ProjectsLocationsMetadataStoresGetCall) Do(opts ...googleapi.CallOption } -// method id "aiplatform.projects.locations.metadataStores.list": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.list": -type ProjectsLocationsMetadataStoresListCall struct { +type ProjectsLocationsMetadataStoresContextsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists MetadataStores for a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The Location whose MetadataStores should be listed. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsMetadataStoresService) List(parent string) *ProjectsLocationsMetadataStoresListCall { - c := &ProjectsLocationsMetadataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) List(name string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of Metadata Stores to return. The service may return fewer. Must be -// in range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListMetadataStores call. -// Provide this to retrieve the subsequent page. When paginating, all -// other provided parameters must match the call that provided the page -// token. (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -79670,7 +88446,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) PageToken(pageToken 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 *ProjectsLocationsMetadataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresListCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -79680,7 +88456,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsMetadataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresListCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -79688,21 +88464,21 @@ func (c *ProjectsLocationsMetadataStoresListCall) IfNoneMatch(entityTag string) // 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 *ProjectsLocationsMetadataStoresListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresListCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsListCall { 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 *ProjectsLocationsMetadataStoresListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) 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_ { @@ -79715,7 +88491,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.R var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/metadataStores") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -79723,22 +88499,20 @@ func (c *ProjectsLocationsMetadataStoresListCall) doRequest(alt string) (*http.R } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListMetadataStoresResponse or error will +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 -// *GoogleCloudAiplatformV1beta1ListMetadataStoresResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListMetadataStoresResponse, error) { +// *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 *ProjectsLocationsMetadataStoresContextsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -79757,7 +88531,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListMetadataStoresResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -79769,36 +88543,41 @@ func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists MetadataStores for a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.list", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.list", // "parameterOrder": [ - // "parent" + // "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/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "required": true, + // "type": "string" + // }, // "pageSize": { - // "description": "The maximum number of Metadata Stores to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListMetadataStores call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The Location whose MetadataStores should be listed. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/metadataStores", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListMetadataStoresResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -79810,7 +88589,7 @@ func (c *ProjectsLocationsMetadataStoresListCall) Do(opts ...googleapi.CallOptio // 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 *ProjectsLocationsMetadataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListMetadataStoresResponse) error) error { +func (c *ProjectsLocationsMetadataStoresContextsOperationsListCall) 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 { @@ -79828,48 +88607,47 @@ func (c *ProjectsLocationsMetadataStoresListCall) Pages(ctx context.Context, f f } } -// method id "aiplatform.projects.locations.metadataStores.artifacts.create": +// method id "aiplatform.projects.locations.metadataStores.contexts.operations.wait": -type ProjectsLocationsMetadataStoresArtifactsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresContextsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates an Artifact associated with a MetadataStore. +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. // -// - parent: The resource name of the MetadataStore where the Artifact -// should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Create(parent string, googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact) *ProjectsLocationsMetadataStoresArtifactsCreateCall { - c := &ProjectsLocationsMetadataStoresArtifactsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1artifact = googlecloudaiplatformv1beta1artifact +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMetadataStoresContextsOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresContextsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// ArtifactId sets the optional parameter "artifactId": The {artifact} -// portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/artifacts/{artifact}` If not provided, the Artifact's ID will be a -// UUID generated by the service. Must be 4-128 characters in length. -// Valid characters are `/a-z-/`. Must be unique across all Artifacts in -// the parent MetadataStore. (Otherwise the request will fail with -// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the -// preexisting Artifact.) -func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) ArtifactId(artifactId string) *ProjectsLocationsMetadataStoresArtifactsCreateCall { - c.urlParams_.Set("artifactId", artifactId) +// 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 *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { + 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -79877,21 +88655,21 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsCreateCall { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresArtifactsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) 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_ { @@ -79899,14 +88677,9 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1artifact) - 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/{+parent}/artifacts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -79914,20 +88687,19 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) doRequest(alt strin } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Artifact or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Artifact.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Artifact, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 *ProjectsLocationsMetadataStoresContextsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -79946,7 +88718,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Artifact{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -79958,33 +88730,31 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleap } return ret, nil // { - // "description": "Creates an Artifact associated with a MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", + // "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}/metadataStores/{metadataStoresId}/contexts/{contextsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.create", + // "id": "aiplatform.projects.locations.metadataStores.contexts.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "artifactId": { - // "description": "The {artifact} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` If not provided, the Artifact's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Artifacts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Artifact.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the MetadataStore where the Artifact should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+/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/{+parent}/artifacts", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Artifact" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Artifact" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -79993,39 +88763,37 @@ func (c *ProjectsLocationsMetadataStoresArtifactsCreateCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.artifacts.delete": +// method id "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents": -type ProjectsLocationsMetadataStoresArtifactsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall struct { + s *Service + execution string + googlecloudaiplatformv1beta1addexecutioneventsrequest *GoogleCloudAiplatformV1beta1AddExecutionEventsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes an Artifact. +// AddExecutionEvents: Adds Events to the specified Execution. An Event +// indicates whether an Artifact was used as an input or output for an +// Execution. If an Event already exists between the Execution and the +// Artifact, the Event is skipped. // -// - name: The resource name of the Artifact to delete. Format: +// - execution: The resource name of the Execution that the Events +// connect Artifacts with. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/artifacts/{artifact}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Delete(name string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { - c := &ProjectsLocationsMetadataStoresArtifactsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Etag sets the optional parameter "etag": The etag of the Artifact to -// delete. If this is provided, it must match the server's etag. -// Otherwise, the request will fail with a FAILED_PRECONDITION. -func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { - c.urlParams_.Set("etag", etag) +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) AddExecutionEvents(execution string, googlecloudaiplatformv1beta1addexecutioneventsrequest *GoogleCloudAiplatformV1beta1AddExecutionEventsRequest) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { + c := &ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.execution = execution + c.googlecloudaiplatformv1beta1addexecutioneventsrequest = googlecloudaiplatformv1beta1addexecutioneventsrequest 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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -80033,21 +88801,21 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) 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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { 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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) 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_ { @@ -80055,29 +88823,37 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1addexecutioneventsrequest) + 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/{+execution}:addExecutionEvents") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "execution": c.execution, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.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 *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1AddExecutionEventsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1AddExecutionEventsResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AddExecutionEventsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -80096,7 +88872,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1AddExecutionEventsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -80108,30 +88884,28 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Deletes an Artifact.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.delete", + // "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", // "parameterOrder": [ - // "name" + // "execution" // ], // "parameters": { - // "etag": { - // "description": "Optional. The etag of the Artifact to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "Required. The resource name of the Artifact to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", + // "execution": { + // "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+execution}:addExecutionEvents", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -80140,98 +88914,106 @@ func (c *ProjectsLocationsMetadataStoresArtifactsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.artifacts.get": +// method id "aiplatform.projects.locations.metadataStores.executions.create": -type ProjectsLocationsMetadataStoresArtifactsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Retrieves a specific Artifact. +// Create: Creates an Execution associated with a MetadataStore. // -// - name: The resource name of the Artifact to retrieve. Format: +// - parent: The resource name of the MetadataStore where the Execution +// should be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/artifacts/{artifact}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Get(name string) *ProjectsLocationsMetadataStoresArtifactsGetCall { - c := &ProjectsLocationsMetadataStoresArtifactsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// re}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Create(parent string, googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution) *ProjectsLocationsMetadataStoresExecutionsCreateCall { + c := &ProjectsLocationsMetadataStoresExecutionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1execution = googlecloudaiplatformv1beta1execution + return c +} + +// ExecutionId sets the optional parameter "executionId": The +// {execution} portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }/executions/{execution}` If not provided, the Execution's ID will be +// a UUID generated by the service. Must be 4-128 characters in length. +// Valid characters are `/a-z-/`. Must be unique across all Executions +// in the parent MetadataStore. (Otherwise the request will fail with +// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the +// preexisting Execution.) +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) ExecutionId(executionId string) *ProjectsLocationsMetadataStoresExecutionsCreateCall { + c.urlParams_.Set("executionId", executionId) 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsCreateCall { 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsGetCall { - 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsCreateCall { 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 *ProjectsLocationsMetadataStoresArtifactsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) 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_) - } + reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1execution) + 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}/executions") 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.metadataStores.artifacts.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Artifact or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Artifact.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Artifact, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Execution or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1Execution.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Execution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -80250,7 +89032,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Artifact{ + ret := &GoogleCloudAiplatformV1beta1Execution{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -80262,25 +89044,33 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Retrieves a specific Artifact.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.get", + // "description": "Creates an Execution associated with a MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.executions.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the Artifact to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`", + // "executionId": { + // "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/executions", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Execution" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Artifact" + // "$ref": "GoogleCloudAiplatformV1beta1Execution" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -80289,156 +89079,91 @@ func (c *ProjectsLocationsMetadataStoresArtifactsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.metadataStores.artifacts.list": +// method id "aiplatform.projects.locations.metadataStores.executions.delete": -type ProjectsLocationsMetadataStoresArtifactsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Artifacts in the MetadataStore. +// Delete: Deletes an Execution. // -// - parent: The MetadataStore whose Artifacts should be listed. Format: +// - name: The resource name of the Execution to delete. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) List(parent string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c := &ProjectsLocationsMetadataStoresArtifactsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Artifacts to satisfy in order to be part of -// the result set. The syntax to define filter query is based on -// https://google.aip.dev/160. The supported set of filters include the -// following: * **Attribute filtering**: For example: `display_name = -// "test". Supported fields include: `name`, `display_name`, `uri`, -// `state`, `schema_title`, `create_time`, and `update_time`. Time -// fields, such as `create_time` and `update_time`, require values -// specified in RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..`. For -// example: `metadata.field_1.number_value = 10.0` In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` * **Context based filtering**: To filter Artifacts based on the -// contexts to which they belong, use the function operator with the -// full resource name `in_context()`. For example: -// `in_context("projects//locations//metadataStores//contexts/")` Each -// of the above supported filter types can be combined together using -// logical operators (`AND` & `OR`). Maximum nested expression depth -// allowed is 5. For example: `display_name = "test" AND -// metadata.field1.bool_value = true`. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": How the list of -// messages is ordered. Specify the values to order by and an ordering -// operation. The default sorting order is ascending. To specify -// descending order for a field, users append a " desc" suffix; for -// example: "foo desc, bar". Subfields are specified with a `.` -// character, such as foo.bar. see https://google.aip.dev/132#ordering -// for more details. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Artifacts to return. The service may return fewer. Must be in -// range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Delete(name string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { + c := &ProjectsLocationsMetadataStoresExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListArtifacts call. Provide -// this to retrieve the subsequent page. When paginating, all other -// provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresArtifactsListCall { - c.urlParams_.Set("pageToken", pageToken) +// Etag sets the optional parameter "etag": The etag of the Execution to +// delete. If this is provided, it must match the server's etag. +// Otherwise, the request will fail with a FAILED_PRECONDITION. +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { + c.urlParams_.Set("etag", etag) 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { 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 *ProjectsLocationsMetadataStoresArtifactsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsListCall { - 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) 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/{+parent}/artifacts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListArtifactsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListArtifactsResponse.ServerResponse.Head -// er or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListArtifactsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -80457,7 +89182,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListArtifactsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -80469,46 +89194,30 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists Artifacts in the MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.list", + // "description": "Deletes an Execution.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.metadataStores.executions.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Artifacts based on the contexts to which they belong, use the function operator with the full resource name `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of Artifacts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListArtifacts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "etag": { + // "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", // "location": "query", // "type": "string" // }, - // "parent": { - // "description": "Required. The MetadataStore whose Artifacts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/artifacts", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListArtifactsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -80517,105 +89226,79 @@ func (c *ProjectsLocationsMetadataStoresArtifactsListCall) 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 *ProjectsLocationsMetadataStoresArtifactsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListArtifactsResponse) 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.metadataStores.artifacts.patch": +// method id "aiplatform.projects.locations.metadataStores.executions.get": -type ProjectsLocationsMetadataStoresArtifactsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates a stored Artifact. +// Get: Retrieves a specific Execution. // -// - name: Output only. The resource name of the Artifact. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Patch(name string, googlecloudaiplatformv1beta1artifact *GoogleCloudAiplatformV1beta1Artifact) *ProjectsLocationsMetadataStoresArtifactsPatchCall { - c := &ProjectsLocationsMetadataStoresArtifactsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Execution to retrieve. Format: +// `projects/{project}/locations/{location}/metadataStores/{metadatasto +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Get(name string) *ProjectsLocationsMetadataStoresExecutionsGetCall { + c := &ProjectsLocationsMetadataStoresExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1artifact = googlecloudaiplatformv1beta1artifact - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set to -// true, and the Artifact is not found, a new Artifact is created. -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresArtifactsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) - return c -} - -// UpdateMask sets the optional parameter "updateMask": A FieldMask -// indicating which fields should be updated. -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresArtifactsPatchCall { - 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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsGetCall { 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsGetCall { + 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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsGetCall { 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 *ProjectsLocationsMetadataStoresArtifactsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1artifact) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -80626,15 +89309,15 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Artifact or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Artifact.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Artifact, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Execution or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1Execution.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Execution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -80653,7 +89336,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Artifact{ + ret := &GoogleCloudAiplatformV1beta1Execution{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -80665,39 +89348,25 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Updates a stored Artifact.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.patch", + // "description": "Retrieves a specific Execution.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.executions.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "allowMissing": { - // "description": "If set to true, and the Artifact is not found, a new Artifact is created.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Output only. The resource name of the Artifact.", + // "description": "Required. The resource name of the Execution to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Optional. A FieldMask indicating which fields should be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Artifact" - // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Artifact" + // "$ref": "GoogleCloudAiplatformV1beta1Execution" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -80706,72 +89375,137 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPatchCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.artifacts.purge": +// method id "aiplatform.projects.locations.metadataStores.executions.list": -type ProjectsLocationsMetadataStoresArtifactsPurgeCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1purgeartifactsrequest *GoogleCloudAiplatformV1beta1PurgeArtifactsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Purge: Purges Artifacts. +// List: Lists Executions in the MetadataStore. // -// - parent: The metadata store to purge Artifacts from. Format: +// - parent: The MetadataStore whose Executions should be listed. +// Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto // re}`. -func (r *ProjectsLocationsMetadataStoresArtifactsService) Purge(parent string, googlecloudaiplatformv1beta1purgeartifactsrequest *GoogleCloudAiplatformV1beta1PurgeArtifactsRequest) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { - c := &ProjectsLocationsMetadataStoresArtifactsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresExecutionsService) List(parent string) *ProjectsLocationsMetadataStoresExecutionsListCall { + c := &ProjectsLocationsMetadataStoresExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1purgeartifactsrequest = googlecloudaiplatformv1beta1purgeartifactsrequest + return c +} + +// Filter sets the optional parameter "filter": Filter specifying the +// boolean condition for the Executions to satisfy in order to be part +// of the result set. The syntax to define filter query is based on +// https://google.aip.dev/160. Following are the supported set of +// filters: * **Attribute filtering**: For example: `display_name = +// "test". Supported fields include: `name`, `display_name`, `state`, +// `schema_title`, `create_time`, and `update_time`. Time fields, such +// as `create_time` and `update_time`, require values specified in +// RFC-3339 format. For example: `create_time = +// "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on +// metadata fields use traversal operation as follows: `metadata..` For +// example: `metadata.field_1.number_value = 10.0` In case the field +// name contains special characters (such as colon), one can embed it +// inside double quote. For example: `metadata."field:1".number_value = +// 10.0` * **Context based filtering**: To filter Executions based on +// the contexts to which they belong use the function operator with the +// full resource name: `in_context()`. For example: +// `in_context("projects//locations//metadataStores//contexts/")` Each +// of the above supported filters can be combined together using logical +// operators (`AND` & `OR`). Maximum nested expression depth allowed is +// 5. For example: `display_name = "test" AND metadata.field1.bool_value +// = true`. +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresExecutionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": How the list of +// messages is ordered. Specify the values to order by and an ordering +// operation. The default sorting order is ascending. To specify +// descending order for a field, users append a " desc" suffix; for +// example: "foo desc, bar". Subfields are specified with a `.` +// character, such as foo.bar. see https://google.aip.dev/132#ordering +// for more details. +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresExecutionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Executions to return. The service may return fewer. Must be in +// range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListExecutions call. Provide +// this to retrieve the subsequent page. When paginating, all other +// provided parameters must match the call that provided the page token. +// (Otherwise the request will fail with an INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresExecutionsListCall { + 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsListCall { 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 *ProjectsLocationsMetadataStoresExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsListCall { + 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsPurgeCall { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsListCall { 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1purgeartifactsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/artifacts:purge") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/executions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -80782,14 +89516,16 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.purge" 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 *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListExecutionsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListExecutionsResponse.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 *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListExecutionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -80808,7 +89544,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListExecutionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -80820,28 +89556,46 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Purges Artifacts.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts:purge", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.purge", + // "description": "Lists Executions in the MetadataStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.executions.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "filter": { + // "description": "Filter specifying the boolean condition for the Executions to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Executions based on the contexts to which they belong use the function operator with the full resource name: `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Executions to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous MetadataService.ListExecutions call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with an INVALID_ARGUMENT error.)", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The metadata store to purge Artifacts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The MetadataStore whose Executions should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/artifacts:purge", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PurgeArtifactsRequest" - // }, + // "path": "v1beta1/{+parent}/executions", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListExecutionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -80850,138 +89604,124 @@ func (c *ProjectsLocationsMetadataStoresArtifactsPurgeCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph": +// 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListExecutionsResponse) 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) + } +} -type ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall struct { - s *Service - artifact string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.metadataStores.executions.patch": + +type ProjectsLocationsMetadataStoresExecutionsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryArtifactLineageSubgraph: Retrieves lineage of an Artifact -// represented through Artifacts and Executions connected by Event edges -// and returned as a LineageSubgraph. +// Patch: Updates a stored Execution. // -// - artifact: The resource name of the Artifact whose Lineage needs to -// be retrieved as a LineageSubgraph. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/artifacts/{artifact}` The request may error with -// FAILED_PRECONDITION if the number of Artifacts, the number of -// Executions, or the number of Events that would be returned for the -// Context exceeds 1000. -func (r *ProjectsLocationsMetadataStoresArtifactsService) QueryArtifactLineageSubgraph(artifact string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { - c := &ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.artifact = artifact +// - name: Output only. The resource name of the Execution. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Patch(name string, googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution) *ProjectsLocationsMetadataStoresExecutionsPatchCall { + c := &ProjectsLocationsMetadataStoresExecutionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1execution = googlecloudaiplatformv1beta1execution return c } -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Artifacts to satisfy in order to be part of -// the Lineage Subgraph. The syntax to define filter query is based on -// https://google.aip.dev/160. The supported set of filters include the -// following: * **Attribute filtering**: For example: `display_name = -// "test" Supported fields include: `name`, `display_name`, `uri`, -// `state`, `schema_title`, `create_time`, and `update_time`. Time -// fields, such as `create_time` and `update_time`, require values -// specified in RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00" * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..`. For -// example: `metadata.field_1.number_value = 10.0` In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` Each of the above supported filter types can be combined -// together using logical operators (`AND` & `OR`). Maximum nested -// expression depth allowed is 5. For example: `display_name = "test" -// AND metadata.field1.bool_value = true`. -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Filter(filter string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { - c.urlParams_.Set("filter", filter) +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, and the Execution is not found, a new Execution is created. +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresExecutionsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } -// MaxHops sets the optional parameter "maxHops": Specifies the size of -// the lineage graph in terms of number of hops from the specified -// artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only -// input artifact is returned. No value: Transitive closure is performed -// to return the complete graph. -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) MaxHops(maxHops int64) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { - c.urlParams_.Set("maxHops", fmt.Sprint(maxHops)) +// UpdateMask sets the optional parameter "updateMask": A FieldMask +// indicating which fields should be updated. +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresExecutionsPatchCall { + 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPatchCall { 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { - 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPatchCall { 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 *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) 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.googlecloudaiplatformv1beta1execution) + 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/{+artifact}:queryArtifactLineageSubgraph") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "artifact": c.artifact, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph" call. -// Exactly one of *GoogleCloudAiplatformV1beta1LineageSubgraph or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1LineageSubgraph.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1LineageSubgraph, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Execution or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1Execution.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Execution, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81000,7 +89740,7 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1LineageSubgraph{ + ret := &GoogleCloudAiplatformV1beta1Execution{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -81012,36 +89752,39 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal } return ret, nil // { - // "description": "Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/artifacts/{artifactsId}:queryArtifactLineageSubgraph", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.artifacts.queryArtifactLineageSubgraph", + // "description": "Updates a stored Execution.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.metadataStores.executions.patch", // "parameterOrder": [ - // "artifact" + // "name" // ], // "parameters": { - // "artifact": { - // "description": "Required. The resource name of the Artifact whose Lineage needs to be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", + // "allowMissing": { + // "description": "If set to true, and the Execution is not found, a new Execution is created.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Output only. The resource name of the Execution.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/artifacts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // }, - // "filter": { - // "description": "Filter specifying the boolean condition for the Artifacts to satisfy in order to be part of the Lineage Subgraph. The syntax to define filter query is based on https://google.aip.dev/160. The supported set of filters include the following: * **Attribute filtering**: For example: `display_name = \"test\"` Supported fields include: `name`, `display_name`, `uri`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"` * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` Each of the above supported filter types can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "updateMask": { + // "description": "Optional. A FieldMask indicating which fields should be updated.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" - // }, - // "maxHops": { - // "description": "Specifies the size of the lineage graph in terms of number of hops from the specified artifact. Negative Value: INVALID_ARGUMENT error is returned 0: Only input artifact is returned. No value: Transitive closure is performed to return the complete graph.", - // "format": "int32", - // "location": "query", - // "type": "integer" // } // }, - // "path": "v1beta1/{+artifact}:queryArtifactLineageSubgraph", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Execution" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1LineageSubgraph" + // "$ref": "GoogleCloudAiplatformV1beta1Execution" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -81050,36 +89793,33 @@ func (c *ProjectsLocationsMetadataStoresArtifactsQueryArtifactLineageSubgraphCal } -// method id "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions": +// method id "aiplatform.projects.locations.metadataStores.executions.purge": -type ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall struct { - s *Service - context string - googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsPurgeCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1purgeexecutionsrequest *GoogleCloudAiplatformV1beta1PurgeExecutionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// AddContextArtifactsAndExecutions: Adds a set of Artifacts and -// Executions to a Context. If any of the Artifacts or Executions have -// already been added to a Context, they are simply skipped. +// Purge: Purges Executions. // -// - context: The resource name of the Context that the Artifacts and -// Executions belong to. Format: +// - parent: The metadata store to purge Executions from. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) AddContextArtifactsAndExecutions(context string, googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { - c := &ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context - c.googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest = googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest +// re}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) Purge(parent string, googlecloudaiplatformv1beta1purgeexecutionsrequest *GoogleCloudAiplatformV1beta1PurgeExecutionsRequest) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { + c := &ProjectsLocationsMetadataStoresExecutionsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1purgeexecutionsrequest = googlecloudaiplatformv1beta1purgeexecutionsrequest 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -81087,21 +89827,21 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions // 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall { +func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { 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 *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) 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_ { @@ -81109,14 +89849,14 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1addcontextartifactsandexecutionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1purgeexecutionsrequest) 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/{+context}:addContextArtifactsAndExecutions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/executions:purge") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -81124,22 +89864,19 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse. -// ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.purge" 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81158,7 +89895,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -81170,28 +89907,28 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } return ret, nil // { - // "description": "Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextArtifactsAndExecutions", + // "description": "Purges Executions.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions:purge", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions", + // "id": "aiplatform.projects.locations.metadataStores.executions.purge", // "parameterOrder": [ - // "context" + // "parent" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the Context that the Artifacts and Executions belong to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "parent": { + // "description": "Required. The metadata store to purge Executions from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+context}:addContextArtifactsAndExecutions", + // "path": "v1beta1/{+parent}/executions:purge", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsRequest" + // "$ref": "GoogleCloudAiplatformV1beta1PurgeExecutionsRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1AddContextArtifactsAndExecutionsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -81200,97 +89937,102 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextArtifactsAndExecutions } -// method id "aiplatform.projects.locations.metadataStores.contexts.addContextChildren": +// method id "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs": -type ProjectsLocationsMetadataStoresContextsAddContextChildrenCall struct { - s *Service - context string - googlecloudaiplatformv1beta1addcontextchildrenrequest *GoogleCloudAiplatformV1beta1AddContextChildrenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall struct { + s *Service + execution string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AddContextChildren: Adds a set of Contexts as children to a parent -// Context. If any of the child Contexts have already been added to the -// parent Context, they are simply skipped. If this call would create a -// cycle or cause any Context to have more than 10 parents, the request -// will fail with an INVALID_ARGUMENT error. +// QueryExecutionInputsAndOutputs: Obtains the set of input and output +// Artifacts for this Execution, in the form of LineageSubgraph that +// also contains the Execution and connecting Events. // -// - context: The resource name of the parent Context. Format: +// - execution: The resource name of the Execution whose input and +// output Artifacts should be retrieved as a LineageSubgraph. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) AddContextChildren(context string, googlecloudaiplatformv1beta1addcontextchildrenrequest *GoogleCloudAiplatformV1beta1AddContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { - c := &ProjectsLocationsMetadataStoresContextsAddContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context - c.googlecloudaiplatformv1beta1addcontextchildrenrequest = googlecloudaiplatformv1beta1addcontextchildrenrequest +// re}/executions/{execution}`. +func (r *ProjectsLocationsMetadataStoresExecutionsService) QueryExecutionInputsAndOutputs(execution string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { + c := &ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.execution = execution 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { + 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { 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 *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1addcontextchildrenrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+context}:addContextChildren") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+execution}:queryExecutionInputsAndOutputs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "execution": c.execution, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.addContextChildren" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1AddContextChildrenResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1AddContextChildrenResponse.ServerResponse -// .Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs" call. +// Exactly one of *GoogleCloudAiplatformV1beta1LineageSubgraph or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1LineageSubgraph.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AddContextChildrenResponse, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1LineageSubgraph, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81309,7 +90051,7 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1AddContextChildrenResponse{ + ret := &GoogleCloudAiplatformV1beta1LineageSubgraph{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -81321,28 +90063,25 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts } return ret, nil // { - // "description": "Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:addContextChildren", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.addContextChildren", + // "description": "Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:queryExecutionInputsAndOutputs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs", // "parameterOrder": [ - // "context" + // "execution" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "execution": { + // "description": "Required. The resource name of the Execution whose input and output Artifacts should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+context}:addContextChildren", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1AddContextChildrenRequest" - // }, + // "path": "v1beta1/{+execution}:queryExecutionInputsAndOutputs", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1AddContextChildrenResponse" + // "$ref": "GoogleCloudAiplatformV1beta1LineageSubgraph" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -81351,48 +90090,38 @@ func (c *ProjectsLocationsMetadataStoresContextsAddContextChildrenCall) Do(opts } -// method id "aiplatform.projects.locations.metadataStores.contexts.create": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.cancel": -type ProjectsLocationsMetadataStoresContextsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a Context associated with a MetadataStore. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the MetadataStore where the Context -// should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Create(parent string, googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context) *ProjectsLocationsMetadataStoresContextsCreateCall { - c := &ProjectsLocationsMetadataStoresContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1context = googlecloudaiplatformv1beta1context - return c -} - -// ContextId sets the optional parameter "contextId": The {context} -// portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/contexts/{context}`. If not provided, the Context's ID will be a -// UUID generated by the service. Must be 4-128 characters in length. -// Valid characters are `/a-z-/`. Must be unique across all Contexts in -// the parent MetadataStore. (Otherwise the request will fail with -// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the -// preexisting Context.) -func (c *ProjectsLocationsMetadataStoresContextsCreateCall) ContextId(contextId string) *ProjectsLocationsMetadataStoresContextsCreateCall { - c.urlParams_.Set("contextId", contextId) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall{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 *ProjectsLocationsMetadataStoresContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsCreateCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -81400,21 +90129,21 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Fields(s ...googleap // 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 *ProjectsLocationsMetadataStoresContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsCreateCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresContextsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) 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_ { @@ -81422,14 +90151,9 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1context) - 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/{+parent}/contexts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -81437,20 +90161,19 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) doRequest(alt string } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Context or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Context.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Context, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81469,7 +90192,7 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Context{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -81481,33 +90204,25 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Creates a Context associated with a MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.create", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "contextId": { - // "description": "The {context} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`. If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the MetadataStore where the Context should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/contexts", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Context" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Context" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -81516,9 +90231,9 @@ func (c *ProjectsLocationsMetadataStoresContextsCreateCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.contexts.delete": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.delete": -type ProjectsLocationsMetadataStoresContextsDeleteCall struct { +type ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -81526,36 +90241,22 @@ type ProjectsLocationsMetadataStoresContextsDeleteCall struct { header_ http.Header } -// Delete: Deletes a stored Context. +// 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 resource name of the Context to delete. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Delete(name string) *ProjectsLocationsMetadataStoresContextsDeleteCall { - c := &ProjectsLocationsMetadataStoresContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Etag sets the optional parameter "etag": The etag of the Context to -// delete. If this is provided, it must match the server's etag. -// Otherwise, the request will fail with a FAILED_PRECONDITION. -func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresContextsDeleteCall { - c.urlParams_.Set("etag", etag) - return c -} - -// Force sets the optional parameter "force": The force deletion -// semantics is still undefined. Users should not use this field. -func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Force(force bool) *ProjectsLocationsMetadataStoresContextsDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - 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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -81563,21 +90264,21 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Fields(s ...googleap // 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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsDeleteCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) 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_ { @@ -81600,14 +90301,14 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.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 +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81626,7 +90327,7 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -81638,35 +90339,25 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Deletes a stored Context.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.contexts.delete", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "etag": { - // "description": "Optional. The etag of the Context to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", - // "location": "query", - // "type": "string" - // }, - // "force": { - // "description": "The force deletion semantics is still undefined. Users should not use this field.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The resource name of the Context to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -81675,9 +90366,9 @@ func (c *ProjectsLocationsMetadataStoresContextsDeleteCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.metadataStores.contexts.get": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.get": -type ProjectsLocationsMetadataStoresContextsGetCall struct { +type ProjectsLocationsMetadataStoresExecutionsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -81686,13 +90377,13 @@ type ProjectsLocationsMetadataStoresContextsGetCall struct { header_ http.Header } -// Get: Retrieves a specific Context. +// 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 resource name of the Context to retrieve. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Get(name string) *ProjectsLocationsMetadataStoresContextsGetCall { - c := &ProjectsLocationsMetadataStoresContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Get(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -81700,7 +90391,7 @@ func (r *ProjectsLocationsMetadataStoresContextsService) Get(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -81710,7 +90401,7 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Fields(s ...googleapi.F // 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 *ProjectsLocationsMetadataStoresContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -81718,21 +90409,21 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) IfNoneMatch(entityTag 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 *ProjectsLocationsMetadataStoresContextsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsGetCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall { 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 *ProjectsLocationsMetadataStoresContextsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) 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_ { @@ -81758,15 +90449,14 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Context or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Context.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Context, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81785,7 +90475,7 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Context{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -81797,25 +90487,25 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Retrieves a specific Context.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.contexts.get", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Context to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Context" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -81824,81 +90514,45 @@ func (c *ProjectsLocationsMetadataStoresContextsGetCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.metadataStores.contexts.list": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.list": -type ProjectsLocationsMetadataStoresContextsListCall struct { +type ProjectsLocationsMetadataStoresExecutionsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Contexts on the MetadataStore. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The MetadataStore whose Contexts should be listed. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresContextsService) List(parent string) *ProjectsLocationsMetadataStoresContextsListCall { - c := &ProjectsLocationsMetadataStoresContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) List(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Contexts to satisfy in order to be part of -// the result set. The syntax to define filter query is based on -// https://google.aip.dev/160. Following are the supported set of -// filters: * **Attribute filtering**: For example: `display_name = -// "test". Supported fields include: `name`, `display_name`, -// `schema_title`, `create_time`, and `update_time`. Time fields, such -// as `create_time` and `update_time`, require values specified in -// RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..`. For -// example: `metadata.field_1.number_value = 10.0`. In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` * **Parent Child filtering**: To filter Contexts based on -// parent-child relationship use the HAS operator as follows: ``` -// parent_contexts: "projects//locations//metadataStores//contexts/" -// child_contexts: "projects//locations//metadataStores//contexts/" ``` -// Each of the above supported filters can be combined together using -// logical operators (`AND` & `OR`). Maximum nested expression depth -// allowed is 5. For example: `display_name = "test" AND -// metadata.field1.bool_value = true`. -func (c *ProjectsLocationsMetadataStoresContextsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresContextsListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": How the list of -// messages is ordered. Specify the values to order by and an ordering -// operation. The default sorting order is ascending. To specify -// descending order for a field, users append a " desc" suffix; for -// example: "foo desc, bar". Subfields are specified with a `.` -// character, such as foo.bar. see https://google.aip.dev/132#ordering -// for more details. -func (c *ProjectsLocationsMetadataStoresContextsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresContextsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Contexts to return. The service may return fewer. Must be in range -// 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresContextsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresContextsListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListContexts call. Provide -// this to retrieve the subsequent page. When paginating, all other -// provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresContextsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresContextsListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -81906,7 +90560,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) PageToken(pageToken st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -81916,7 +90570,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) 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 *ProjectsLocationsMetadataStoresContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -81924,21 +90578,21 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) 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 *ProjectsLocationsMetadataStoresContextsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsListCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsListCall { 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 *ProjectsLocationsMetadataStoresContextsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) 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_ { @@ -81951,7 +90605,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/contexts") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -81959,21 +90613,20 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListContextsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListContextsResponse.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListContextsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -81992,7 +90645,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListContextsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -82004,46 +90657,41 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Lists Contexts on the MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.contexts.list", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Filter specifying the boolean condition for the Contexts to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..`. For example: `metadata.field_1.number_value = 10.0`. In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Parent Child filtering**: To filter Contexts based on parent-child relationship use the HAS operator as follows: ``` parent_contexts: \"projects//locations//metadataStores//contexts/\" child_contexts: \"projects//locations//metadataStores//contexts/\" ``` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Contexts to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListContexts call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The MetadataStore whose Contexts should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/contexts", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListContextsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -82055,7 +90703,7 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Do(opts ...googleapi.C // 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 *ProjectsLocationsMetadataStoresContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListContextsResponse) error) error { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsListCall) 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 { @@ -82073,45 +90721,47 @@ func (c *ProjectsLocationsMetadataStoresContextsListCall) Pages(ctx context.Cont } } -// method id "aiplatform.projects.locations.metadataStores.contexts.patch": +// method id "aiplatform.projects.locations.metadataStores.executions.operations.wait": -type ProjectsLocationsMetadataStoresContextsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a stored Context. +// 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: Immutable. The resource name of the Context. -func (r *ProjectsLocationsMetadataStoresContextsService) Patch(name string, googlecloudaiplatformv1beta1context *GoogleCloudAiplatformV1beta1Context) *ProjectsLocationsMetadataStoresContextsPatchCall { - c := &ProjectsLocationsMetadataStoresContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMetadataStoresExecutionsOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1context = googlecloudaiplatformv1beta1context - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set to -// true, and the Context is not found, a new Context is created. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresContextsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } -// UpdateMask sets the optional parameter "updateMask": A FieldMask -// indicating which fields should be updated. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresContextsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { + 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 *ProjectsLocationsMetadataStoresContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -82119,21 +90769,21 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) 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 *ProjectsLocationsMetadataStoresContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPatchCall { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresContextsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) 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_ { @@ -82141,16 +90791,11 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1context) - 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -82161,15 +90806,14 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Context or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Context.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Context, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 *ProjectsLocationsMetadataStoresExecutionsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -82188,7 +90832,7 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Context{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -82200,39 +90844,31 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Updates a stored Context.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.metadataStores.contexts.patch", + // "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}/metadataStores/{metadataStoresId}/executions/{executionsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.executions.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { - // "allowMissing": { - // "description": "If set to true, and the Context is not found, a new Context is created.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Immutable. The resource name of the Context.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Optional. A FieldMask indicating which fields should be updated.", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Context" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Context" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -82241,249 +90877,107 @@ func (c *ProjectsLocationsMetadataStoresContextsPatchCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.metadataStores.contexts.purge": +// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.create": -type ProjectsLocationsMetadataStoresContextsPurgeCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1purgecontextsrequest *GoogleCloudAiplatformV1beta1PurgeContextsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresMetadataSchemasCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1metadataschema *GoogleCloudAiplatformV1beta1MetadataSchema + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Purge: Purges Contexts. +// Create: Creates a MetadataSchema. // -// - parent: The metadata store to purge Contexts from. Format: +// - parent: The resource name of the MetadataStore where the +// MetadataSchema should be created. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto // re}`. -func (r *ProjectsLocationsMetadataStoresContextsService) Purge(parent string, googlecloudaiplatformv1beta1purgecontextsrequest *GoogleCloudAiplatformV1beta1PurgeContextsRequest) *ProjectsLocationsMetadataStoresContextsPurgeCall { - c := &ProjectsLocationsMetadataStoresContextsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Create(parent string, googlecloudaiplatformv1beta1metadataschema *GoogleCloudAiplatformV1beta1MetadataSchema) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { + c := &ProjectsLocationsMetadataStoresMetadataSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1purgecontextsrequest = googlecloudaiplatformv1beta1purgecontextsrequest - 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsPurgeCall { - 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsPurgeCall { - c.ctx_ = ctx + c.googlecloudaiplatformv1beta1metadataschema = googlecloudaiplatformv1beta1metadataschema return c } -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsMetadataStoresContextsPurgeCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1purgecontextsrequest) - 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/{+parent}/contexts:purge") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.purge" 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 *ProjectsLocationsMetadataStoresContextsPurgeCall) 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": "Purges Contexts.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts:purge", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.purge", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The metadata store to purge Contexts from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/contexts:purge", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PurgeContextsRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph": - -type ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall struct { - s *Service - context string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// QueryContextLineageSubgraph: Retrieves Artifacts and Executions -// within the specified Context, connected by Event edges and returned -// as a LineageSubgraph. -// -// - context: The resource name of the Context whose Artifacts and -// Executions should be retrieved as a LineageSubgraph. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}` The request may error with -// FAILED_PRECONDITION if the number of Artifacts, the number of -// Executions, or the number of Events that would be returned for the -// Context exceeds 1000. -func (r *ProjectsLocationsMetadataStoresContextsService) QueryContextLineageSubgraph(context string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { - c := &ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context +// MetadataSchemaId sets the optional parameter "metadataSchemaId": The +// {metadata_schema} portion of the resource name with the format: +// `projects/{project}/locations/{location}/metadataStores/{metadatastore +// }/metadataSchemas/{metadataschema}` If not provided, the +// MetadataStore's ID will be a UUID generated by the service. Must be +// 4-128 characters in length. Valid characters are `/a-z-/`. Must be +// unique across all MetadataSchemas in the parent Location. (Otherwise +// the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if +// the caller can't view the preexisting MetadataSchema.) +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) MetadataSchemaId(metadataSchemaId string) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { + c.urlParams_.Set("metadataSchemaId", metadataSchemaId) 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { - 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { 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 *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) 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.googlecloudaiplatformv1beta1metadataschema) + 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/{+context}:queryContextLineageSubgraph") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/metadataSchemas") 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{ - "context": c.context, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph" call. -// Exactly one of *GoogleCloudAiplatformV1beta1LineageSubgraph or error +// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1MetadataSchema or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1LineageSubgraph.ServerResponse.Header or +// *GoogleCloudAiplatformV1beta1MetadataSchema.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1LineageSubgraph, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1MetadataSchema, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -82502,7 +90996,7 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1LineageSubgraph{ + ret := &GoogleCloudAiplatformV1beta1MetadataSchema{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -82514,25 +91008,33 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) } return ret, nil // { - // "description": "Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:queryContextLineageSubgraph", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.contexts.queryContextLineageSubgraph", + // "description": "Creates a MetadataSchema.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", // "parameterOrder": [ - // "context" + // "parent" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the Context whose Artifacts and Executions should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}` The request may error with FAILED_PRECONDITION if the number of Artifacts, the number of Executions, or the number of Events that would be returned for the Context exceeds 1000.", + // "metadataSchemaId": { + // "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+context}:queryContextLineageSubgraph", + // "path": "v1beta1/{+parent}/metadataSchemas", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1LineageSubgraph" + // "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -82541,95 +91043,99 @@ func (c *ProjectsLocationsMetadataStoresContextsQueryContextLineageSubgraphCall) } -// method id "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren": +// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.get": -type ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall struct { - s *Service - context string - googlecloudaiplatformv1beta1removecontextchildrenrequest *GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresMetadataSchemasGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RemoveContextChildren: Remove a set of children contexts from a -// parent Context. If any of the child Contexts were NOT added to the -// parent Context, they are simply skipped. +// Get: Retrieves a specific MetadataSchema. // -// - context: The resource name of the parent Context. Format: +// - name: The resource name of the MetadataSchema to retrieve. Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/contexts/{context}`. -func (r *ProjectsLocationsMetadataStoresContextsService) RemoveContextChildren(context string, googlecloudaiplatformv1beta1removecontextchildrenrequest *GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { - c := &ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.context = context - c.googlecloudaiplatformv1beta1removecontextchildrenrequest = googlecloudaiplatformv1beta1removecontextchildrenrequest +// re}/metadataSchemas/{metadataschema}`. +func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Get(name string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { + c := &ProjectsLocationsMetadataStoresMetadataSchemasGetCall{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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { + 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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { 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 *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1removecontextchildrenrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+context}:removeContextChildren") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "context": c.context, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse or error +// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1MetadataSchema or error // will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse.ServerRespo -// nse.Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1MetadataSchema.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1MetadataSchema, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -82648,7 +91154,7 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(op if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse{ + ret := &GoogleCloudAiplatformV1beta1MetadataSchema{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -82660,28 +91166,25 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(op } return ret, nil // { - // "description": "Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/contexts/{contextsId}:removeContextChildren", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.contexts.removeContextChildren", + // "description": "Retrieves a specific MetadataSchema.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas/{metadataSchemasId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.get", // "parameterOrder": [ - // "context" + // "name" // ], // "parameters": { - // "context": { - // "description": "Required. The resource name of the parent Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`", + // "name": { + // "description": "Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/contexts/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+context}:removeContextChildren", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1RemoveContextChildrenRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1RemoveContextChildrenResponse" + // "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -82690,97 +91193,126 @@ func (c *ProjectsLocationsMetadataStoresContextsRemoveContextChildrenCall) Do(op } -// method id "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents": +// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.list": -type ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall struct { - s *Service - execution string - googlecloudaiplatformv1beta1addexecutioneventsrequest *GoogleCloudAiplatformV1beta1AddExecutionEventsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresMetadataSchemasListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// AddExecutionEvents: Adds Events to the specified Execution. An Event -// indicates whether an Artifact was used as an input or output for an -// Execution. If an Event already exists between the Execution and the -// Artifact, the Event is skipped. +// List: Lists MetadataSchemas. // -// - execution: The resource name of the Execution that the Events -// connect Artifacts with. Format: +// - parent: The MetadataStore whose MetadataSchemas should be listed. +// Format: // `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) AddExecutionEvents(execution string, googlecloudaiplatformv1beta1addexecutioneventsrequest *GoogleCloudAiplatformV1beta1AddExecutionEventsRequest) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { - c := &ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.execution = execution - c.googlecloudaiplatformv1beta1addexecutioneventsrequest = googlecloudaiplatformv1beta1addexecutioneventsrequest +// re}`. +func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) List(parent string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { + c := &ProjectsLocationsMetadataStoresMetadataSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A query to filter +// available MetadataSchemas for matching results. +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Filter(filter string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of MetadataSchemas to return. The service may return fewer. Must be +// in range 1-1000, inclusive. Defaults to 100. +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous MetadataService.ListMetadataSchemas call. +// Provide this to retrieve the next page. When paginating, all other +// provided parameters must match the call that provided the page token. +// (Otherwise the request will fail with INVALID_ARGUMENT error.) +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { + 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 *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { + 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 *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { 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 *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1addexecutioneventsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+execution}:addExecutionEvents") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/metadataSchemas") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "execution": c.execution, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents" call. +// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.list" call. // Exactly one of -// *GoogleCloudAiplatformV1beta1AddExecutionEventsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1AddExecutionEventsResponse.ServerResponse -// .Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1AddExecutionEventsResponse, error) { +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -82799,7 +91331,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1AddExecutionEventsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -82811,28 +91343,41 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opt } return ret, nil // { - // "description": "Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:addExecutionEvents", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.executions.addExecutionEvents", + // "description": "Lists MetadataSchemas.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.list", // "parameterOrder": [ - // "execution" + // "parent" // ], // "parameters": { - // "execution": { - // "description": "Required. The resource name of the Execution that the Events connect Artifacts with. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "filter": { + // "description": "A query to filter available MetadataSchemas for matching results.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous MetadataService.ListMetadataSchemas call. Provide this to retrieve the next page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The MetadataStore whose MetadataSchemas should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+execution}:addExecutionEvents", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsRequest" - // }, + // "path": "v1beta1/{+parent}/metadataSchemas", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1AddExecutionEventsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -82841,48 +91386,59 @@ func (c *ProjectsLocationsMetadataStoresExecutionsAddExecutionEventsCall) Do(opt } -// method id "aiplatform.projects.locations.metadataStores.executions.create": - -type ProjectsLocationsMetadataStoresExecutionsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse) 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) + } } -// Create: Creates an Execution associated with a MetadataStore. -// -// - parent: The resource name of the MetadataStore where the Execution -// should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Create(parent string, googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution) *ProjectsLocationsMetadataStoresExecutionsCreateCall { - c := &ProjectsLocationsMetadataStoresExecutionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1execution = googlecloudaiplatformv1beta1execution - return c +// method id "aiplatform.projects.locations.metadataStores.operations.cancel": + +type ProjectsLocationsMetadataStoresOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ExecutionId sets the optional parameter "executionId": The -// {execution} portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/executions/{execution}` If not provided, the Execution's ID will be -// a UUID generated by the service. Must be 4-128 characters in length. -// Valid characters are `/a-z-/`. Must be unique across all Executions -// in the parent MetadataStore. (Otherwise the request will fail with -// ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the -// preexisting Execution.) -func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) ExecutionId(executionId string) *ProjectsLocationsMetadataStoresExecutionsCreateCall { - c.urlParams_.Set("executionId", executionId) +// 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 *ProjectsLocationsMetadataStoresOperationsService) Cancel(name string) *ProjectsLocationsMetadataStoresOperationsCancelCall { + c := &ProjectsLocationsMetadataStoresOperationsCancelCall{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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsCreateCall { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -82890,21 +91446,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Fields(s ...google // 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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsCreateCall { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) 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_ { @@ -82912,14 +91468,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1execution) - 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/{+parent}/executions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -82927,20 +91478,19 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Execution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1Execution.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Execution, error) { +func (c *ProjectsLocationsMetadataStoresOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -82959,7 +91509,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Execution{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -82971,33 +91521,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates an Execution associated with a MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.executions.create", + // "id": "aiplatform.projects.locations.metadataStores.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "executionId": { - // "description": "The {execution} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` If not provided, the Execution's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all Executions in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Execution.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the MetadataStore where the Execution should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/executions", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Execution" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Execution" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -83006,9 +91548,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.metadataStores.executions.delete": +// method id "aiplatform.projects.locations.metadataStores.operations.delete": -type ProjectsLocationsMetadataStoresExecutionsDeleteCall struct { +type ProjectsLocationsMetadataStoresOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -83016,29 +91558,22 @@ type ProjectsLocationsMetadataStoresExecutionsDeleteCall struct { header_ http.Header } -// Delete: Deletes an Execution. +// 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 resource name of the Execution to delete. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Delete(name string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { - c := &ProjectsLocationsMetadataStoresExecutionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMetadataStoresOperationsService) Delete(name string) *ProjectsLocationsMetadataStoresOperationsDeleteCall { + c := &ProjectsLocationsMetadataStoresOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Etag sets the optional parameter "etag": The etag of the Execution to -// delete. If this is provided, it must match the server's etag. -// Otherwise, the request will fail with a FAILED_PRECONDITION. -func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Etag(etag string) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { - c.urlParams_.Set("etag", etag) - 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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -83046,21 +91581,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Fields(s ...google // 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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsDeleteCall { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) 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_ { @@ -83083,14 +91618,14 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.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 +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMetadataStoresOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -83109,7 +91644,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -83121,30 +91656,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes an Execution.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.metadataStores.executions.delete", + // "id": "aiplatform.projects.locations.metadataStores.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { - // "etag": { - // "description": "Optional. The etag of the Execution to delete. If this is provided, it must match the server's etag. Otherwise, the request will fail with a FAILED_PRECONDITION.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "Required. The resource name of the Execution to delete. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -83153,9 +91683,9 @@ func (c *ProjectsLocationsMetadataStoresExecutionsDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.metadataStores.executions.get": +// method id "aiplatform.projects.locations.metadataStores.operations.get": -type ProjectsLocationsMetadataStoresExecutionsGetCall struct { +type ProjectsLocationsMetadataStoresOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -83164,13 +91694,13 @@ type ProjectsLocationsMetadataStoresExecutionsGetCall struct { header_ http.Header } -// Get: Retrieves a specific Execution. +// 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 resource name of the Execution to retrieve. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Get(name string) *ProjectsLocationsMetadataStoresExecutionsGetCall { - c := &ProjectsLocationsMetadataStoresExecutionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsMetadataStoresOperationsService) Get(name string) *ProjectsLocationsMetadataStoresOperationsGetCall { + c := &ProjectsLocationsMetadataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -83178,7 +91708,7 @@ func (r *ProjectsLocationsMetadataStoresExecutionsService) Get(name string) *Pro // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsGetCall { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -83188,7 +91718,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsGetCall { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -83196,21 +91726,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsGetCall { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsGetCall { 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 *ProjectsLocationsMetadataStoresExecutionsGetCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) 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_ { @@ -83236,15 +91766,14 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Execution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1Execution.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Execution, error) { +func (c *ProjectsLocationsMetadataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -83263,7 +91792,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Execution{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -83275,25 +91804,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Retrieves a specific Execution.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.executions.get", + // "id": "aiplatform.projects.locations.metadataStores.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the Execution to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Execution" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -83302,82 +91831,45 @@ func (c *ProjectsLocationsMetadataStoresExecutionsGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.metadataStores.executions.list": +// method id "aiplatform.projects.locations.metadataStores.operations.list": -type ProjectsLocationsMetadataStoresExecutionsListCall struct { +type ProjectsLocationsMetadataStoresOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists Executions in the MetadataStore. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The MetadataStore whose Executions should be listed. -// Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) List(parent string) *ProjectsLocationsMetadataStoresExecutionsListCall { - c := &ProjectsLocationsMetadataStoresExecutionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMetadataStoresOperationsService) List(name string) *ProjectsLocationsMetadataStoresOperationsListCall { + c := &ProjectsLocationsMetadataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Filter specifying the -// boolean condition for the Executions to satisfy in order to be part -// of the result set. The syntax to define filter query is based on -// https://google.aip.dev/160. Following are the supported set of -// filters: * **Attribute filtering**: For example: `display_name = -// "test". Supported fields include: `name`, `display_name`, `state`, -// `schema_title`, `create_time`, and `update_time`. Time fields, such -// as `create_time` and `update_time`, require values specified in -// RFC-3339 format. For example: `create_time = -// "2020-11-19T11:30:00-04:00". * **Metadata field**: To filter on -// metadata fields use traversal operation as follows: `metadata..` For -// example: `metadata.field_1.number_value = 10.0` In case the field -// name contains special characters (such as colon), one can embed it -// inside double quote. For example: `metadata."field:1".number_value = -// 10.0` * **Context based filtering**: To filter Executions based on -// the contexts to which they belong use the function operator with the -// full resource name: `in_context()`. For example: -// `in_context("projects//locations//metadataStores//contexts/")` Each -// of the above supported filters can be combined together using logical -// operators (`AND` & `OR`). Maximum nested expression depth allowed is -// 5. For example: `display_name = "test" AND metadata.field1.bool_value -// = true`. -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresExecutionsListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsMetadataStoresOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": How the list of -// messages is ordered. Specify the values to order by and an ordering -// operation. The default sorting order is ascending. To specify -// descending order for a field, users append a " desc" suffix; for -// example: "foo desc, bar". Subfields are specified with a `.` -// character, such as foo.bar. see https://google.aip.dev/132#ordering -// for more details. -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) OrderBy(orderBy string) *ProjectsLocationsMetadataStoresExecutionsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of Executions to return. The service may return fewer. Must be in -// range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresExecutionsListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListExecutions call. Provide -// this to retrieve the subsequent page. When paginating, all other -// provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with an INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresExecutionsListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMetadataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -83385,7 +91877,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsListCall { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -83395,7 +91887,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsListCall { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -83403,21 +91895,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsListCall { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsListCall { 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) 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_ { @@ -83430,7 +91922,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/executions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -83438,21 +91930,20 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) doRequest(alt string } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListExecutionsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListExecutionsResponse.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 *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListExecutionsResponse, error) { +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -83471,7 +91962,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListExecutionsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -83483,46 +91974,41 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists Executions in the MetadataStore.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions", + // "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}/metadataStores/{metadataStoresId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.executions.list", + // "id": "aiplatform.projects.locations.metadataStores.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Filter specifying the boolean condition for the Executions to satisfy in order to be part of the result set. The syntax to define filter query is based on https://google.aip.dev/160. Following are the supported set of filters: * **Attribute filtering**: For example: `display_name = \"test\"`. Supported fields include: `name`, `display_name`, `state`, `schema_title`, `create_time`, and `update_time`. Time fields, such as `create_time` and `update_time`, require values specified in RFC-3339 format. For example: `create_time = \"2020-11-19T11:30:00-04:00\"`. * **Metadata field**: To filter on metadata fields use traversal operation as follows: `metadata..` For example: `metadata.field_1.number_value = 10.0` In case the field name contains special characters (such as colon), one can embed it inside double quote. For example: `metadata.\"field:1\".number_value = 10.0` * **Context based filtering**: To filter Executions based on the contexts to which they belong use the function operator with the full resource name: `in_context()`. For example: `in_context(\"projects//locations//metadataStores//contexts/\")` Each of the above supported filters can be combined together using logical operators (`AND` \u0026 `OR`). Maximum nested expression depth allowed is 5. For example: `display_name = \"test\" AND metadata.field1.bool_value = true`.", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "How the list of messages is ordered. Specify the values to order by and an ordering operation. The default sorting order is ascending. To specify descending order for a field, users append a \" desc\" suffix; for example: \"foo desc, bar\". Subfields are specified with a `.` character, such as foo.bar. see https://google.aip.dev/132#ordering for more details.", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of Executions to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListExecutions call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with an INVALID_ARGUMENT error.)", + // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The MetadataStore whose Executions should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/executions", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListExecutionsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -83534,7 +92020,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) 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 *ProjectsLocationsMetadataStoresExecutionsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListExecutionsResponse) error) error { +func (c *ProjectsLocationsMetadataStoresOperationsListCall) 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 { @@ -83552,45 +92038,47 @@ func (c *ProjectsLocationsMetadataStoresExecutionsListCall) Pages(ctx context.Co } } -// method id "aiplatform.projects.locations.metadataStores.executions.patch": +// method id "aiplatform.projects.locations.metadataStores.operations.wait": -type ProjectsLocationsMetadataStoresExecutionsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMetadataStoresOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a stored Execution. +// 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: Output only. The resource name of the Execution. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Patch(name string, googlecloudaiplatformv1beta1execution *GoogleCloudAiplatformV1beta1Execution) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - c := &ProjectsLocationsMetadataStoresExecutionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMetadataStoresOperationsService) Wait(name string) *ProjectsLocationsMetadataStoresOperationsWaitCall { + c := &ProjectsLocationsMetadataStoresOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1execution = googlecloudaiplatformv1beta1execution - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set to -// true, and the Execution is not found, a new Execution is created. -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } -// UpdateMask sets the optional parameter "updateMask": A FieldMask -// indicating which fields should be updated. -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsMetadataStoresExecutionsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// 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 *ProjectsLocationsMetadataStoresOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMetadataStoresOperationsWaitCall { + 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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPatchCall { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -83598,21 +92086,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) 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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPatchCall { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresOperationsWaitCall { 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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Header() http.Header { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) 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_ { @@ -83620,16 +92108,11 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1execution) - 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -83640,15 +92123,14 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Execution or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1Execution.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.metadataStores.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 *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Execution, error) { +func (c *ProjectsLocationsMetadataStoresOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -83667,7 +92149,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Execution{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -83679,39 +92161,31 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleap } return ret, nil // { - // "description": "Updates a stored Execution.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.metadataStores.executions.patch", + // "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}/metadataStores/{metadataStoresId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.metadataStores.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { - // "allowMissing": { - // "description": "If set to true, and the Execution is not found, a new Execution is created.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Output only. The resource name of the Execution.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Optional. A FieldMask indicating which fields should be updated.", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Execution" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Execution" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -83720,33 +92194,33 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPatchCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.executions.purge": +// method id "aiplatform.projects.locations.migratableResources.batchMigrate": -type ProjectsLocationsMetadataStoresExecutionsPurgeCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1purgeexecutionsrequest *GoogleCloudAiplatformV1beta1PurgeExecutionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigratableResourcesBatchMigrateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchmigrateresourcesrequest *GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Purge: Purges Executions. +// BatchMigrate: Batch migrates resources from ml.googleapis.com, +// automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI. // -// - parent: The metadata store to purge Executions from. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) Purge(parent string, googlecloudaiplatformv1beta1purgeexecutionsrequest *GoogleCloudAiplatformV1beta1PurgeExecutionsRequest) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { - c := &ProjectsLocationsMetadataStoresExecutionsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The location of the migrated resource will live in. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsMigratableResourcesService) BatchMigrate(parent string, googlecloudaiplatformv1beta1batchmigrateresourcesrequest *GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest) *ProjectsLocationsMigratableResourcesBatchMigrateCall { + c := &ProjectsLocationsMigratableResourcesBatchMigrateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1purgeexecutionsrequest = googlecloudaiplatformv1beta1purgeexecutionsrequest + c.googlecloudaiplatformv1beta1batchmigrateresourcesrequest = googlecloudaiplatformv1beta1batchmigrateresourcesrequest 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { +func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesBatchMigrateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -83754,21 +92228,21 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsPurgeCall { +func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesBatchMigrateCall { 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Header() http.Header { +func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) 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_ { @@ -83776,14 +92250,14 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1purgeexecutionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchmigrateresourcesrequest) 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/{+parent}/executions:purge") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/migratableResources:batchMigrate") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -83796,14 +92270,14 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.purge" call. +// Do executes the "aiplatform.projects.locations.migratableResources.batchMigrate" 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 *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -83834,25 +92308,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleap } return ret, nil // { - // "description": "Purges Executions.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions:purge", + // "description": "Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:batchMigrate", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.executions.purge", + // "id": "aiplatform.projects.locations.migratableResources.batchMigrate", // "parameterOrder": [ // "parent" // ], // "parameters": { // "parent": { - // "description": "Required. The metadata store to purge Executions from. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "description": "Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/executions:purge", + // "path": "v1beta1/{+parent}/migratableResources:batchMigrate", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PurgeExecutionsRequest" + // "$ref": "GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -83864,102 +92338,261 @@ func (c *ProjectsLocationsMetadataStoresExecutionsPurgeCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs": +// method id "aiplatform.projects.locations.migratableResources.search": -type ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall struct { - s *Service - execution string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigratableResourcesSearchCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1searchmigratableresourcesrequest *GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// QueryExecutionInputsAndOutputs: Obtains the set of input and output -// Artifacts for this Execution, in the form of LineageSubgraph that -// also contains the Execution and connecting Events. +// Search: Searches all of the resources in automl.googleapis.com, +// datalabeling.googleapis.com and ml.googleapis.com that can be +// migrated to Vertex AI's given location. // -// - execution: The resource name of the Execution whose input and -// output Artifacts should be retrieved as a LineageSubgraph. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/executions/{execution}`. -func (r *ProjectsLocationsMetadataStoresExecutionsService) QueryExecutionInputsAndOutputs(execution string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { - c := &ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.execution = execution +// - parent: The location that the migratable resources should be +// searched from. It's the Vertex AI location that the resources can +// be migrated to, not the resources' original location. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsMigratableResourcesService) Search(parent string, googlecloudaiplatformv1beta1searchmigratableresourcesrequest *GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest) *ProjectsLocationsMigratableResourcesSearchCall { + c := &ProjectsLocationsMigratableResourcesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest = googlecloudaiplatformv1beta1searchmigratableresourcesrequest 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { +func (c *ProjectsLocationsMigratableResourcesSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesSearchCall { 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { - c.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 *ProjectsLocationsMigratableResourcesSearchCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesSearchCall { + 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 *ProjectsLocationsMigratableResourcesSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigratableResourcesSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest) + 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/{+parent}/migratableResources:search") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.migratableResources.search" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse.ServerR +// esponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsMigratableResourcesSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse, 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 := &GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse{ + 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": "Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:search", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.migratableResources.search", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/migratableResources:search", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse" + // }, + // "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 *ProjectsLocationsMigratableResourcesSearchCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest.PageToken = pt }(c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest.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.googlecloudaiplatformv1beta1searchmigratableresourcesrequest.PageToken = x.NextPageToken + } +} + +// method id "aiplatform.projects.locations.migratableResources.operations.cancel": + +type ProjectsLocationsMigratableResourcesOperationsCancelCall 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 *ProjectsLocationsMigratableResourcesOperationsService) Cancel(name string) *ProjectsLocationsMigratableResourcesOperationsCancelCall { + c := &ProjectsLocationsMigratableResourcesOperationsCancelCall{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 *ProjectsLocationsMigratableResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsCancelCall { + 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall { +func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsCancelCall { 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 *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Header() http.Header { +func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) 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/{+execution}:queryExecutionInputsAndOutputs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") 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{ - "execution": c.execution, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs" call. -// Exactly one of *GoogleCloudAiplatformV1beta1LineageSubgraph or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1LineageSubgraph.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1LineageSubgraph, error) { +// Do executes the "aiplatform.projects.locations.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -83978,7 +92611,7 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1LineageSubgraph{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -83990,25 +92623,25 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs } return ret, nil // { - // "description": "Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/executions/{executionsId}:queryExecutionInputsAndOutputs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.executions.queryExecutionInputsAndOutputs", + // "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}/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.migratableResources.operations.cancel", // "parameterOrder": [ - // "execution" + // "name" // ], // "parameters": { - // "execution": { - // "description": "Required. The resource name of the Execution whose input and output Artifacts should be retrieved as a LineageSubgraph. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/executions/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+execution}:queryExecutionInputsAndOutputs", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1LineageSubgraph" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -84017,48 +92650,32 @@ func (c *ProjectsLocationsMetadataStoresExecutionsQueryExecutionInputsAndOutputs } -// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.create": +// method id "aiplatform.projects.locations.migratableResources.operations.delete": -type ProjectsLocationsMetadataStoresMetadataSchemasCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1metadataschema *GoogleCloudAiplatformV1beta1MetadataSchema - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigratableResourcesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a MetadataSchema. +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. // -// - parent: The resource name of the MetadataStore where the -// MetadataSchema should be created. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Create(parent string, googlecloudaiplatformv1beta1metadataschema *GoogleCloudAiplatformV1beta1MetadataSchema) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { - c := &ProjectsLocationsMetadataStoresMetadataSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1metadataschema = googlecloudaiplatformv1beta1metadataschema - return c -} - -// MetadataSchemaId sets the optional parameter "metadataSchemaId": The -// {metadata_schema} portion of the resource name with the format: -// `projects/{project}/locations/{location}/metadataStores/{metadatastore -// }/metadataSchemas/{metadataschema}` If not provided, the -// MetadataStore's ID will be a UUID generated by the service. Must be -// 4-128 characters in length. Valid characters are `/a-z-/`. Must be -// unique across all MetadataSchemas in the parent Location. (Otherwise -// the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if -// the caller can't view the preexisting MetadataSchema.) -func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) MetadataSchemaId(metadataSchemaId string) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { - c.urlParams_.Set("metadataSchemaId", metadataSchemaId) +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsMigratableResourcesOperationsService) Delete(name string) *ProjectsLocationsMigratableResourcesOperationsDeleteCall { + c := &ProjectsLocationsMigratableResourcesOperationsDeleteCall{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 *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { +func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -84066,21 +92683,21 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall { +func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsDeleteCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Header() http.Header { +func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) 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_ { @@ -84088,36 +92705,29 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1metadataschema) - 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/{+parent}/metadataSchemas") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1MetadataSchema or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1MetadataSchema.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1MetadataSchema, error) { +// Do executes the "aiplatform.projects.locations.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -84136,7 +92746,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1MetadataSchema{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -84148,33 +92758,25 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...go } return ret, nil // { - // "description": "Creates a MetadataSchema.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.create", + // "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}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.migratableResources.operations.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "metadataSchemaId": { - // "description": "The {metadata_schema} portion of the resource name with the format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}` If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are `/a-z-/`. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/metadataSchemas", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -84183,9 +92785,9 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasCreateCall) Do(opts ...go } -// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.get": +// method id "aiplatform.projects.locations.migratableResources.operations.get": -type ProjectsLocationsMetadataStoresMetadataSchemasGetCall struct { +type ProjectsLocationsMigratableResourcesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -84194,13 +92796,13 @@ type ProjectsLocationsMetadataStoresMetadataSchemasGetCall struct { header_ http.Header } -// Get: Retrieves a specific MetadataSchema. +// 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 resource name of the MetadataSchema to retrieve. Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}/metadataSchemas/{metadataschema}`. -func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Get(name string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { - c := &ProjectsLocationsMetadataStoresMetadataSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsMigratableResourcesOperationsService) Get(name string) *ProjectsLocationsMigratableResourcesOperationsGetCall { + c := &ProjectsLocationsMigratableResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -84208,7 +92810,7 @@ func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { +func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -84218,7 +92820,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Fields(s ...goog // 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { +func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigratableResourcesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -84226,21 +92828,21 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) IfNoneMatch(enti // 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasGetCall { +func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsGetCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Header() http.Header { +func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) 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_ { @@ -84266,16 +92868,14 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1MetadataSchema or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1MetadataSchema.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1MetadataSchema, error) { +// Do executes the "aiplatform.projects.locations.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -84294,7 +92894,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1MetadataSchema{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -84306,25 +92906,25 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googl } return ret, nil // { - // "description": "Retrieves a specific MetadataSchema.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas/{metadataSchemasId}", + // "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}/migratableResources/{migratableResourcesId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.get", + // "id": "aiplatform.projects.locations.migratableResources.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the MetadataSchema to retrieve. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+/metadataSchemas/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1MetadataSchema" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -84333,50 +92933,45 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.metadataStores.metadataSchemas.list": +// method id "aiplatform.projects.locations.migratableResources.operations.list": -type ProjectsLocationsMetadataStoresMetadataSchemasListCall struct { +type ProjectsLocationsMigratableResourcesOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists MetadataSchemas. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The MetadataStore whose MetadataSchemas should be listed. -// Format: -// `projects/{project}/locations/{location}/metadataStores/{metadatasto -// re}`. -func (r *ProjectsLocationsMetadataStoresMetadataSchemasService) List(parent string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { - c := &ProjectsLocationsMetadataStoresMetadataSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsMigratableResourcesOperationsService) List(name string) *ProjectsLocationsMigratableResourcesOperationsListCall { + c := &ProjectsLocationsMigratableResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": A query to filter -// available MetadataSchemas for matching results. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Filter(filter string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Filter(filter string) *ProjectsLocationsMigratableResourcesOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of MetadataSchemas to return. The service may return fewer. Must be -// in range 1-1000, inclusive. Defaults to 100. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMigratableResourcesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous MetadataService.ListMetadataSchemas call. -// Provide this to retrieve the next page. When paginating, all other -// provided parameters must match the call that provided the page token. -// (Otherwise the request will fail with INVALID_ARGUMENT error.) -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageToken(pageToken string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMigratableResourcesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -84384,7 +92979,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) PageToken(pageT // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -84394,7 +92989,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Fields(s ...goo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigratableResourcesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -84402,21 +92997,21 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) IfNoneMatch(ent // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Context(ctx context.Context) *ProjectsLocationsMetadataStoresMetadataSchemasListCall { +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsListCall { 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Header() http.Header { +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) 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_ { @@ -84429,7 +93024,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt s var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/metadataSchemas") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -84437,22 +93032,20 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) doRequest(alt s } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.metadataStores.metadataSchemas.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse, error) { +// Do executes the "aiplatform.projects.locations.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -84471,7 +93064,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -84483,41 +93076,41 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...goog } return ret, nil // { - // "description": "Lists MetadataSchemas.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/metadataStores/{metadataStoresId}/metadataSchemas", + // "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}/migratableResources/{migratableResourcesId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.metadataStores.metadataSchemas.list", + // "id": "aiplatform.projects.locations.migratableResources.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "A query to filter available MetadataSchemas for matching results.", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$", + // "required": true, + // "type": "string" + // }, // "pageSize": { - // "description": "The maximum number of MetadataSchemas to return. The service may return fewer. Must be in range 1-1000, inclusive. Defaults to 100.", + // "description": "The standard list page size.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "A page token, received from a previous MetadataService.ListMetadataSchemas call. Provide this to retrieve the next page. When paginating, all other provided parameters must match the call that provided the page token. (Otherwise the request will fail with INVALID_ARGUMENT error.)", + // "description": "The standard list page token.", // "location": "query", // "type": "string" - // }, - // "parent": { - // "description": "Required. The MetadataStore whose MetadataSchemas should be listed. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/metadataStores/[^/]+$", - // "required": true, - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/metadataSchemas", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -84529,7 +93122,7 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Do(opts ...goog // 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 *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListMetadataSchemasResponse) error) error { +func (c *ProjectsLocationsMigratableResourcesOperationsListCall) 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 { @@ -84547,180 +93140,47 @@ func (c *ProjectsLocationsMetadataStoresMetadataSchemasListCall) Pages(ctx conte } } -// method id "aiplatform.projects.locations.migratableResources.batchMigrate": +// method id "aiplatform.projects.locations.migratableResources.operations.wait": -type ProjectsLocationsMigratableResourcesBatchMigrateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchmigrateresourcesrequest *GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsMigratableResourcesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchMigrate: Batch migrates resources from ml.googleapis.com, -// automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI. +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. // -// - parent: The location of the migrated resource will live in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsMigratableResourcesService) BatchMigrate(parent string, googlecloudaiplatformv1beta1batchmigrateresourcesrequest *GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest) *ProjectsLocationsMigratableResourcesBatchMigrateCall { - c := &ProjectsLocationsMigratableResourcesBatchMigrateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1batchmigrateresourcesrequest = googlecloudaiplatformv1beta1batchmigrateresourcesrequest - 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 *ProjectsLocationsMigratableResourcesBatchMigrateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesBatchMigrateCall { - 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 *ProjectsLocationsMigratableResourcesBatchMigrateCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesBatchMigrateCall { - 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 *ProjectsLocationsMigratableResourcesBatchMigrateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsMigratableResourcesBatchMigrateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchmigrateresourcesrequest) - 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/{+parent}/migratableResources:batchMigrate") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.migratableResources.batchMigrate" 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 *ProjectsLocationsMigratableResourcesBatchMigrateCall) 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": "Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:batchMigrate", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.migratableResources.batchMigrate", - // "parameterOrder": [ - // "parent" - // ], - // "parameters": { - // "parent": { - // "description": "Required. The location of the migrated resource will live in. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta1/{+parent}/migratableResources:batchMigrate", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchMigrateResourcesRequest" - // }, - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.migratableResources.search": - -type ProjectsLocationsMigratableResourcesSearchCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1searchmigratableresourcesrequest *GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsMigratableResourcesOperationsService) Wait(name string) *ProjectsLocationsMigratableResourcesOperationsWaitCall { + c := &ProjectsLocationsMigratableResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c } -// Search: Searches all of the resources in automl.googleapis.com, -// datalabeling.googleapis.com and ml.googleapis.com that can be -// migrated to Vertex AI's given location. -// -// - parent: The location that the migratable resources should be -// searched from. It's the Vertex AI location that the resources can -// be migrated to, not the resources' original location. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsMigratableResourcesService) Search(parent string, googlecloudaiplatformv1beta1searchmigratableresourcesrequest *GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest) *ProjectsLocationsMigratableResourcesSearchCall { - c := &ProjectsLocationsMigratableResourcesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest = googlecloudaiplatformv1beta1searchmigratableresourcesrequest +// 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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMigratableResourcesOperationsWaitCall { + 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 *ProjectsLocationsMigratableResourcesSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesSearchCall { +func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -84728,21 +93188,21 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigratableResourcesSearchCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesSearchCall { +func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsWaitCall { 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 *ProjectsLocationsMigratableResourcesSearchCall) Header() http.Header { +func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigratableResourcesSearchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) 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_ { @@ -84750,14 +93210,9 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest) - 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/{+parent}/migratableResources:search") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -84765,22 +93220,19 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.migratableResources.search" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse.ServerR -// esponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsMigratableResourcesSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse, error) { +// Do executes the "aiplatform.projects.locations.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -84799,7 +93251,7 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -84811,28 +93263,31 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/migratableResources:search", + // "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}/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.migratableResources.search", + // "id": "aiplatform.projects.locations.migratableResources.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The location that the migratable resources should be searched from. It's the Vertex AI location that the resources can be migrated to, not the resources' original location. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/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/{+parent}/migratableResources:search", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -84841,59 +93296,33 @@ func (c *ProjectsLocationsMigratableResourcesSearchCall) Do(opts ...googleapi.Ca } -// 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 *ProjectsLocationsMigratableResourcesSearchCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchMigratableResourcesResponse) error) error { - c.ctx_ = ctx - defer func(pt string) { c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest.PageToken = pt }(c.googlecloudaiplatformv1beta1searchmigratableresourcesrequest.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.googlecloudaiplatformv1beta1searchmigratableresourcesrequest.PageToken = x.NextPageToken - } -} - -// method id "aiplatform.projects.locations.migratableResources.operations.cancel": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create": -type ProjectsLocationsMigratableResourcesOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob + 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 ModelDeploymentMonitoringJob. It will run +// periodically on a configured interval. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsMigratableResourcesOperationsService) Cancel(name string) *ProjectsLocationsMigratableResourcesOperationsCancelCall { - c := &ProjectsLocationsMigratableResourcesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent of the ModelDeploymentMonitoringJob. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Create(parent string, googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob) *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob = googlecloudaiplatformv1beta1modeldeploymentmonitoringjob 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 *ProjectsLocationsMigratableResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsCancelCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -84901,21 +93330,21 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsCancelCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall { 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 *ProjectsLocationsMigratableResourcesOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) 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_ { @@ -84923,9 +93352,14 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob) + 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/{+parent}/modelDeploymentMonitoringJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -84933,19 +93367,22 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) 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.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -84964,7 +93401,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -84976,25 +93413,28 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Do(opts ...go } 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}/migratableResources/{migratableResourcesId}/operations/{operationsId}:cancel", + // "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.migratableResources.operations.cancel", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "parent": { + // "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/modelDeploymentMonitoringJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -85003,9 +93443,9 @@ func (c *ProjectsLocationsMigratableResourcesOperationsCancelCall) Do(opts ...go } -// method id "aiplatform.projects.locations.migratableResources.operations.delete": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete": -type ProjectsLocationsMigratableResourcesOperationsDeleteCall struct { +type ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -85013,14 +93453,14 @@ type ProjectsLocationsMigratableResourcesOperationsDeleteCall 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 ModelDeploymentMonitoringJob. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsMigratableResourcesOperationsService) Delete(name string) *ProjectsLocationsMigratableResourcesOperationsDeleteCall { - c := &ProjectsLocationsMigratableResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the model monitoring job to delete. +// Format: +// `projects/{project}/locations/{location}/modelDeploymentMonitoringJo +// bs/{model_deployment_monitoring_job}`. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Delete(name string) *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -85028,7 +93468,7 @@ func (r *ProjectsLocationsMigratableResourcesOperationsService) Delete(name stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsDeleteCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -85036,21 +93476,21 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsDeleteCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall { 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 *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) 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_ { @@ -85073,14 +93513,14 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.migratableResources.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.modelDeploymentMonitoringJobs.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 *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -85099,7 +93539,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Do(opts ...go 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, @@ -85111,25 +93551,25 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Do(opts ...go } 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}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + // "description": "Deletes a ModelDeploymentMonitoringJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.migratableResources.operations.delete", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -85138,9 +93578,9 @@ func (c *ProjectsLocationsMigratableResourcesOperationsDeleteCall) Do(opts ...go } -// method id "aiplatform.projects.locations.migratableResources.operations.get": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get": -type ProjectsLocationsMigratableResourcesOperationsGetCall struct { +type ProjectsLocationsModelDeploymentMonitoringJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -85149,13 +93589,14 @@ type ProjectsLocationsMigratableResourcesOperationsGetCall 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 ModelDeploymentMonitoringJob. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsMigratableResourcesOperationsService) Get(name string) *ProjectsLocationsMigratableResourcesOperationsGetCall { - c := &ProjectsLocationsMigratableResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the ModelDeploymentMonitoringJob. +// Format: +// `projects/{project}/locations/{location}/modelDeploymentMonitoringJo +// bs/{model_deployment_monitoring_job}`. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Get(name string) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -85163,7 +93604,7 @@ func (r *ProjectsLocationsMigratableResourcesOperationsService) Get(name string) // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsGetCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -85173,7 +93614,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Fields(s ...goog // 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 *ProjectsLocationsMigratableResourcesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigratableResourcesOperationsGetCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -85181,21 +93622,21 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) IfNoneMatch(enti // 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 *ProjectsLocationsMigratableResourcesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsGetCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { 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 *ProjectsLocationsMigratableResourcesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) 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_ { @@ -85221,14 +93662,17 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) doRequest(alt st return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -85247,7 +93691,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -85259,25 +93703,25 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Do(opts ...googl } 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}/migratableResources/{migratableResourcesId}/operations/{operationsId}", + // "description": "Gets a ModelDeploymentMonitoringJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.migratableResources.operations.get", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -85286,53 +93730,69 @@ func (c *ProjectsLocationsMigratableResourcesOperationsGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.migratableResources.operations.list": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list": -type ProjectsLocationsMigratableResourcesOperationsListCall struct { +type ProjectsLocationsModelDeploymentMonitoringJobsListCall 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 ModelDeploymentMonitoringJobs in a Location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsMigratableResourcesOperationsService) List(name string) *ProjectsLocationsMigratableResourcesOperationsListCall { - c := &ProjectsLocationsMigratableResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent of the ModelDeploymentMonitoringJob. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) List(parent string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Filter(filter string) *ProjectsLocationsMigratableResourcesOperationsListCall { +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Filter(filter string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsMigratableResourcesOperationsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) PageSize(pageSize int64) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsMigratableResourcesOperationsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) PageToken(pageToken string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) ReadMask(readMask string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -85342,7 +93802,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Fields(s ...goo // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMigratableResourcesOperationsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { c.ifNoneMatch_ = entityTag return c } @@ -85350,21 +93810,21 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) IfNoneMatch(ent // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { 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 *ProjectsLocationsMigratableResourcesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigratableResourcesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) 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_ { @@ -85377,7 +93837,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) doRequest(alt s 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}/modelDeploymentMonitoringJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -85385,20 +93845,24 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) doRequest(alt s } 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.migratableResources.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 *ProjectsLocationsMigratableResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse +// +// or error will be non-nil. Any non-2xx status code is an error. +// +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse +// .ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -85417,7 +93881,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -85429,26 +93893,19 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Do(opts ...goog } 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}/migratableResources/{migratableResourcesId}/operations", + // "description": "Lists ModelDeploymentMonitoringJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.migratableResources.operations.list", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+$", - // "required": true, - // "type": "string" - // }, // "pageSize": { // "description": "The standard list page size.", // "format": "int32", @@ -85459,11 +93916,24 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Do(opts ...goog // "description": "The standard list page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/modelDeploymentMonitoringJobs", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -85475,7 +93945,7 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Do(opts ...goog // 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 *ProjectsLocationsMigratableResourcesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -85493,47 +93963,59 @@ func (c *ProjectsLocationsMigratableResourcesOperationsListCall) Pages(ctx conte } } -// method id "aiplatform.projects.locations.migratableResources.operations.wait": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.patch": -type ProjectsLocationsMigratableResourcesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob + 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 ModelDeploymentMonitoringJob. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsMigratableResourcesOperationsService) Wait(name string) *ProjectsLocationsMigratableResourcesOperationsWaitCall { - c := &ProjectsLocationsMigratableResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Resource name of a ModelDeploymentMonitoringJob. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Patch(name string, googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob = googlecloudaiplatformv1beta1modeldeploymentmonitoringjob 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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsMigratableResourcesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask is used to specify the fields to be overwritten in the +// ModelDeploymentMonitoringJob resource by the update. The fields +// specified in the update_mask are relative to the resource, not the +// full request. A field will be overwritten if it is in the mask. If +// the user does not provide a mask then only the non-empty fields +// present in the request will be overwritten. Set the update_mask to +// `*` to override all fields. For the objective config, the user can +// either provide the update mask for +// model_deployment_monitoring_objective_configs or any combination of +// its nested fields, such as: +// model_deployment_monitoring_objective_configs.objective_config.trainin +// g_dataset. Updatable fields: * `display_name` * +// `model_deployment_monitoring_schedule_config` * +// `model_monitoring_alert_config` * `logging_sampling_strategy` * +// `labels` * `log_ttl` * `enable_monitoring_pipeline_logs` . and * +// `model_deployment_monitoring_objective_configs` . or * +// `model_deployment_monitoring_objective_configs.objective_config.traini +// ng_dataset` * +// `model_deployment_monitoring_objective_configs.objective_config.traini +// ng_prediction_skew_detection_config` * +// `model_deployment_monitoring_objective_configs.objective_config.predic +// tion_drift_detection_config` +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { + 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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigratableResourcesOperationsWaitCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -85541,21 +94023,21 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) Fields(s ...goo // 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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsMigratableResourcesOperationsWaitCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { 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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) 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_ { @@ -85563,11 +94045,16 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob) + 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 } @@ -85578,14 +94065,14 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.migratableResources.operations.wait" call. +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 *ProjectsLocationsMigratableResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -85616,29 +94103,32 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) Do(opts ...goog } 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}/migratableResources/{migratableResourcesId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.migratableResources.operations.wait", + // "description": "Updates a ModelDeploymentMonitoringJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Output only. Resource name of a ModelDeploymentMonitoringJob.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/migratableResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "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. The update mask is used to specify the fields to be overwritten in the ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. For the objective config, the user can either provide the update mask for model_deployment_monitoring_objective_configs or any combination of its nested fields, such as: model_deployment_monitoring_objective_configs.objective_config.training_dataset. Updatable fields: * `display_name` * `model_deployment_monitoring_schedule_config` * `model_monitoring_alert_config` * `logging_sampling_strategy` * `labels` * `log_ttl` * `enable_monitoring_pipeline_logs` . and * `model_deployment_monitoring_objective_configs` . or * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config`", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -85649,33 +94139,36 @@ func (c *ProjectsLocationsMigratableResourcesOperationsWaitCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause": -type ProjectsLocationsModelDeploymentMonitoringJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsPauseCall struct { + s *Service + name string + googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a ModelDeploymentMonitoringJob. It will run -// periodically on a configured interval. +// Pause: Pauses a ModelDeploymentMonitoringJob. If the job is running, +// the server makes a best effort to cancel the job. Will mark +// ModelDeploymentMonitoringJob.state to 'PAUSED'. // -// - parent: The parent of the ModelDeploymentMonitoringJob. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Create(parent string, googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob) *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob = googlecloudaiplatformv1beta1modeldeploymentmonitoringjob +// - name: The resource name of the ModelDeploymentMonitoringJob to +// pause. Format: +// `projects/{project}/locations/{location}/modelDeploymentMonitoringJo +// bs/{model_deployment_monitoring_job}`. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Pause(name string, googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest) *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest = googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest 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 *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -85683,21 +94176,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) 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_ { @@ -85705,14 +94198,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest) 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/{+parent}/modelDeploymentMonitoringJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:pause") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -85720,22 +94213,19 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.ServerRespon -// se.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob, error) { +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause" 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 *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -85754,7 +94244,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -85766,28 +94256,28 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Do(opts ...go } return ret, nil // { - // "description": "Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", + // "description": "Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}:pause", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.create", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/modelDeploymentMonitoringJobs", + // "path": "v1beta1/{+name}:pause", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + // "$ref": "GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -85796,32 +94286,36 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsCreateCall) Do(opts ...go } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume": -type ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsResumeCall struct { + s *Service + name string + googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a ModelDeploymentMonitoringJob. +// Resume: Resumes a paused ModelDeploymentMonitoringJob. It will start +// to run from next scheduled time. A deleted +// ModelDeploymentMonitoringJob can't be resumed. // -// - name: The resource name of the model monitoring job to delete. -// Format: +// - name: The resource name of the ModelDeploymentMonitoringJob to +// resume. Format: // `projects/{project}/locations/{location}/modelDeploymentMonitoringJo // bs/{model_deployment_monitoring_job}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Delete(name string) *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Resume(name string, googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest) *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest = googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest 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 *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -85829,21 +94323,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) 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_ { @@ -85851,11 +94345,16 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest) + 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/{+name}:resume") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -85866,14 +94365,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume" 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 *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -85892,7 +94391,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -85904,25 +94403,28 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Do(opts ...go } return ret, nil // { - // "description": "Deletes a ModelDeploymentMonitoringJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.delete", + // "description": "Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}:resume", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the model monitoring job to delete. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + // "description": "Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:resume", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -85931,101 +94433,95 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsDeleteCall) Do(opts ...go } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies": -type ProjectsLocationsModelDeploymentMonitoringJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall struct { + s *Service + modelDeploymentMonitoringJob string + googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a ModelDeploymentMonitoringJob. +// SearchModelDeploymentMonitoringStatsAnomalies: Searches Model +// Monitoring Statistics generated within a given time window. // -// - name: The resource name of the ModelDeploymentMonitoringJob. -// Format: +// - modelDeploymentMonitoringJob: ModelDeploymentMonitoring Job +// resource name. Format: // `projects/{project}/locations/{location}/modelDeploymentMonitoringJo // bs/{model_deployment_monitoring_job}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Get(name string) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) SearchModelDeploymentMonitoringStatsAnomalies(modelDeploymentMonitoringJob string, googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest) *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.modelDeploymentMonitoringJob = modelDeploymentMonitoringJob + c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest = googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest 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 *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { - 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 *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsGetCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) 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.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest) + 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/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies") 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, + "modelDeploymentMonitoringJob": c.modelDeploymentMonitoringJob, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get" call. +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies" call. // Exactly one of -// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob.ServerRespon -// se.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob, error) { +// *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnoma +// liesResponse or error will be non-nil. Any non-2xx status code is an +// error. Response headers are in either +// *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnoma +// liesResponse.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -86044,7 +94540,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob{ + ret := &GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -86056,25 +94552,28 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Do(opts ...googl } return ret, nil // { - // "description": "Gets a ModelDeploymentMonitoringJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.get", + // "description": "Searches Model Monitoring Statistics generated within a given time window.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}:searchModelDeploymentMonitoringStatsAnomalies", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies", // "parameterOrder": [ - // "name" + // "modelDeploymentMonitoringJob" // ], // "parameters": { - // "name": { - // "description": "Required. The resource name of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + // "modelDeploymentMonitoringJob": { + // "description": "Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" + // "$ref": "GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -86083,139 +94582,113 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list": - -type ProjectsLocationsModelDeploymentMonitoringJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists ModelDeploymentMonitoringJobs in a Location. -// -// - parent: The parent of the ModelDeploymentMonitoringJob. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) List(parent string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Filter(filter string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { - c.urlParams_.Set("filter", filter) - return c +// 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 *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { + c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest.PageToken = pt + }(c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest.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.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest.PageToken = x.NextPageToken + } } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) PageSize(pageSize int64) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel": -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) PageToken(pageToken string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +type ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read -func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) ReadMask(readMask string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { - c.urlParams_.Set("readMask", readMask) +// 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Cancel(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall{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 *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { - 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 *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsListCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) 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/{+parent}/modelDeploymentMonitoringJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse -// -// or error will be non-nil. Any non-2xx status code is an error. -// -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse -// .ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -86234,7 +94707,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -86246,129 +94719,59 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Do(opts ...goog } return ret, nil // { - // "description": "Lists ModelDeploymentMonitoringJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.list", + // "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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", - // "location": "query", - // "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" - // }, - // "parent": { - // "description": "Required. The parent of the ModelDeploymentMonitoringJob. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/modelDeploymentMonitoringJobs", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "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 *ProjectsLocationsModelDeploymentMonitoringJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelDeploymentMonitoringJobsResponse) 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) - } + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.patch": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete": -type ProjectsLocationsModelDeploymentMonitoringJobsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a ModelDeploymentMonitoringJob. +// 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: Output only. Resource name of a ModelDeploymentMonitoringJob. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Patch(name string, googlecloudaiplatformv1beta1modeldeploymentmonitoringjob *GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Delete(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob = googlecloudaiplatformv1beta1modeldeploymentmonitoringjob - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask is used to specify the fields to be overwritten in the -// ModelDeploymentMonitoringJob resource by the update. The fields -// specified in the update_mask are relative to the resource, not the -// full request. A field will be overwritten if it is in the mask. If -// the user does not provide a mask then only the non-empty fields -// present in the request will be overwritten. Set the update_mask to -// `*` to override all fields. For the objective config, the user can -// either provide the update mask for -// model_deployment_monitoring_objective_configs or any combination of -// its nested fields, such as: -// model_deployment_monitoring_objective_configs.objective_config.trainin -// g_dataset. Updatable fields: * `display_name` * -// `model_deployment_monitoring_schedule_config` * -// `model_monitoring_alert_config` * `logging_sampling_strategy` * -// `labels` * `log_ttl` * `enable_monitoring_pipeline_logs` . and * -// `model_deployment_monitoring_objective_configs` . or * -// `model_deployment_monitoring_objective_configs.objective_config.traini -// ng_dataset` * -// `model_deployment_monitoring_objective_configs.objective_config.traini -// ng_prediction_skew_detection_config` * -// `model_deployment_monitoring_objective_configs.objective_config.predic -// tion_drift_detection_config` -func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { - 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 *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -86376,21 +94779,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) 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 *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) 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_ { @@ -86398,16 +94801,11 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1modeldeploymentmonitoringjob) - 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 += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -86418,14 +94816,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -86444,7 +94842,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -86456,34 +94854,25 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Do(opts ...goo } return ret, nil // { - // "description": "Updates a ModelDeploymentMonitoringJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.patch", + // "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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Output only. Resource name of a ModelDeploymentMonitoringJob.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask is used to specify the fields to be overwritten in the ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. For the objective config, the user can either provide the update mask for model_deployment_monitoring_objective_configs or any combination of its nested fields, such as: model_deployment_monitoring_objective_configs.objective_config.training_dataset. Updatable fields: * `display_name` * `model_deployment_monitoring_schedule_config` * `model_monitoring_alert_config` * `logging_sampling_strategy` * `labels` * `log_ttl` * `enable_monitoring_pipeline_logs` . and * `model_deployment_monitoring_objective_configs` . or * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config`", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob" - // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -86492,75 +94881,79 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPatchCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get": -type ProjectsLocationsModelDeploymentMonitoringJobsPauseCall struct { - s *Service - name string - googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Pause: Pauses a ModelDeploymentMonitoringJob. If the job is running, -// the server makes a best effort to cancel the job. Will mark -// ModelDeploymentMonitoringJob.state to 'PAUSED'. +// 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 resource name of the ModelDeploymentMonitoringJob to -// pause. Format: -// `projects/{project}/locations/{location}/modelDeploymentMonitoringJo -// bs/{model_deployment_monitoring_job}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Pause(name string, googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest) *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Get(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest = googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest 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 *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { + 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 *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1pausemodeldeploymentmonitoringjobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:pause") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -86571,14 +94964,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause" 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.modelDeploymentMonitoringJobs.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 *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -86597,7 +94990,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Do(opts ...goo 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, @@ -86609,28 +95002,25 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Do(opts ...goo } return ret, nil // { - // "description": "Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}:pause", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.pause", + // "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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The resource name of the ModelDeploymentMonitoringJob to pause. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:pause", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PauseModelDeploymentMonitoringJobRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -86639,75 +95029,100 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsPauseCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume": +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list": -type ProjectsLocationsModelDeploymentMonitoringJobsResumeCall struct { - s *Service - name string - googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Resume: Resumes a paused ModelDeploymentMonitoringJob. It will start -// to run from next scheduled time. A deleted -// ModelDeploymentMonitoringJob can't be resumed. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - name: The resource name of the ModelDeploymentMonitoringJob to -// resume. Format: -// `projects/{project}/locations/{location}/modelDeploymentMonitoringJo -// bs/{model_deployment_monitoring_job}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) Resume(name string, googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest *GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest) *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) List(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest = googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Filter(filter string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { + 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 *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { + 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 *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1resumemodeldeploymentmonitoringjobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:resume") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -86718,14 +95133,15 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume" 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 +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -86744,7 +95160,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -86756,28 +95172,41 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Do(opts ...go } return ret, nil // { - // "description": "Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}:resume", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.resume", + // "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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The resource name of the ModelDeploymentMonitoringJob to resume. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + // "description": "The name of the operation's parent resource.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", // "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}:resume", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ResumeModelDeploymentMonitoringJobRequest" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -86786,35 +95215,68 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsResumeCall) Do(opts ...go } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies": +// 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) 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) + } +} -type ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall struct { - s *Service - modelDeploymentMonitoringJob string - googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.wait": + +type ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SearchModelDeploymentMonitoringStatsAnomalies: Searches Model -// Monitoring Statistics generated within a given time window. +// 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. // -// - modelDeploymentMonitoringJob: ModelDeploymentMonitoring Job -// resource name. Format: -// `projects/{project}/locations/{location}/modelDeploymentMonitoringJo -// bs/{model_deployment_monitoring_job}`. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsService) SearchModelDeploymentMonitoringStatsAnomalies(modelDeploymentMonitoringJob string, googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest) *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.modelDeploymentMonitoringJob = modelDeploymentMonitoringJob - c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest = googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Wait(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { + c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall{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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { + 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 *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -86822,21 +95284,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni // 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 *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Header() http.Header { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) 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_ { @@ -86844,14 +95306,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest) - 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/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -86859,22 +95316,19 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "modelDeploymentMonitoringJob": c.modelDeploymentMonitoringJob, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnoma -// liesResponse or error will be non-nil. Any non-2xx status code is an -// error. Response headers are in either -// *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnoma -// liesResponse.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse, error) { +// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -86893,7 +95347,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -86905,28 +95359,31 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni } return ret, nil // { - // "description": "Searches Model Monitoring Statistics generated within a given time window.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}:searchModelDeploymentMonitoringStatsAnomalies", + // "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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.searchModelDeploymentMonitoringStatsAnomalies", + // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.wait", // "parameterOrder": [ - // "modelDeploymentMonitoringJob" + // "name" // ], // "parameters": { - // "modelDeploymentMonitoringJob": { - // "description": "Required. ModelDeploymentMonitoring Job resource name. Format: `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/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/{+modelDeploymentMonitoringJob}:searchModelDeploymentMonitoringStatsAnomalies", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -86935,32 +95392,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMoni } -// 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 *ProjectsLocationsModelDeploymentMonitoringJobsSearchModelDeploymentMonitoringStatsAnomaliesCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomaliesResponse) error) error { - c.ctx_ = ctx - defer func(pt string) { - c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest.PageToken = pt - }(c.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest.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.googlecloudaiplatformv1beta1searchmodeldeploymentmonitoringstatsanomaliesrequest.PageToken = x.NextPageToken - } -} - -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel": +// method id "aiplatform.projects.locations.modelMonitors.operations.cancel": -type ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall struct { +type ProjectsLocationsModelMonitorsOperationsCancelCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -86980,8 +95414,8 @@ type ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall struct { // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Cancel(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsModelMonitorsOperationsService) Cancel(name string) *ProjectsLocationsModelMonitorsOperationsCancelCall { + c := &ProjectsLocationsModelMonitorsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -86989,7 +95423,7 @@ func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Cancel // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall { +func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -86997,21 +95431,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall { +func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsCancelCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) 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_ { @@ -87034,14 +95468,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) doR return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.modelMonitors.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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -87073,9 +95507,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Do( 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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}:cancel", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelMonitors/{modelMonitorsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.cancel", + // "id": "aiplatform.projects.locations.modelMonitors.operations.cancel", // "parameterOrder": [ // "name" // ], @@ -87083,7 +95517,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Do( // "name": { // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -87099,9 +95533,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsCancelCall) Do( } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete": +// method id "aiplatform.projects.locations.modelMonitors.operations.delete": -type ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall struct { +type ProjectsLocationsModelMonitorsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -87115,8 +95549,8 @@ type ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall struct { // it returns `google.rpc.Code.UNIMPLEMENTED`. // // - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Delete(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsModelMonitorsOperationsService) Delete(name string) *ProjectsLocationsModelMonitorsOperationsDeleteCall { + c := &ProjectsLocationsModelMonitorsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -87124,7 +95558,7 @@ func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Delete // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall { +func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -87132,21 +95566,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall { +func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsDeleteCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) 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_ { @@ -87169,14 +95603,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) doR return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete" call. +// Do executes the "aiplatform.projects.locations.modelMonitors.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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -87208,9 +95642,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Do( 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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelMonitors/{modelMonitorsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.delete", + // "id": "aiplatform.projects.locations.modelMonitors.operations.delete", // "parameterOrder": [ // "name" // ], @@ -87218,7 +95652,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Do( // "name": { // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -87234,9 +95668,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsDeleteCall) Do( } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get": +// method id "aiplatform.projects.locations.modelMonitors.operations.get": -type ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall struct { +type ProjectsLocationsModelMonitorsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -87250,8 +95684,8 @@ type ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall struct { // recommended by the API service. // // - name: The name of the operation resource. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Get(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsModelMonitorsOperationsService) Get(name string) *ProjectsLocationsModelMonitorsOperationsGetCall { + c := &ProjectsLocationsModelMonitorsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -87259,7 +95693,7 @@ func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Get(na // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { +func (c *ProjectsLocationsModelMonitorsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -87269,7 +95703,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Fields // 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { +func (c *ProjectsLocationsModelMonitorsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelMonitorsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -87277,21 +95711,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) IfNone // 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall { +func (c *ProjectsLocationsModelMonitorsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsGetCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelMonitorsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelMonitorsOperationsGetCall) 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_ { @@ -87317,14 +95751,14 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) doRequ return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get" call. +// Do executes the "aiplatform.projects.locations.modelMonitors.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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelMonitorsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -87356,9 +95790,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Do(opt 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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelMonitors/{modelMonitorsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.get", + // "id": "aiplatform.projects.locations.modelMonitors.operations.get", // "parameterOrder": [ // "name" // ], @@ -87366,7 +95800,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Do(opt // "name": { // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } @@ -87382,9 +95816,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsGetCall) Do(opt } -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list": +// method id "aiplatform.projects.locations.modelMonitors.operations.list": -type ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall struct { +type ProjectsLocationsModelMonitorsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -87398,29 +95832,29 @@ type ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall struct { // `UNIMPLEMENTED`. // // - name: The name of the operation's parent resource. -func (r *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) List(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsModelMonitorsOperationsService) List(name string) *ProjectsLocationsModelMonitorsOperationsListCall { + c := &ProjectsLocationsModelMonitorsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Filter(filter string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) Filter(filter string) *ProjectsLocationsModelMonitorsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelMonitorsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list // page token. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelMonitorsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -87428,7 +95862,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) PageT // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -87438,7 +95872,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Field // 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelMonitorsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -87446,21 +95880,21 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) IfNon // 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsListCall { 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) 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_ { @@ -87486,7 +95920,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) doReq return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list" call. +// Do executes the "aiplatform.projects.locations.modelMonitors.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 @@ -87494,7 +95928,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) doReq // a response was returned at all) in error.(*googleapi.Error).Header. // Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -87526,9 +95960,9 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Do(op 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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/modelMonitors/{modelMonitorsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.list", + // "id": "aiplatform.projects.locations.modelMonitors.operations.list", // "parameterOrder": [ // "name" // ], @@ -87541,7 +95975,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Do(op // "name": { // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$", // "required": true, // "type": "string" // }, @@ -87571,7 +96005,7 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Do(op // 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsModelMonitorsOperationsListCall) 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 { @@ -87583,171 +96017,15 @@ func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsListCall) Pages return err } if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -// method id "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.wait": - -type ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsService) Wait(name string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { - c := &ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall{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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { - 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { - 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall { - 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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) 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.modelDeploymentMonitoringJobs.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 *ProjectsLocationsModelDeploymentMonitoringJobsOperationsWaitCall) 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}/modelDeploymentMonitoringJobs/{modelDeploymentMonitoringJobsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelDeploymentMonitoringJobs.operations.wait", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelDeploymentMonitoringJobs/[^/]+/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" - // ] - // } - + return nil + } + c.PageToken(x.NextPageToken) + } } -// method id "aiplatform.projects.locations.modelMonitors.operations.cancel": +// method id "aiplatform.projects.locations.modelMonitors.operations.wait": -type ProjectsLocationsModelMonitorsOperationsCancelCall struct { +type ProjectsLocationsModelMonitorsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -87755,28 +96033,37 @@ type ProjectsLocationsModelMonitorsOperationsCancelCall struct { 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`. +// 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 be cancelled. -func (r *ProjectsLocationsModelMonitorsOperationsService) Cancel(name string) *ProjectsLocationsModelMonitorsOperationsCancelCall { - c := &ProjectsLocationsModelMonitorsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsModelMonitorsOperationsService) Wait(name string) *ProjectsLocationsModelMonitorsOperationsWaitCall { + c := &ProjectsLocationsModelMonitorsOperationsWaitCall{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 *ProjectsLocationsModelMonitorsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelMonitorsOperationsWaitCall { + 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 *ProjectsLocationsModelMonitorsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsCancelCall { +func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -87784,21 +96071,21 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) 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 *ProjectsLocationsModelMonitorsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsCancelCall { +func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsWaitCall { 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 *ProjectsLocationsModelMonitorsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) 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_ { @@ -87808,7 +96095,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) doRequest(alt strin 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -87821,14 +96108,14 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelMonitors.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.modelMonitors.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 *ProjectsLocationsModelMonitorsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -87847,7 +96134,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -87859,25 +96146,31 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) 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}/modelMonitors/{modelMonitorsId}/operations/{operationsId}:cancel", + // "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}/modelMonitors/{modelMonitorsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelMonitors.operations.cancel", + // "id": "aiplatform.projects.locations.modelMonitors.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation resource to wait on.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/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}:cancel", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -87886,32 +96179,36 @@ func (c *ProjectsLocationsModelMonitorsOperationsCancelCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.modelMonitors.operations.delete": +// method id "aiplatform.projects.locations.models.copy": -type ProjectsLocationsModelMonitorsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsCopyCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1copymodelrequest *GoogleCloudAiplatformV1beta1CopyModelRequest + 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`. +// Copy: Copies an already existing Vertex AI Model into the specified +// Location. The source Model must exist in the same Project. When +// copying custom Models, the users themselves are responsible for +// Model.metadata content to be region-agnostic, as well as making sure +// that any resources (e.g. files) it depends on remain accessible. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsModelMonitorsOperationsService) Delete(name string) *ProjectsLocationsModelMonitorsOperationsDeleteCall { - c := &ProjectsLocationsModelMonitorsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location into which to copy the +// Model. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsModelsService) Copy(parent string, googlecloudaiplatformv1beta1copymodelrequest *GoogleCloudAiplatformV1beta1CopyModelRequest) *ProjectsLocationsModelsCopyCall { + c := &ProjectsLocationsModelsCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1copymodelrequest = googlecloudaiplatformv1beta1copymodelrequest 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 *ProjectsLocationsModelMonitorsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsDeleteCall { +func (c *ProjectsLocationsModelsCopyCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsCopyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -87919,21 +96216,21 @@ func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) 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 *ProjectsLocationsModelMonitorsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsDeleteCall { +func (c *ProjectsLocationsModelsCopyCall) Context(ctx context.Context) *ProjectsLocationsModelsCopyCall { 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 *ProjectsLocationsModelMonitorsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsModelsCopyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsCopyCall) 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_ { @@ -87941,29 +96238,34 @@ func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1copymodelrequest) + 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}/models:copy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.modelMonitors.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.models.copy" 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 *ProjectsLocationsModelMonitorsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -87982,7 +96284,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -87994,25 +96296,28 @@ func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) 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}/modelMonitors/{modelMonitorsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.modelMonitors.operations.delete", + // "description": "Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models:copy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.copy", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "parent": { + // "description": "Required. The resource name of the Location into which to copy the Model. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/models:copy", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CopyModelRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -88021,24 +96326,24 @@ func (c *ProjectsLocationsModelMonitorsOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.modelMonitors.operations.get": +// method id "aiplatform.projects.locations.models.delete": -type ProjectsLocationsModelMonitorsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsDeleteCall struct { + s *Service + name string + 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. +// Delete: Deletes a Model. A model cannot be deleted if any Endpoint +// resource has a DeployedModel based on the model in its +// deployed_models field. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsModelMonitorsOperationsService) Get(name string) *ProjectsLocationsModelMonitorsOperationsGetCall { - c := &ProjectsLocationsModelMonitorsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Model resource to be deleted. Format: +// `projects/{project}/locations/{location}/models/{model}`. +func (r *ProjectsLocationsModelsService) Delete(name string) *ProjectsLocationsModelsDeleteCall { + c := &ProjectsLocationsModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -88046,54 +96351,41 @@ func (r *ProjectsLocationsModelMonitorsOperationsService) 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 *ProjectsLocationsModelMonitorsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsGetCall { +func (c *ProjectsLocationsModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsDeleteCall { 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 *ProjectsLocationsModelMonitorsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelMonitorsOperationsGetCall { - 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 *ProjectsLocationsModelMonitorsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsGetCall { +func (c *ProjectsLocationsModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelsDeleteCall { 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 *ProjectsLocationsModelMonitorsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelMonitorsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -88104,14 +96396,14 @@ func (c *ProjectsLocationsModelMonitorsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelMonitors.operations.get" call. +// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelMonitorsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -88142,18 +96434,18 @@ func (c *ProjectsLocationsModelMonitorsOperationsGetCall) 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}/modelMonitors/{modelMonitorsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.modelMonitors.operations.get", + // "description": "Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the model in its deployed_models field.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.models.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the Model resource to be deleted. Format: `projects/{project}/locations/{location}/models/{model}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } @@ -88169,100 +96461,68 @@ func (c *ProjectsLocationsModelMonitorsOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.modelMonitors.operations.list": +// method id "aiplatform.projects.locations.models.deleteVersion": -type ProjectsLocationsModelMonitorsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsDeleteVersionCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// DeleteVersion: Deletes a Model version. Model version can only be +// deleted if there are no DeployedModels created from it. Deleting the +// only version in the Model is not allowed. Use DeleteModel for +// deleting the Model instead. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsModelMonitorsOperationsService) List(name string) *ProjectsLocationsModelMonitorsOperationsListCall { - c := &ProjectsLocationsModelMonitorsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the model version to be deleted, with a version +// ID explicitly included. Example: +// `projects/{project}/locations/{location}/models/{model}@1234`. +func (r *ProjectsLocationsModelsService) DeleteVersion(name string) *ProjectsLocationsModelsDeleteVersionCall { + c := &ProjectsLocationsModelsDeleteVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsModelMonitorsOperationsListCall) Filter(filter string) *ProjectsLocationsModelMonitorsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsModelMonitorsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelMonitorsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsModelMonitorsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelMonitorsOperationsListCall { - 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 *ProjectsLocationsModelMonitorsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsListCall { +func (c *ProjectsLocationsModelsDeleteVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsDeleteVersionCall { 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 *ProjectsLocationsModelMonitorsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelMonitorsOperationsListCall { - 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 *ProjectsLocationsModelMonitorsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsListCall { +func (c *ProjectsLocationsModelsDeleteVersionCall) Context(ctx context.Context) *ProjectsLocationsModelsDeleteVersionCall { 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 *ProjectsLocationsModelMonitorsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsModelsDeleteVersionCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelMonitorsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsDeleteVersionCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:deleteVersion") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -88273,15 +96533,14 @@ func (c *ProjectsLocationsModelMonitorsOperationsListCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelMonitors.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 +// Do executes the "aiplatform.projects.locations.models.deleteVersion" 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 *ProjectsLocationsModelMonitorsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsModelsDeleteVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -88300,7 +96559,7 @@ func (c *ProjectsLocationsModelMonitorsOperationsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -88312,41 +96571,25 @@ func (c *ProjectsLocationsModelMonitorsOperationsListCall) 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}/modelMonitors/{modelMonitorsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.modelMonitors.operations.list", + // "description": "Deletes a Model version. Model version can only be deleted if there are no DeployedModels created from it. Deleting the only version in the Model is not allowed. Use DeleteModel for deleting the Model instead.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:deleteVersion", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.models.deleteVersion", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The name of the model version to be deleted, with a version ID explicitly included. Example: `projects/{project}/locations/{location}/models/{model}@1234`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "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", + // "path": "v1beta1/{+name}:deleteVersion", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -88355,68 +96598,35 @@ func (c *ProjectsLocationsModelMonitorsOperationsListCall) 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 *ProjectsLocationsModelMonitorsOperationsListCall) 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.modelMonitors.operations.wait": +// method id "aiplatform.projects.locations.models.export": -type ProjectsLocationsModelMonitorsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsExportCall struct { + s *Service + name string + googlecloudaiplatformv1beta1exportmodelrequest *GoogleCloudAiplatformV1beta1ExportModelRequest + 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. +// Export: Exports a trained, exportable Model to a location specified +// by the user. A Model is considered to be exportable if it has at +// least one supported export format. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsModelMonitorsOperationsService) Wait(name string) *ProjectsLocationsModelMonitorsOperationsWaitCall { - c := &ProjectsLocationsModelMonitorsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the Model to export. The resource name +// may contain version id or version alias to specify the version, if +// no version is specified, the default version will be exported. +func (r *ProjectsLocationsModelsService) Export(name string, googlecloudaiplatformv1beta1exportmodelrequest *GoogleCloudAiplatformV1beta1ExportModelRequest) *ProjectsLocationsModelsExportCall { + c := &ProjectsLocationsModelsExportCall{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 *ProjectsLocationsModelMonitorsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelMonitorsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) + c.googlecloudaiplatformv1beta1exportmodelrequest = googlecloudaiplatformv1beta1exportmodelrequest 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 *ProjectsLocationsModelMonitorsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelMonitorsOperationsWaitCall { +func (c *ProjectsLocationsModelsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsExportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -88424,21 +96634,21 @@ func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) 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 *ProjectsLocationsModelMonitorsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelMonitorsOperationsWaitCall { +func (c *ProjectsLocationsModelsExportCall) Context(ctx context.Context) *ProjectsLocationsModelsExportCall { 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 *ProjectsLocationsModelMonitorsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsModelsExportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsExportCall) 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_ { @@ -88446,9 +96656,14 @@ func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1exportmodelrequest) + 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}:export") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -88461,14 +96676,14 @@ func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.modelMonitors.operations.wait" call. +// Do executes the "aiplatform.projects.locations.models.export" 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 *ProjectsLocationsModelMonitorsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -88499,29 +96714,26 @@ func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) 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}/modelMonitors/{modelMonitorsId}/operations/{operationsId}:wait", + // "description": "Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one supported export format.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:export", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.modelMonitors.operations.wait", + // "id": "aiplatform.projects.locations.models.export", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Required. The resource name of the Model to export. The resource name may contain version id or version alias to specify the version, if no version is specified, the default version will be exported.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/modelMonitors/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "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}:export", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ExportModelRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -88532,93 +96744,105 @@ func (c *ProjectsLocationsModelMonitorsOperationsWaitCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.models.copy": +// method id "aiplatform.projects.locations.models.get": -type ProjectsLocationsModelsCopyCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1copymodelrequest *GoogleCloudAiplatformV1beta1CopyModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Copy: Copies an already existing Vertex AI Model into the specified -// Location. The source Model must exist in the same Project. When -// copying custom Models, the users themselves are responsible for -// Model.metadata content to be region-agnostic, as well as making sure -// that any resources (e.g. files) it depends on remain accessible. +// Get: Gets a Model. // -// - parent: The resource name of the Location into which to copy the -// Model. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsModelsService) Copy(parent string, googlecloudaiplatformv1beta1copymodelrequest *GoogleCloudAiplatformV1beta1CopyModelRequest) *ProjectsLocationsModelsCopyCall { - c := &ProjectsLocationsModelsCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1copymodelrequest = googlecloudaiplatformv1beta1copymodelrequest +// - name: The name of the Model resource. Format: +// `projects/{project}/locations/{location}/models/{model}` In order +// to retrieve a specific version of the model, also provide the +// version ID or version alias. Example: +// `projects/{project}/locations/{location}/models/{model}@2` or +// `projects/{project}/locations/{location}/models/{model}@golden` If +// no version ID or alias is specified, the "default" version will be +// returned. The "default" version alias is created for the first +// version of the model, and can be moved to other versions later on. +// There will be exactly one default version. +func (r *ProjectsLocationsModelsService) Get(name string) *ProjectsLocationsModelsGetCall { + c := &ProjectsLocationsModelsGetCall{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 *ProjectsLocationsModelsCopyCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsCopyCall { +func (c *ProjectsLocationsModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsGetCall { 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 *ProjectsLocationsModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsGetCall { + 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 *ProjectsLocationsModelsCopyCall) Context(ctx context.Context) *ProjectsLocationsModelsCopyCall { +func (c *ProjectsLocationsModelsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsGetCall { 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 *ProjectsLocationsModelsCopyCall) Header() http.Header { +func (c *ProjectsLocationsModelsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsCopyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1copymodelrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/models:copy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.copy" 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 *ProjectsLocationsModelsCopyCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.models.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Model or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Model.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Model, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -88637,7 +96861,7 @@ func (c *ProjectsLocationsModelsCopyCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1Model{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -88649,28 +96873,25 @@ func (c *ProjectsLocationsModelsCopyCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for Model.metadata content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models:copy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.copy", + // "description": "Gets a Model.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location into which to copy the Model. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the Model resource. Format: `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific version of the model, also provide the version ID or version alias. Example: `projects/{project}/locations/{location}/models/{model}@2` or `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is specified, the \"default\" version will be returned. The \"default\" version alias is created for the first version of the model, and can be moved to other versions later on. There will be exactly one default version.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/models:copy", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CopyModelRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1Model" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -88679,32 +96900,52 @@ func (c *ProjectsLocationsModelsCopyCall) Do(opts ...googleapi.CallOption) (*Goo } -// method id "aiplatform.projects.locations.models.delete": +// method id "aiplatform.projects.locations.models.getIamPolicy": -type ProjectsLocationsModelsDeleteCall struct { +type ProjectsLocationsModelsGetIamPolicyCall struct { s *Service - name string + resource string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a Model. A model cannot be deleted if any Endpoint -// resource has a DeployedModel based on the model in its -// deployed_models field. +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - name: The name of the Model resource to be deleted. Format: -// `projects/{project}/locations/{location}/models/{model}`. -func (r *ProjectsLocationsModelsService) Delete(name string) *ProjectsLocationsModelsDeleteCall { - c := &ProjectsLocationsModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsModelsService) GetIamPolicy(resource string) *ProjectsLocationsModelsGetIamPolicyCall { + c := &ProjectsLocationsModelsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsModelsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsModelsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsDeleteCall { +func (c *ProjectsLocationsModelsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -88712,21 +96953,21 @@ func (c *ProjectsLocationsModelsDeleteCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelsDeleteCall { +func (c *ProjectsLocationsModelsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsModelsGetIamPolicyCall { 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 *ProjectsLocationsModelsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsModelsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsGetIamPolicyCall) 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_ { @@ -88736,27 +96977,27 @@ func (c *ProjectsLocationsModelsDeleteCall) doRequest(alt string) (*http.Respons var body io.Reader = nil 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/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.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 +// Do executes the "aiplatform.projects.locations.models.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -88775,7 +97016,7 @@ func (c *ProjectsLocationsModelsDeleteCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -88787,25 +97028,31 @@ func (c *ProjectsLocationsModelsDeleteCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the model in its deployed_models field.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.models.delete", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the Model resource to be deleted. Format: `projects/{project}/locations/{location}/models/{model}`", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -88814,86 +97061,135 @@ func (c *ProjectsLocationsModelsDeleteCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.models.deleteVersion": +// method id "aiplatform.projects.locations.models.list": -type ProjectsLocationsModelsDeleteVersionCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// DeleteVersion: Deletes a Model version. Model version can only be -// deleted if there are no DeployedModels created from it. Deleting the -// only version in the Model is not allowed. Use DeleteModel for -// deleting the Model instead. +// List: Lists Models in a Location. // -// - name: The name of the model version to be deleted, with a version -// ID explicitly included. Example: -// `projects/{project}/locations/{location}/models/{model}@1234`. -func (r *ProjectsLocationsModelsService) DeleteVersion(name string) *ProjectsLocationsModelsDeleteVersionCall { - c := &ProjectsLocationsModelsDeleteVersionCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list the Models from. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsModelsService) List(parent string) *ProjectsLocationsModelsListCall { + c := &ProjectsLocationsModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `model` supports = and !=. `model` +// represents the Model ID, i.e. the last segment of the Model's +// resource name. * `display_name` supports = and != * `labels` supports +// general map functions that is: * `labels.key=value` - key:value +// equality * `labels.key:* or labels:key - key existence * A key +// including a space must be quoted. `labels."a key". Some examples: * +// `model=1234` * `displayName="myDisplayName" * +// `labels.myKey="myValue" +func (c *ProjectsLocationsModelsListCall) Filter(filter string) *ProjectsLocationsModelsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsModelsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via ListModelsResponse.next_page_token +// of the previous ModelService.ListModels call. +func (c *ProjectsLocationsModelsListCall) PageToken(pageToken string) *ProjectsLocationsModelsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsModelsListCall) ReadMask(readMask string) *ProjectsLocationsModelsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsDeleteVersionCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsDeleteVersionCall { +func (c *ProjectsLocationsModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsListCall { 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 *ProjectsLocationsModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsListCall { + 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 *ProjectsLocationsModelsDeleteVersionCall) Context(ctx context.Context) *ProjectsLocationsModelsDeleteVersionCall { +func (c *ProjectsLocationsModelsListCall) Context(ctx context.Context) *ProjectsLocationsModelsListCall { 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 *ProjectsLocationsModelsDeleteVersionCall) Header() http.Header { +func (c *ProjectsLocationsModelsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsDeleteVersionCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsListCall) 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}:deleteVersion") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/models") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.deleteVersion" 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 *ProjectsLocationsModelsDeleteVersionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.models.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListModelsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListModelsResponse.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -88912,7 +97208,7 @@ func (c *ProjectsLocationsModelsDeleteVersionCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListModelsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -88924,25 +97220,47 @@ func (c *ProjectsLocationsModelsDeleteVersionCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Deletes a Model version. Model version can only be deleted if there are no DeployedModels created from it. Deleting the only version in the Model is not allowed. Use DeleteModel for deleting the Model instead.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:deleteVersion", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.models.deleteVersion", + // "description": "Lists Models in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the model version to be deleted, with a version ID explicitly included. Example: `projects/{project}/locations/{location}/models/{model}@1234`", + // "filter": { + // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListModelsResponse.next_page_token of the previous ModelService.ListModels call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the Models from. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:deleteVersion", + // "path": "v1beta1/{+parent}/models", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListModelsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -88951,74 +97269,141 @@ func (c *ProjectsLocationsModelsDeleteVersionCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.models.export": +// 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 *ProjectsLocationsModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelsResponse) 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) + } +} -type ProjectsLocationsModelsExportCall struct { - s *Service - name string - googlecloudaiplatformv1beta1exportmodelrequest *GoogleCloudAiplatformV1beta1ExportModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.models.listVersions": + +type ProjectsLocationsModelsListVersionsCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Export: Exports a trained, exportable Model to a location specified -// by the user. A Model is considered to be exportable if it has at -// least one supported export format. +// ListVersions: Lists versions of the specified model. // -// - name: The resource name of the Model to export. The resource name -// may contain version id or version alias to specify the version, if -// no version is specified, the default version will be exported. -func (r *ProjectsLocationsModelsService) Export(name string, googlecloudaiplatformv1beta1exportmodelrequest *GoogleCloudAiplatformV1beta1ExportModelRequest) *ProjectsLocationsModelsExportCall { - c := &ProjectsLocationsModelsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the model to list versions for. +func (r *ProjectsLocationsModelsService) ListVersions(name string) *ProjectsLocationsModelsListVersionsCall { + c := &ProjectsLocationsModelsListVersionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1exportmodelrequest = googlecloudaiplatformv1beta1exportmodelrequest + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `labels` supports general map +// functions that is: * `labels.key=value` - key:value equality * +// `labels.key:* or labels:key - key existence * A key including a space +// must be quoted. `labels."a key". Some examples: * +// `labels.myKey="myValue" +func (c *ProjectsLocationsModelsListVersionsCall) Filter(filter string) *ProjectsLocationsModelsListVersionsCall { + 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: * `create_time` * +// `update_time` Example: `update_time asc, create_time desc`. +func (c *ProjectsLocationsModelsListVersionsCall) OrderBy(orderBy string) *ProjectsLocationsModelsListVersionsCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsModelsListVersionsCall) PageSize(pageSize int64) *ProjectsLocationsModelsListVersionsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via next_page_token of the previous +// ListModelVersions call. +func (c *ProjectsLocationsModelsListVersionsCall) PageToken(pageToken string) *ProjectsLocationsModelsListVersionsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsModelsListVersionsCall) ReadMask(readMask string) *ProjectsLocationsModelsListVersionsCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsExportCall { +func (c *ProjectsLocationsModelsListVersionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsListVersionsCall { 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 *ProjectsLocationsModelsListVersionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsListVersionsCall { + 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 *ProjectsLocationsModelsExportCall) Context(ctx context.Context) *ProjectsLocationsModelsExportCall { +func (c *ProjectsLocationsModelsListVersionsCall) Context(ctx context.Context) *ProjectsLocationsModelsListVersionsCall { 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 *ProjectsLocationsModelsExportCall) Header() http.Header { +func (c *ProjectsLocationsModelsListVersionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsExportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsListVersionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1exportmodelrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:export") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:listVersions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -89029,14 +97414,16 @@ func (c *ProjectsLocationsModelsExportCall) doRequest(alt string) (*http.Respons return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.export" 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 *ProjectsLocationsModelsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.models.listVersions" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListModelVersionsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListModelVersionsResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsListVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89055,7 +97442,7 @@ func (c *ProjectsLocationsModelsExportCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListModelVersionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89067,28 +97454,52 @@ func (c *ProjectsLocationsModelsExportCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one supported export format.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:export", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.export", + // "description": "Lists versions of the specified model.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:listVersions", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.listVersions", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `labels.myKey=\"myValue\"`", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The resource name of the Model to export. The resource name may contain version id or version alias to specify the version, if no version is specified, the default version will be exported.", + // "description": "Required. The name of the model to list versions for.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time` * `update_time` Example: `update_time asc, create_time desc`.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via next_page_token of the previous ListModelVersions call.", + // "location": "query", + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:export", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ExportModelRequest" - // }, + // "path": "v1beta1/{+name}:listVersions", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListModelVersionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -89097,86 +97508,93 @@ func (c *ProjectsLocationsModelsExportCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.models.get": +// 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 *ProjectsLocationsModelsListVersionsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelVersionsResponse) 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) + } +} -type ProjectsLocationsModelsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.models.mergeVersionAliases": + +type ProjectsLocationsModelsMergeVersionAliasesCall struct { + s *Service + name string + googlecloudaiplatformv1beta1mergeversionaliasesrequest *GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a Model. +// MergeVersionAliases: Merges a set of aliases for a Model version. // -// - name: The name of the Model resource. Format: -// `projects/{project}/locations/{location}/models/{model}` In order -// to retrieve a specific version of the model, also provide the -// version ID or version alias. Example: -// `projects/{project}/locations/{location}/models/{model}@2` or -// `projects/{project}/locations/{location}/models/{model}@golden` If -// no version ID or alias is specified, the "default" version will be -// returned. The "default" version alias is created for the first -// version of the model, and can be moved to other versions later on. -// There will be exactly one default version. -func (r *ProjectsLocationsModelsService) Get(name string) *ProjectsLocationsModelsGetCall { - c := &ProjectsLocationsModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the model version to merge aliases, with a +// version ID explicitly included. Example: +// `projects/{project}/locations/{location}/models/{model}@1234`. +func (r *ProjectsLocationsModelsService) MergeVersionAliases(name string, googlecloudaiplatformv1beta1mergeversionaliasesrequest *GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest) *ProjectsLocationsModelsMergeVersionAliasesCall { + c := &ProjectsLocationsModelsMergeVersionAliasesCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1mergeversionaliasesrequest = googlecloudaiplatformv1beta1mergeversionaliasesrequest 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 *ProjectsLocationsModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsGetCall { +func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsMergeVersionAliasesCall { 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 *ProjectsLocationsModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsGetCall { - 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 *ProjectsLocationsModelsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsGetCall { +func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Context(ctx context.Context) *ProjectsLocationsModelsMergeVersionAliasesCall { 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 *ProjectsLocationsModelsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsMergeVersionAliasesCall) 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.googlecloudaiplatformv1beta1mergeversionaliasesrequest) + 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/{+name}:mergeVersionAliases") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -89187,7 +97605,7 @@ func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.get" call. +// Do executes the "aiplatform.projects.locations.models.mergeVersionAliases" call. // Exactly one of *GoogleCloudAiplatformV1beta1Model or error will be // non-nil. Any non-2xx status code is an error. Response headers are in // either *GoogleCloudAiplatformV1beta1Model.ServerResponse.Header or @@ -89195,7 +97613,7 @@ func (c *ProjectsLocationsModelsGetCall) doRequest(alt string) (*http.Response, // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Model, error) { +func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Model, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89226,23 +97644,26 @@ func (c *ProjectsLocationsModelsGetCall) Do(opts ...googleapi.CallOption) (*Goog } return ret, nil // { - // "description": "Gets a Model.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.get", + // "description": "Merges a set of aliases for a Model version.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:mergeVersionAliases", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.mergeVersionAliases", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the Model resource. Format: `projects/{project}/locations/{location}/models/{model}` In order to retrieve a specific version of the model, also provide the version ID or version alias. Example: `projects/{project}/locations/{location}/models/{model}@2` or `projects/{project}/locations/{location}/models/{model}@golden` If no version ID or alias is specified, the \"default\" version will be returned. The \"default\" version alias is created for the first version of the model, and can be moved to other versions later on. There will be exactly one default version.", + // "description": "Required. The name of the model version to merge aliases, with a version ID explicitly included. Example: `projects/{project}/locations/{location}/models/{model}@1234`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:mergeVersionAliases", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest" + // }, // "response": { // "$ref": "GoogleCloudAiplatformV1beta1Model" // }, @@ -89253,52 +97674,39 @@ func (c *ProjectsLocationsModelsGetCall) Do(opts ...googleapi.CallOption) (*Goog } -// method id "aiplatform.projects.locations.models.getIamPolicy": +// method id "aiplatform.projects.locations.models.patch": -type ProjectsLocationsModelsGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1model *GoogleCloudAiplatformV1beta1Model + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// Patch: Updates a Model. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsModelsService) GetIamPolicy(resource string) *ProjectsLocationsModelsGetIamPolicyCall { - c := &ProjectsLocationsModelsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - name: The resource name of the Model. +func (r *ProjectsLocationsModelsService) Patch(name string, googlecloudaiplatformv1beta1model *GoogleCloudAiplatformV1beta1Model) *ProjectsLocationsModelsPatchCall { + c := &ProjectsLocationsModelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1model = googlecloudaiplatformv1beta1model return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsModelsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsModelsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// UpdateMask sets the optional parameter "updateMask": Required. The +// update mask applies to the resource. For the `FieldMask` definition, +// see google.protobuf.FieldMask. +func (c *ProjectsLocationsModelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsModelsPatchCall { + 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 *ProjectsLocationsModelsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsGetIamPolicyCall { +func (c *ProjectsLocationsModelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -89306,21 +97714,21 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsModelsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsModelsGetIamPolicyCall { +func (c *ProjectsLocationsModelsPatchCall) Context(ctx context.Context) *ProjectsLocationsModelsPatchCall { 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 *ProjectsLocationsModelsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsModelsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsPatchCall) 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_ { @@ -89328,29 +97736,35 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1model) + 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/{+resource}:getIamPolicy") + 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 } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsModelsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "aiplatform.projects.locations.models.patch" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Model or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Model.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Model, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89369,7 +97783,7 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudAiplatformV1beta1Model{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89381,31 +97795,34 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.getIamPolicy", + // "description": "Updates a Model.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.models.patch", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The resource name of the Model.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:getIamPolicy", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Model" + // }, // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudAiplatformV1beta1Model" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -89414,135 +97831,93 @@ func (c *ProjectsLocationsModelsGetIamPolicyCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.models.list": +// method id "aiplatform.projects.locations.models.setIamPolicy": -type ProjectsLocationsModelsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists Models in a Location. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - parent: The resource name of the Location to list the Models from. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsModelsService) List(parent string) *ProjectsLocationsModelsListCall { - c := &ProjectsLocationsModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `model` supports = and !=. `model` -// represents the Model ID, i.e. the last segment of the Model's -// resource name. * `display_name` supports = and != * `labels` supports -// general map functions that is: * `labels.key=value` - key:value -// equality * `labels.key:* or labels:key - key existence * A key -// including a space must be quoted. `labels."a key". Some examples: * -// `model=1234` * `displayName="myDisplayName" * -// `labels.myKey="myValue" -func (c *ProjectsLocationsModelsListCall) Filter(filter string) *ProjectsLocationsModelsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsModelsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via ListModelsResponse.next_page_token -// of the previous ModelService.ListModels call. -func (c *ProjectsLocationsModelsListCall) PageToken(pageToken string) *ProjectsLocationsModelsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsModelsListCall) ReadMask(readMask string) *ProjectsLocationsModelsListCall { - c.urlParams_.Set("readMask", readMask) +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsModelsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsModelsSetIamPolicyCall { + c := &ProjectsLocationsModelsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsListCall { +func (c *ProjectsLocationsModelsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsSetIamPolicyCall { 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 *ProjectsLocationsModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsListCall { - 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 *ProjectsLocationsModelsListCall) Context(ctx context.Context) *ProjectsLocationsModelsListCall { +func (c *ProjectsLocationsModelsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsModelsSetIamPolicyCall { 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 *ProjectsLocationsModelsListCall) Header() http.Header { +func (c *ProjectsLocationsModelsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsSetIamPolicyCall) 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.googleiamv1setiampolicyrequest) + 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/{+parent}/models") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") 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{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListModelsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListModelsResponse.ServerResponse.Header -// or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelsResponse, error) { +// Do executes the "aiplatform.projects.locations.models.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsModelsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89561,7 +97936,7 @@ func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListModelsResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89573,47 +97948,28 @@ func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Lists Models in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.list", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.setIamPolicy", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `model` supports = and !=. `model` represents the Model ID, i.e. the last segment of the Model's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `model=1234` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListModelsResponse.next_page_token of the previous ModelService.ListModels call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list the Models from. Format: `projects/{project}/locations/{location}`", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/models", + // "path": "v1beta1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "GoogleIamV1SetIamPolicyRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListModelsResponse" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -89622,161 +97978,100 @@ func (c *ProjectsLocationsModelsListCall) Do(opts ...googleapi.CallOption) (*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 *ProjectsLocationsModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelsResponse) 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.models.listVersions": +// method id "aiplatform.projects.locations.models.testIamPermissions": -type ProjectsLocationsModelsListVersionsCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsTestIamPermissionsCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ListVersions: Lists versions of the specified model. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the model to list versions for. -func (r *ProjectsLocationsModelsService) ListVersions(name string) *ProjectsLocationsModelsListVersionsCall { - c := &ProjectsLocationsModelsListVersionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `labels` supports general map -// functions that is: * `labels.key=value` - key:value equality * -// `labels.key:* or labels:key - key existence * A key including a space -// must be quoted. `labels."a key". Some examples: * -// `labels.myKey="myValue" -func (c *ProjectsLocationsModelsListVersionsCall) Filter(filter string) *ProjectsLocationsModelsListVersionsCall { - 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: * `create_time` * -// `update_time` Example: `update_time asc, create_time desc`. -func (c *ProjectsLocationsModelsListVersionsCall) OrderBy(orderBy string) *ProjectsLocationsModelsListVersionsCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsModelsListVersionsCall) PageSize(pageSize int64) *ProjectsLocationsModelsListVersionsCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via next_page_token of the previous -// ListModelVersions call. -func (c *ProjectsLocationsModelsListVersionsCall) PageToken(pageToken string) *ProjectsLocationsModelsListVersionsCall { - c.urlParams_.Set("pageToken", pageToken) +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsModelsService) TestIamPermissions(resource string) *ProjectsLocationsModelsTestIamPermissionsCall { + c := &ProjectsLocationsModelsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsModelsListVersionsCall) ReadMask(readMask string) *ProjectsLocationsModelsListVersionsCall { - c.urlParams_.Set("readMask", readMask) +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsModelsTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsModelsTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) 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 *ProjectsLocationsModelsListVersionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsListVersionsCall { - 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 *ProjectsLocationsModelsListVersionsCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsListVersionsCall { - c.ifNoneMatch_ = entityTag +func (c *ProjectsLocationsModelsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsTestIamPermissionsCall { + 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 *ProjectsLocationsModelsListVersionsCall) Context(ctx context.Context) *ProjectsLocationsModelsListVersionsCall { +func (c *ProjectsLocationsModelsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsModelsTestIamPermissionsCall { 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 *ProjectsLocationsModelsListVersionsCall) Header() http.Header { +func (c *ProjectsLocationsModelsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsListVersionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsTestIamPermissionsCall) 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}:listVersions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:testIamPermissions") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.listVersions" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListModelVersionsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListModelVersionsResponse.ServerResponse. -// Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsListVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelVersionsResponse, error) { +// Do executes the "aiplatform.projects.locations.models.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsModelsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89795,7 +98090,7 @@ func (c *ProjectsLocationsModelsListVersionsCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListModelVersionsResponse{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89807,52 +98102,31 @@ func (c *ProjectsLocationsModelsListVersionsCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Lists versions of the specified model.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:listVersions", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.listVersions", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "filter": { - // "description": "An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `labels.myKey=\"myValue\"`", + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", // "location": "query", + // "repeated": true, // "type": "string" // }, - // "name": { - // "description": "Required. The name of the model to list versions for.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" - // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time` * `update_time` Example: `update_time asc, create_time desc`.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via next_page_token of the previous ListModelVersions call.", - // "location": "query", - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}:listVersions", + // "path": "v1beta1/{+resource}:testIamPermissions", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListModelVersionsResponse" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -89861,54 +98135,33 @@ func (c *ProjectsLocationsModelsListVersionsCall) Do(opts ...googleapi.CallOptio } -// 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 *ProjectsLocationsModelsListVersionsCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelVersionsResponse) 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.models.mergeVersionAliases": +// method id "aiplatform.projects.locations.models.updateExplanationDataset": -type ProjectsLocationsModelsMergeVersionAliasesCall struct { - s *Service - name string - googlecloudaiplatformv1beta1mergeversionaliasesrequest *GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsUpdateExplanationDatasetCall struct { + s *Service + model string + googlecloudaiplatformv1beta1updateexplanationdatasetrequest *GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// MergeVersionAliases: Merges a set of aliases for a Model version. +// UpdateExplanationDataset: Incrementally update the dataset used for +// an examples model. // -// - name: The name of the model version to merge aliases, with a -// version ID explicitly included. Example: -// `projects/{project}/locations/{location}/models/{model}@1234`. -func (r *ProjectsLocationsModelsService) MergeVersionAliases(name string, googlecloudaiplatformv1beta1mergeversionaliasesrequest *GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest) *ProjectsLocationsModelsMergeVersionAliasesCall { - c := &ProjectsLocationsModelsMergeVersionAliasesCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1mergeversionaliasesrequest = googlecloudaiplatformv1beta1mergeversionaliasesrequest +// - model: The resource name of the Model to update. Format: +// `projects/{project}/locations/{location}/models/{model}`. +func (r *ProjectsLocationsModelsService) UpdateExplanationDataset(model string, googlecloudaiplatformv1beta1updateexplanationdatasetrequest *GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest) *ProjectsLocationsModelsUpdateExplanationDatasetCall { + c := &ProjectsLocationsModelsUpdateExplanationDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1beta1updateexplanationdatasetrequest = googlecloudaiplatformv1beta1updateexplanationdatasetrequest 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 *ProjectsLocationsModelsMergeVersionAliasesCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsMergeVersionAliasesCall { +func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsUpdateExplanationDatasetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -89916,21 +98169,21 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Context(ctx context.Context) *ProjectsLocationsModelsMergeVersionAliasesCall { +func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Context(ctx context.Context) *ProjectsLocationsModelsUpdateExplanationDatasetCall { 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 *ProjectsLocationsModelsMergeVersionAliasesCall) Header() http.Header { +func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsMergeVersionAliasesCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) 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_ { @@ -89938,14 +98191,14 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1mergeversionaliasesrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1updateexplanationdatasetrequest) 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}:mergeVersionAliases") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+model}:updateExplanationDataset") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -89953,20 +98206,19 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "model": c.model, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.mergeVersionAliases" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Model or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Model.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Model, error) { +// Do executes the "aiplatform.projects.locations.models.updateExplanationDataset" 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 *ProjectsLocationsModelsUpdateExplanationDatasetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -89985,7 +98237,7 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Model{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -89997,28 +98249,28 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Merges a set of aliases for a Model version.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:mergeVersionAliases", + // "description": "Incrementally update the dataset used for an examples model.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:updateExplanationDataset", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.mergeVersionAliases", + // "id": "aiplatform.projects.locations.models.updateExplanationDataset", // "parameterOrder": [ - // "name" + // "model" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the model version to merge aliases, with a version ID explicitly included. Example: `projects/{project}/locations/{location}/models/{model}@1234`", + // "model": { + // "description": "Required. The resource name of the Model to update. Format: `projects/{project}/locations/{location}/models/{model}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:mergeVersionAliases", + // "path": "v1beta1/{+model}:updateExplanationDataset", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1MergeVersionAliasesRequest" + // "$ref": "GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Model" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90027,39 +98279,32 @@ func (c *ProjectsLocationsModelsMergeVersionAliasesCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.models.patch": +// method id "aiplatform.projects.locations.models.upload": -type ProjectsLocationsModelsPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1model *GoogleCloudAiplatformV1beta1Model - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsUploadCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1uploadmodelrequest *GoogleCloudAiplatformV1beta1UploadModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a Model. +// Upload: Uploads a Model artifact into Vertex AI. // -// - name: The resource name of the Model. -func (r *ProjectsLocationsModelsService) Patch(name string, googlecloudaiplatformv1beta1model *GoogleCloudAiplatformV1beta1Model) *ProjectsLocationsModelsPatchCall { - c := &ProjectsLocationsModelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1model = googlecloudaiplatformv1beta1model - return c -} - -// UpdateMask sets the optional parameter "updateMask": Required. The -// update mask applies to the resource. For the `FieldMask` definition, -// see google.protobuf.FieldMask. -func (c *ProjectsLocationsModelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsModelsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// - parent: The resource name of the Location into which to upload the +// Model. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsModelsService) Upload(parent string, googlecloudaiplatformv1beta1uploadmodelrequest *GoogleCloudAiplatformV1beta1UploadModelRequest) *ProjectsLocationsModelsUploadCall { + c := &ProjectsLocationsModelsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1uploadmodelrequest = googlecloudaiplatformv1beta1uploadmodelrequest 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 *ProjectsLocationsModelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsPatchCall { +func (c *ProjectsLocationsModelsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsUploadCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -90067,21 +98312,21 @@ func (c *ProjectsLocationsModelsPatchCall) Fields(s ...googleapi.Field) *Project // 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 *ProjectsLocationsModelsPatchCall) Context(ctx context.Context) *ProjectsLocationsModelsPatchCall { +func (c *ProjectsLocationsModelsUploadCall) Context(ctx context.Context) *ProjectsLocationsModelsUploadCall { 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 *ProjectsLocationsModelsPatchCall) Header() http.Header { +func (c *ProjectsLocationsModelsUploadCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsUploadCall) 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_ { @@ -90089,35 +98334,34 @@ func (c *ProjectsLocationsModelsPatchCall) doRequest(alt string) (*http.Response } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1model) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1uploadmodelrequest) 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}/models:upload") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.patch" call. -// Exactly one of *GoogleCloudAiplatformV1beta1Model or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1Model.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Model, error) { +// Do executes the "aiplatform.projects.locations.models.upload" 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 *ProjectsLocationsModelsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90136,7 +98380,7 @@ func (c *ProjectsLocationsModelsPatchCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1Model{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90148,34 +98392,28 @@ func (c *ProjectsLocationsModelsPatchCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Updates a Model.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.models.patch", + // "description": "Uploads a Model artifact into Vertex AI.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models:upload", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.upload", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The resource name of the Model.", + // "parent": { + // "description": "Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "Required. The update mask applies to the resource. For the `FieldMask` definition, see google.protobuf.FieldMask.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/models:upload", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1Model" + // "$ref": "GoogleCloudAiplatformV1beta1UploadModelRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1Model" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90184,93 +98422,99 @@ func (c *ProjectsLocationsModelsPatchCall) Do(opts ...googleapi.CallOption) (*Go } -// method id "aiplatform.projects.locations.models.setIamPolicy": +// method id "aiplatform.projects.locations.models.evaluations.get": -type ProjectsLocationsModelsSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsEvaluationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// Get: Gets a ModelEvaluation. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsModelsService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsModelsSetIamPolicyCall { - c := &ProjectsLocationsModelsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the ModelEvaluation resource. Format: +// `projects/{project}/locations/{location}/models/{model}/evaluations/ +// {evaluation}`. +func (r *ProjectsLocationsModelsEvaluationsService) Get(name string) *ProjectsLocationsModelsEvaluationsGetCall { + c := &ProjectsLocationsModelsEvaluationsGetCall{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 *ProjectsLocationsModelsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsSetIamPolicyCall { +func (c *ProjectsLocationsModelsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsGetCall { 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 *ProjectsLocationsModelsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsGetCall { + 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 *ProjectsLocationsModelsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsModelsSetIamPolicyCall { +func (c *ProjectsLocationsModelsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsGetCall { 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 *ProjectsLocationsModelsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsModelsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ModelEvaluation or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ModelEvaluation.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelEvaluation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90289,7 +98533,7 @@ func (c *ProjectsLocationsModelsSetIamPolicyCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudAiplatformV1beta1ModelEvaluation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90301,28 +98545,25 @@ func (c *ProjectsLocationsModelsSetIamPolicyCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.setIamPolicy", + // "description": "Gets a ModelEvaluation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.evaluations.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "Required. The name of the ModelEvaluation resource. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudAiplatformV1beta1ModelEvaluation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90331,47 +98572,32 @@ func (c *ProjectsLocationsModelsSetIamPolicyCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.models.testIamPermissions": +// method id "aiplatform.projects.locations.models.evaluations.import": -type ProjectsLocationsModelsTestIamPermissionsCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsEvaluationsImportCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1importmodelevaluationrequest *GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// Import: Imports an externally generated ModelEvaluation. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsModelsService) TestIamPermissions(resource string) *ProjectsLocationsModelsTestIamPermissionsCall { - c := &ProjectsLocationsModelsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// Permissions sets the optional parameter "permissions": The set of -// permissions to check for the `resource`. Permissions with wildcards -// (such as `*` or `storage.*`) are not allowed. For more information -// see IAM Overview -// (https://cloud.google.com/iam/docs/overview#permissions). -func (c *ProjectsLocationsModelsTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsModelsTestIamPermissionsCall { - c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) +// - parent: The name of the parent model resource. Format: +// `projects/{project}/locations/{location}/models/{model}`. +func (r *ProjectsLocationsModelsEvaluationsService) Import(parent string, googlecloudaiplatformv1beta1importmodelevaluationrequest *GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest) *ProjectsLocationsModelsEvaluationsImportCall { + c := &ProjectsLocationsModelsEvaluationsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1importmodelevaluationrequest = googlecloudaiplatformv1beta1importmodelevaluationrequest 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 *ProjectsLocationsModelsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsTestIamPermissionsCall { +func (c *ProjectsLocationsModelsEvaluationsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -90379,21 +98605,21 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsModelsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsModelsTestIamPermissionsCall { +func (c *ProjectsLocationsModelsEvaluationsImportCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsImportCall { 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 *ProjectsLocationsModelsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsImportCall) 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_ { @@ -90401,9 +98627,14 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) doRequest(alt string) (* } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1importmodelevaluationrequest) + 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations:import") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -90411,20 +98642,21 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) doRequest(alt string) (* } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsModelsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.import" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ModelEvaluation or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ModelEvaluation.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsEvaluationsImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelEvaluation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90443,7 +98675,7 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleCloudAiplatformV1beta1ModelEvaluation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90455,31 +98687,28 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:testIamPermissions", + // "description": "Imports an externally generated ModelEvaluation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations:import", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.testIamPermissions", + // "id": "aiplatform.projects.locations.models.evaluations.import", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "permissions": { - // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", - // "location": "query", - // "repeated": true, - // "type": "string" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "parent": { + // "description": "Required. The name of the parent model resource. Format: `projects/{project}/locations/{location}/models/{model}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:testIamPermissions", + // "path": "v1beta1/{+parent}/evaluations:import", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest" + // }, // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ModelEvaluation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90488,90 +98717,130 @@ func (c *ProjectsLocationsModelsTestIamPermissionsCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.models.updateExplanationDataset": +// method id "aiplatform.projects.locations.models.evaluations.list": + +type ProjectsLocationsModelsEvaluationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ModelEvaluations in a Model. +// +// - parent: The resource name of the Model to list the ModelEvaluations +// from. Format: +// `projects/{project}/locations/{location}/models/{model}`. +func (r *ProjectsLocationsModelsEvaluationsService) List(parent string) *ProjectsLocationsModelsEvaluationsListCall { + c := &ProjectsLocationsModelsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsModelsEvaluationsListCall) Filter(filter string) *ProjectsLocationsModelsEvaluationsListCall { + c.urlParams_.Set("filter", filter) + return c +} -type ProjectsLocationsModelsUpdateExplanationDatasetCall struct { - s *Service - model string - googlecloudaiplatformv1beta1updateexplanationdatasetrequest *GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsModelsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsEvaluationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c } -// UpdateExplanationDataset: Incrementally update the dataset used for -// an examples model. -// -// - model: The resource name of the Model to update. Format: -// `projects/{project}/locations/{location}/models/{model}`. -func (r *ProjectsLocationsModelsService) UpdateExplanationDataset(model string, googlecloudaiplatformv1beta1updateexplanationdatasetrequest *GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest) *ProjectsLocationsModelsUpdateExplanationDatasetCall { - c := &ProjectsLocationsModelsUpdateExplanationDatasetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.model = model - c.googlecloudaiplatformv1beta1updateexplanationdatasetrequest = googlecloudaiplatformv1beta1updateexplanationdatasetrequest +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListModelEvaluationsResponse.next_page_token of the previous +// ModelService.ListModelEvaluations call. +func (c *ProjectsLocationsModelsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsModelsEvaluationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsModelsEvaluationsListCall) ReadMask(readMask string) *ProjectsLocationsModelsEvaluationsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsUpdateExplanationDatasetCall { +func (c *ProjectsLocationsModelsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsListCall { 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 *ProjectsLocationsModelsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsListCall { + 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 *ProjectsLocationsModelsUpdateExplanationDatasetCall) Context(ctx context.Context) *ProjectsLocationsModelsUpdateExplanationDatasetCall { +func (c *ProjectsLocationsModelsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsListCall { 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 *ProjectsLocationsModelsUpdateExplanationDatasetCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1updateexplanationdatasetrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+model}:updateExplanationDataset") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "model": c.model, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.updateExplanationDataset" 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 *ProjectsLocationsModelsUpdateExplanationDatasetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90590,7 +98859,7 @@ func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90602,28 +98871,47 @@ func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Do(opts ...googlea } return ret, nil // { - // "description": "Incrementally update the dataset used for an examples model.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}:updateExplanationDataset", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.updateExplanationDataset", + // "description": "Lists ModelEvaluations in a Model.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.evaluations.list", // "parameterOrder": [ - // "model" + // "parent" // ], // "parameters": { - // "model": { - // "description": "Required. The resource name of the Model to update. Format: `projects/{project}/locations/{location}/models/{model}`", + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListModelEvaluationsResponse.next_page_token of the previous ModelService.ListModelEvaluations call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Model to list the ModelEvaluations from. Format: `projects/{project}/locations/{location}/models/{model}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+model}:updateExplanationDataset", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest" - // }, + // "path": "v1beta1/{+parent}/evaluations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90632,32 +98920,59 @@ func (c *ProjectsLocationsModelsUpdateExplanationDatasetCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.models.upload": +// 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 *ProjectsLocationsModelsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse) 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) + } +} -type ProjectsLocationsModelsUploadCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1uploadmodelrequest *GoogleCloudAiplatformV1beta1UploadModelRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.models.evaluations.operations.cancel": + +type ProjectsLocationsModelsEvaluationsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Upload: Uploads a Model artifact into Vertex AI. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location into which to upload the -// Model. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsModelsService) Upload(parent string, googlecloudaiplatformv1beta1uploadmodelrequest *GoogleCloudAiplatformV1beta1UploadModelRequest) *ProjectsLocationsModelsUploadCall { - c := &ProjectsLocationsModelsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1uploadmodelrequest = googlecloudaiplatformv1beta1uploadmodelrequest +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsModelsEvaluationsOperationsService) Cancel(name string) *ProjectsLocationsModelsEvaluationsOperationsCancelCall { + c := &ProjectsLocationsModelsEvaluationsOperationsCancelCall{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 *ProjectsLocationsModelsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsUploadCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -90665,21 +98980,21 @@ func (c *ProjectsLocationsModelsUploadCall) Fields(s ...googleapi.Field) *Projec // 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 *ProjectsLocationsModelsUploadCall) Context(ctx context.Context) *ProjectsLocationsModelsUploadCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsCancelCall { 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 *ProjectsLocationsModelsUploadCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsUploadCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) 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_ { @@ -90687,14 +99002,9 @@ func (c *ProjectsLocationsModelsUploadCall) doRequest(alt string) (*http.Respons } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1uploadmodelrequest) - 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/{+parent}/models:upload") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -90702,19 +99012,19 @@ func (c *ProjectsLocationsModelsUploadCall) doRequest(alt string) (*http.Respons } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.upload" 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.models.evaluations.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 *ProjectsLocationsModelsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90733,7 +99043,7 @@ func (c *ProjectsLocationsModelsUploadCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90745,28 +99055,25 @@ func (c *ProjectsLocationsModelsUploadCall) Do(opts ...googleapi.CallOption) (*G } return ret, nil // { - // "description": "Uploads a Model artifact into Vertex AI.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models:upload", + // "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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.upload", + // "id": "aiplatform.projects.locations.models.evaluations.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location into which to upload the Model. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/models:upload", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1UploadModelRequest" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90775,24 +99082,24 @@ func (c *ProjectsLocationsModelsUploadCall) Do(opts ...googleapi.CallOption) (*G } -// method id "aiplatform.projects.locations.models.evaluations.get": +// method id "aiplatform.projects.locations.models.evaluations.operations.delete": -type ProjectsLocationsModelsEvaluationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsEvaluationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a ModelEvaluation. +// 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 ModelEvaluation resource. Format: -// `projects/{project}/locations/{location}/models/{model}/evaluations/ -// {evaluation}`. -func (r *ProjectsLocationsModelsEvaluationsService) Get(name string) *ProjectsLocationsModelsEvaluationsGetCall { - c := &ProjectsLocationsModelsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsModelsEvaluationsOperationsService) Delete(name string) *ProjectsLocationsModelsEvaluationsOperationsDeleteCall { + c := &ProjectsLocationsModelsEvaluationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -90800,54 +99107,41 @@ func (r *ProjectsLocationsModelsEvaluationsService) Get(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsGetCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsDeleteCall { 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 *ProjectsLocationsModelsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsGetCall { - 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 *ProjectsLocationsModelsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsGetCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsDeleteCall { 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 *ProjectsLocationsModelsEvaluationsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -90858,16 +99152,14 @@ func (c *ProjectsLocationsModelsEvaluationsGetCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ModelEvaluation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ModelEvaluation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelEvaluation, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.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 *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -90886,7 +99178,7 @@ func (c *ProjectsLocationsModelsEvaluationsGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ModelEvaluation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -90898,25 +99190,25 @@ func (c *ProjectsLocationsModelsEvaluationsGetCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Gets a ModelEvaluation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.evaluations.get", + // "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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.models.evaluations.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the ModelEvaluation resource. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelEvaluation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -90925,91 +99217,97 @@ func (c *ProjectsLocationsModelsEvaluationsGetCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.models.evaluations.import": +// method id "aiplatform.projects.locations.models.evaluations.operations.get": -type ProjectsLocationsModelsEvaluationsImportCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1importmodelevaluationrequest *GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsEvaluationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Import: Imports an externally generated ModelEvaluation. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The name of the parent model resource. Format: -// `projects/{project}/locations/{location}/models/{model}`. -func (r *ProjectsLocationsModelsEvaluationsService) Import(parent string, googlecloudaiplatformv1beta1importmodelevaluationrequest *GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest) *ProjectsLocationsModelsEvaluationsImportCall { - c := &ProjectsLocationsModelsEvaluationsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1importmodelevaluationrequest = googlecloudaiplatformv1beta1importmodelevaluationrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsModelsEvaluationsOperationsService) Get(name string) *ProjectsLocationsModelsEvaluationsOperationsGetCall { + c := &ProjectsLocationsModelsEvaluationsOperationsGetCall{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 *ProjectsLocationsModelsEvaluationsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsImportCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsGetCall { 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 *ProjectsLocationsModelsEvaluationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsOperationsGetCall { + 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 *ProjectsLocationsModelsEvaluationsImportCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsImportCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsGetCall { 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 *ProjectsLocationsModelsEvaluationsImportCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsImportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1importmodelevaluationrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations:import") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.import" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ModelEvaluation or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ModelEvaluation.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsEvaluationsImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelEvaluation, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.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 *ProjectsLocationsModelsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91028,7 +99326,7 @@ func (c *ProjectsLocationsModelsEvaluationsImportCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ModelEvaluation{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91040,28 +99338,25 @@ func (c *ProjectsLocationsModelsEvaluationsImportCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Imports an externally generated ModelEvaluation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations:import", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.evaluations.import", + // "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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.evaluations.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The name of the parent model resource. Format: `projects/{project}/locations/{location}/models/{model}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/evaluations:import", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ImportModelEvaluationRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelEvaluation" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -91070,62 +99365,53 @@ func (c *ProjectsLocationsModelsEvaluationsImportCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.models.evaluations.list": +// method id "aiplatform.projects.locations.models.evaluations.operations.list": -type ProjectsLocationsModelsEvaluationsListCall struct { +type ProjectsLocationsModelsEvaluationsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists ModelEvaluations in a Model. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Model to list the ModelEvaluations -// from. Format: -// `projects/{project}/locations/{location}/models/{model}`. -func (r *ProjectsLocationsModelsEvaluationsService) List(parent string) *ProjectsLocationsModelsEvaluationsListCall { - c := &ProjectsLocationsModelsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsModelsEvaluationsOperationsService) List(name string) *ProjectsLocationsModelsEvaluationsOperationsListCall { + c := &ProjectsLocationsModelsEvaluationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Filter sets the optional parameter "filter": The standard list // filter. -func (c *ProjectsLocationsModelsEvaluationsListCall) Filter(filter string) *ProjectsLocationsModelsEvaluationsListCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Filter(filter string) *ProjectsLocationsModelsEvaluationsOperationsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsModelsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsEvaluationsListCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsEvaluationsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListModelEvaluationsResponse.next_page_token of the previous -// ModelService.ListModelEvaluations call. -func (c *ProjectsLocationsModelsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsModelsEvaluationsListCall { +// page token. +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelsEvaluationsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsModelsEvaluationsListCall) ReadMask(readMask string) *ProjectsLocationsModelsEvaluationsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsListCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91135,7 +99421,7 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Fields(s ...googleapi.Field // 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 *ProjectsLocationsModelsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsListCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -91143,21 +99429,21 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) IfNoneMatch(entityTag strin // 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 *ProjectsLocationsModelsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsListCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsListCall { 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 *ProjectsLocationsModelsEvaluationsListCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) 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_ { @@ -91170,7 +99456,7 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) doRequest(alt string) (*htt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -91178,22 +99464,20 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) doRequest(alt string) (*htt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } - -// Do executes the "aiplatform.projects.locations.models.evaluations.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse.ServerRespon -// se.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse, error) { + +// Do executes the "aiplatform.projects.locations.models.evaluations.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 *ProjectsLocationsModelsEvaluationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91212,7 +99496,7 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91224,12 +99508,12 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Lists ModelEvaluations in a Model.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations", + // "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}/models/{modelsId}/evaluations/{evaluationsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.evaluations.list", + // "id": "aiplatform.projects.locations.models.evaluations.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { @@ -91237,6 +99521,13 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOp // "location": "query", // "type": "string" // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + // "required": true, + // "type": "string" + // }, // "pageSize": { // "description": "The standard list page size.", // "format": "int32", @@ -91244,27 +99535,14 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOp // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListModelEvaluationsResponse.next_page_token of the previous ModelService.ListModelEvaluations call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Model to list the ModelEvaluations from. Format: `projects/{project}/locations/{location}/models/{model}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/evaluations", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -91276,7 +99554,7 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Do(opts ...googleapi.CallOp // 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 *ProjectsLocationsModelsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelEvaluationsResponse) error) error { +func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) 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 { @@ -91294,9 +99572,9 @@ func (c *ProjectsLocationsModelsEvaluationsListCall) Pages(ctx context.Context, } } -// method id "aiplatform.projects.locations.models.evaluations.operations.cancel": +// method id "aiplatform.projects.locations.models.evaluations.operations.wait": -type ProjectsLocationsModelsEvaluationsOperationsCancelCall struct { +type ProjectsLocationsModelsEvaluationsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -91304,28 +99582,37 @@ type ProjectsLocationsModelsEvaluationsOperationsCancelCall struct { 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`. +// 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 be cancelled. -func (r *ProjectsLocationsModelsEvaluationsOperationsService) Cancel(name string) *ProjectsLocationsModelsEvaluationsOperationsCancelCall { - c := &ProjectsLocationsModelsEvaluationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsModelsEvaluationsOperationsService) Wait(name string) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { + c := &ProjectsLocationsModelsEvaluationsOperationsWaitCall{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 *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { + 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 *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsCancelCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91333,21 +99620,21 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Fields(s ...goo // 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 *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsCancelCall { +func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { 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 *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) 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_ { @@ -91357,7 +99644,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) doRequest(alt s 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -91370,14 +99657,14 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.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.models.evaluations.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 *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91396,7 +99683,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Do(opts ...goog 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, @@ -91408,25 +99695,31 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Do(opts ...goog } 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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}:cancel", + // "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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.evaluations.operations.cancel", + // "id": "aiplatform.projects.locations.models.evaluations.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation resource to wait on.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/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}:cancel", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -91435,32 +99728,35 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsCancelCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.models.evaluations.operations.delete": +// method id "aiplatform.projects.locations.models.evaluations.slices.batchImport": -type ProjectsLocationsModelsEvaluationsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsEvaluationsSlicesBatchImportCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest + 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`. +// BatchImport: Imports a list of externally generated +// EvaluatedAnnotations. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsModelsEvaluationsOperationsService) Delete(name string) *ProjectsLocationsModelsEvaluationsOperationsDeleteCall { - c := &ProjectsLocationsModelsEvaluationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The name of the parent ModelEvaluationSlice resource. +// Format: +// `projects/{project}/locations/{location}/models/{model}/evaluations/ +// {evaluation}/slices/{slice}`. +func (r *ProjectsLocationsModelsEvaluationsSlicesService) BatchImport(parent string, googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest) *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall { + c := &ProjectsLocationsModelsEvaluationsSlicesBatchImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest = googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest 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 *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsDeleteCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91468,21 +99764,21 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Fields(s ...goo // 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 *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsDeleteCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall { 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 *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) 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_ { @@ -91490,29 +99786,37 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest) + 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}:batchImport") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.models.evaluations.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 *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.slices.batchImport" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse.S +// erverResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91531,7 +99835,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91543,25 +99847,28 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Do(opts ...goog } 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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.models.evaluations.operations.delete", + // "description": "Imports a list of externally generated EvaluatedAnnotations.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}/slices/{slicesId}:batchImport", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.evaluations.slices.batchImport", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "parent": { + // "description": "Required. The name of the parent ModelEvaluationSlice resource. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}:batchImport", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -91570,9 +99877,9 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsDeleteCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.models.evaluations.operations.get": +// method id "aiplatform.projects.locations.models.evaluations.slices.get": -type ProjectsLocationsModelsEvaluationsOperationsGetCall struct { +type ProjectsLocationsModelsEvaluationsSlicesGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -91581,13 +99888,13 @@ type ProjectsLocationsModelsEvaluationsOperationsGetCall 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 ModelEvaluationSlice. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsModelsEvaluationsOperationsService) Get(name string) *ProjectsLocationsModelsEvaluationsOperationsGetCall { - c := &ProjectsLocationsModelsEvaluationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the ModelEvaluationSlice resource. Format: +// `projects/{project}/locations/{location}/models/{model}/evaluations/ +// {evaluation}/slices/{slice}`. +func (r *ProjectsLocationsModelsEvaluationsSlicesService) Get(name string) *ProjectsLocationsModelsEvaluationsSlicesGetCall { + c := &ProjectsLocationsModelsEvaluationsSlicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -91595,7 +99902,7 @@ func (r *ProjectsLocationsModelsEvaluationsOperationsService) Get(name string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsGetCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsSlicesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91605,7 +99912,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Fields(s ...google // 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 *ProjectsLocationsModelsEvaluationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsOperationsGetCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsSlicesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -91613,21 +99920,21 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) IfNoneMatch(entity // 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 *ProjectsLocationsModelsEvaluationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsGetCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsSlicesGetCall { 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 *ProjectsLocationsModelsEvaluationsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) 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_ { @@ -91653,14 +99960,16 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) doRequest(alt stri return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.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 *ProjectsLocationsModelsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.models.evaluations.slices.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ModelEvaluationSlice or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ModelEvaluationSlice.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelEvaluationSlice, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91679,7 +99988,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ModelEvaluationSlice{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91691,25 +100000,25 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Do(opts ...googlea } 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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}", + // "description": "Gets a ModelEvaluationSlice.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}/slices/{slicesId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.evaluations.operations.get", + // "id": "aiplatform.projects.locations.models.evaluations.slices.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the ModelEvaluationSlice resource. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ModelEvaluationSlice" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -91718,53 +100027,63 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsGetCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.models.evaluations.operations.list": +// method id "aiplatform.projects.locations.models.evaluations.slices.list": -type ProjectsLocationsModelsEvaluationsOperationsListCall struct { +type ProjectsLocationsModelsEvaluationsSlicesListCall 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 ModelEvaluationSlices in a ModelEvaluation. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsModelsEvaluationsOperationsService) List(name string) *ProjectsLocationsModelsEvaluationsOperationsListCall { - c := &ProjectsLocationsModelsEvaluationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the ModelEvaluation to list the +// ModelEvaluationSlices from. Format: +// `projects/{project}/locations/{location}/models/{model}/evaluations/ +// {evaluation}`. +func (r *ProjectsLocationsModelsEvaluationsSlicesService) List(parent string) *ProjectsLocationsModelsEvaluationsSlicesListCall { + c := &ProjectsLocationsModelsEvaluationsSlicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } // Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Filter(filter string) *ProjectsLocationsModelsEvaluationsOperationsListCall { +// filter. * `slice.dimension` - for =. +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Filter(filter string) *ProjectsLocationsModelsEvaluationsSlicesListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsEvaluationsOperationsListCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) PageSize(pageSize int64) *ProjectsLocationsModelsEvaluationsSlicesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelsEvaluationsOperationsListCall { +// page token. Typically obtained via +// ListModelEvaluationSlicesResponse.next_page_token of the previous +// ModelService.ListModelEvaluationSlices call. +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) PageToken(pageToken string) *ProjectsLocationsModelsEvaluationsSlicesListCall { c.urlParams_.Set("pageToken", pageToken) return c } +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) ReadMask(readMask string) *ProjectsLocationsModelsEvaluationsSlicesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsListCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsSlicesListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91774,7 +100093,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Fields(s ...googl // 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 *ProjectsLocationsModelsEvaluationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsOperationsListCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsSlicesListCall { c.ifNoneMatch_ = entityTag return c } @@ -91782,36 +100101,223 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) IfNoneMatch(entit // 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 *ProjectsLocationsModelsEvaluationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsListCall { +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsSlicesListCall { + 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 *ProjectsLocationsModelsEvaluationsSlicesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) 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/{+parent}/slices") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.models.evaluations.slices.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse.ServerR +// esponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse, 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 := &GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse{ + 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 ModelEvaluationSlices in a ModelEvaluation.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}/slices", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.evaluations.slices.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter. * `slice.dimension` - for =.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListModelEvaluationSlicesResponse.next_page_token of the previous ModelService.ListModelEvaluationSlices call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/slices", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse" + // }, + // "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 *ProjectsLocationsModelsEvaluationsSlicesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse) 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.models.operations.cancel": + +type ProjectsLocationsModelsOperationsCancelCall 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 *ProjectsLocationsModelsOperationsService) Cancel(name string) *ProjectsLocationsModelsOperationsCancelCall { + c := &ProjectsLocationsModelsOperationsCancelCall{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 *ProjectsLocationsModelsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsCancelCall { + 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 *ProjectsLocationsModelsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsCancelCall { 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 *ProjectsLocationsModelsEvaluationsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsModelsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsOperationsCancelCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -91822,15 +100328,14 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.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 +// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelsEvaluationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsModelsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -91849,7 +100354,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -91861,41 +100366,25 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Do(opts ...google } 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}/models/{modelsId}/evaluations/{evaluationsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.evaluations.operations.list", + // "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}/models/{modelsId}/operations/{operationsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.operations.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", // "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", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -91904,30 +100393,9 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsListCall) Do(opts ...google } -// 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 *ProjectsLocationsModelsEvaluationsOperationsListCall) 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.models.evaluations.operations.wait": +// method id "aiplatform.projects.locations.models.operations.delete": -type ProjectsLocationsModelsEvaluationsOperationsWaitCall struct { +type ProjectsLocationsModelsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -91935,37 +100403,22 @@ type ProjectsLocationsModelsEvaluationsOperationsWaitCall struct { 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. +// 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 wait on. -func (r *ProjectsLocationsModelsEvaluationsOperationsService) Wait(name string) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { - c := &ProjectsLocationsModelsEvaluationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsModelsOperationsService) Delete(name string) *ProjectsLocationsModelsOperationsDeleteCall { + c := &ProjectsLocationsModelsOperationsDeleteCall{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 *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { - 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 *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { +func (c *ProjectsLocationsModelsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -91973,21 +100426,21 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) 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 *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsOperationsWaitCall { +func (c *ProjectsLocationsModelsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsDeleteCall { 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 *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsModelsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsOperationsDeleteCall) 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_ { @@ -91997,9 +100450,9 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) doRequest(alt str 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -92010,14 +100463,14 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.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.models.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 *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsModelsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92036,7 +100489,7 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92048,31 +100501,25 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Do(opts ...google } 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}/models/{modelsId}/evaluations/{evaluationsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.evaluations.operations.wait", + // "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}/models/{modelsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.models.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/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", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -92081,95 +100528,97 @@ func (c *ProjectsLocationsModelsEvaluationsOperationsWaitCall) Do(opts ...google } -// method id "aiplatform.projects.locations.models.evaluations.slices.batchImport": +// method id "aiplatform.projects.locations.models.operations.get": -type ProjectsLocationsModelsEvaluationsSlicesBatchImportCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsModelsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BatchImport: Imports a list of externally generated -// EvaluatedAnnotations. +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. // -// - parent: The name of the parent ModelEvaluationSlice resource. -// Format: -// `projects/{project}/locations/{location}/models/{model}/evaluations/ -// {evaluation}/slices/{slice}`. -func (r *ProjectsLocationsModelsEvaluationsSlicesService) BatchImport(parent string, googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest) *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall { - c := &ProjectsLocationsModelsEvaluationsSlicesBatchImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest = googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsModelsOperationsService) Get(name string) *ProjectsLocationsModelsOperationsGetCall { + c := &ProjectsLocationsModelsOperationsGetCall{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 *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall { +func (c *ProjectsLocationsModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsGetCall { 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 *ProjectsLocationsModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsOperationsGetCall { + 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 *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall { +func (c *ProjectsLocationsModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsGetCall { 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 *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Header() http.Header { +func (c *ProjectsLocationsModelsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchimportevaluatedannotationsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}:batchImport") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.slices.batchImport" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse.S -// erverResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse, error) { +// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92188,7 +100637,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92200,28 +100649,25 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Do(opts ...goo } return ret, nil // { - // "description": "Imports a list of externally generated EvaluatedAnnotations.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}/slices/{slicesId}:batchImport", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.evaluations.slices.batchImport", + // "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}/models/{modelsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.models.operations.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The name of the parent ModelEvaluationSlice resource. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}:batchImport", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchImportEvaluatedAnnotationsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -92230,9 +100676,9 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesBatchImportCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.models.evaluations.slices.get": +// method id "aiplatform.projects.locations.models.operations.list": -type ProjectsLocationsModelsEvaluationsSlicesGetCall struct { +type ProjectsLocationsModelsOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -92241,21 +100687,42 @@ type ProjectsLocationsModelsEvaluationsSlicesGetCall struct { header_ http.Header } -// Get: Gets a ModelEvaluationSlice. +// 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 ModelEvaluationSlice resource. Format: -// `projects/{project}/locations/{location}/models/{model}/evaluations/ -// {evaluation}/slices/{slice}`. -func (r *ProjectsLocationsModelsEvaluationsSlicesService) Get(name string) *ProjectsLocationsModelsEvaluationsSlicesGetCall { - c := &ProjectsLocationsModelsEvaluationsSlicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsModelsOperationsService) List(name string) *ProjectsLocationsModelsOperationsListCall { + c := &ProjectsLocationsModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsModelsOperationsListCall) Filter(filter string) *ProjectsLocationsModelsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelsOperationsListCall { + 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 *ProjectsLocationsModelsEvaluationsSlicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsSlicesGetCall { +func (c *ProjectsLocationsModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -92265,7 +100732,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) 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 *ProjectsLocationsModelsEvaluationsSlicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsSlicesGetCall { +func (c *ProjectsLocationsModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -92273,21 +100740,21 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) 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 *ProjectsLocationsModelsEvaluationsSlicesGetCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsSlicesGetCall { +func (c *ProjectsLocationsModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsListCall { 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 *ProjectsLocationsModelsEvaluationsSlicesGetCall) Header() http.Header { +func (c *ProjectsLocationsModelsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsOperationsListCall) 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_ { @@ -92300,7 +100767,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) doRequest(alt string) var body io.Reader = nil 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/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -92313,16 +100780,15 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.slices.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ModelEvaluationSlice or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ModelEvaluationSlice.ServerResponse.Heade -// r or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ModelEvaluationSlice, error) { +// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92341,7 +100807,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ModelEvaluationSlice{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92353,25 +100819,41 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets a ModelEvaluationSlice.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}/slices/{slicesId}", + // "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}/models/{modelsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.evaluations.slices.get", + // "id": "aiplatform.projects.locations.models.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the ModelEvaluationSlice resource. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`", + // "description": "The name of the operation's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+/slices/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", // "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}", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ModelEvaluationSlice" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -92380,131 +100862,120 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.models.evaluations.slices.list": - -type ProjectsLocationsModelsEvaluationsSlicesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists ModelEvaluationSlices in a ModelEvaluation. -// -// - parent: The resource name of the ModelEvaluation to list the -// ModelEvaluationSlices from. Format: -// `projects/{project}/locations/{location}/models/{model}/evaluations/ -// {evaluation}`. -func (r *ProjectsLocationsModelsEvaluationsSlicesService) List(parent string) *ProjectsLocationsModelsEvaluationsSlicesListCall { - c := &ProjectsLocationsModelsEvaluationsSlicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c +// 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 *ProjectsLocationsModelsOperationsListCall) 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) + } } -// Filter sets the optional parameter "filter": The standard list -// filter. * `slice.dimension` - for =. -func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Filter(filter string) *ProjectsLocationsModelsEvaluationsSlicesListCall { - c.urlParams_.Set("filter", filter) - return c -} +// method id "aiplatform.projects.locations.models.operations.wait": -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) PageSize(pageSize int64) *ProjectsLocationsModelsEvaluationsSlicesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +type ProjectsLocationsModelsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListModelEvaluationSlicesResponse.next_page_token of the previous -// ModelService.ListModelEvaluationSlices call. -func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) PageToken(pageToken string) *ProjectsLocationsModelsEvaluationsSlicesListCall { - c.urlParams_.Set("pageToken", pageToken) +// 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 *ProjectsLocationsModelsOperationsService) Wait(name string) *ProjectsLocationsModelsOperationsWaitCall { + c := &ProjectsLocationsModelsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) ReadMask(readMask string) *ProjectsLocationsModelsEvaluationsSlicesListCall { - c.urlParams_.Set("readMask", readMask) +// 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 *ProjectsLocationsModelsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelsOperationsWaitCall { + 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 *ProjectsLocationsModelsEvaluationsSlicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsEvaluationsSlicesListCall { +func (c *ProjectsLocationsModelsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsWaitCall { 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 *ProjectsLocationsModelsEvaluationsSlicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsEvaluationsSlicesListCall { - 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 *ProjectsLocationsModelsEvaluationsSlicesListCall) Context(ctx context.Context) *ProjectsLocationsModelsEvaluationsSlicesListCall { +func (c *ProjectsLocationsModelsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsWaitCall { 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 *ProjectsLocationsModelsEvaluationsSlicesListCall) Header() http.Header { +func (c *ProjectsLocationsModelsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsModelsOperationsWaitCall) 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/{+parent}/slices") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.evaluations.slices.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse.ServerR -// esponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse, error) { +// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92523,7 +100994,7 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92535,47 +101006,31 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists ModelEvaluationSlices in a ModelEvaluation.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/models/{modelsId}/evaluations/{evaluationsId}/slices", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.evaluations.slices.list", + // "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}/models/{modelsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.models.operations.wait", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. * `slice.dimension` - for =.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListModelEvaluationSlicesResponse.next_page_token of the previous ModelService.ListModelEvaluationSlices call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the ModelEvaluation to list the ModelEvaluationSlices from. Format: `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/evaluations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "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/{+parent}/slices", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -92584,59 +101039,39 @@ func (c *ProjectsLocationsModelsEvaluationsSlicesListCall) 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 *ProjectsLocationsModelsEvaluationsSlicesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListModelEvaluationSlicesResponse) 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.models.operations.cancel": +// method id "aiplatform.projects.locations.nasJobs.cancel": -type ProjectsLocationsModelsOperationsCancelCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNasJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1cancelnasjobrequest *GoogleCloudAiplatformV1beta1CancelNasJobRequest + 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 +// Cancel: Cancels a NasJob. Starts asynchronous cancellation on the +// NasJob. The server makes a best effort to cancel the job, but success +// is not guaranteed. Clients can use JobService.GetNasJob or other +// methods to check whether the cancellation succeeded or whether the +// job completed despite cancellation. On successful cancellation, the +// NasJob is not deleted; instead it becomes a job with a NasJob.error // value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`. +// `Code.CANCELLED`, and NasJob.state is set to `CANCELLED`. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsModelsOperationsService) Cancel(name string) *ProjectsLocationsModelsOperationsCancelCall { - c := &ProjectsLocationsModelsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the NasJob to cancel. Format: +// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. +func (r *ProjectsLocationsNasJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelnasjobrequest *GoogleCloudAiplatformV1beta1CancelNasJobRequest) *ProjectsLocationsNasJobsCancelCall { + c := &ProjectsLocationsNasJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1cancelnasjobrequest = googlecloudaiplatformv1beta1cancelnasjobrequest 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 *ProjectsLocationsModelsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsCancelCall { +func (c *ProjectsLocationsNasJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -92644,21 +101079,21 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsModelsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsCancelCall { +func (c *ProjectsLocationsNasJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsNasJobsCancelCall { 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 *ProjectsLocationsModelsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsCancelCall) 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_ { @@ -92666,6 +101101,11 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelnasjobrequest) + 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") @@ -92681,14 +101121,14 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.operations.cancel" call. +// Do executes the "aiplatform.projects.locations.nasJobs.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 *ProjectsLocationsModelsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsNasJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92719,23 +101159,26 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) Do(opts ...googleapi.CallO } 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}/models/{modelsId}/operations/{operationsId}:cancel", + // "description": "Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetNasJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a NasJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and NasJob.state is set to `CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.operations.cancel", + // "id": "aiplatform.projects.locations.nasJobs.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "Required. The name of the NasJob to cancel. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CancelNasJobRequest" + // }, // "response": { // "$ref": "GoogleProtobufEmpty" // }, @@ -92746,32 +101189,32 @@ func (c *ProjectsLocationsModelsOperationsCancelCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.models.operations.delete": +// method id "aiplatform.projects.locations.nasJobs.create": -type ProjectsLocationsModelsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNasJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1nasjob *GoogleCloudAiplatformV1beta1NasJob + 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`. +// Create: Creates a NasJob // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsModelsOperationsService) Delete(name string) *ProjectsLocationsModelsOperationsDeleteCall { - c := &ProjectsLocationsModelsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the NasJob in. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNasJobsService) Create(parent string, googlecloudaiplatformv1beta1nasjob *GoogleCloudAiplatformV1beta1NasJob) *ProjectsLocationsNasJobsCreateCall { + c := &ProjectsLocationsNasJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1nasjob = googlecloudaiplatformv1beta1nasjob 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 *ProjectsLocationsModelsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsDeleteCall { +func (c *ProjectsLocationsNasJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -92779,21 +101222,21 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsModelsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsDeleteCall { +func (c *ProjectsLocationsNasJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsNasJobsCreateCall { 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 *ProjectsLocationsModelsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsCreateCall) 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_ { @@ -92801,29 +101244,35 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1nasjob) + 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}/nasJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.models.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 *ProjectsLocationsModelsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.nasJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1NasJob or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1NasJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNasJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NasJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -92842,7 +101291,7 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1NasJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -92854,25 +101303,28 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) Do(opts ...googleapi.CallO } 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}/models/{modelsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.models.operations.delete", + // "description": "Creates a NasJob", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.nasJobs.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "parent": { + // "description": "Required. The resource name of the Location to create the NasJob in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/nasJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1NasJob" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1NasJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -92881,24 +101333,22 @@ func (c *ProjectsLocationsModelsOperationsDeleteCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.models.operations.get": +// method id "aiplatform.projects.locations.nasJobs.delete": -type ProjectsLocationsModelsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNasJobsDeleteCall struct { + s *Service + name string + 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. +// Delete: Deletes a NasJob. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsModelsOperationsService) Get(name string) *ProjectsLocationsModelsOperationsGetCall { - c := &ProjectsLocationsModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the NasJob resource to be deleted. Format: +// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. +func (r *ProjectsLocationsNasJobsService) Delete(name string) *ProjectsLocationsNasJobsDeleteCall { + c := &ProjectsLocationsNasJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -92906,54 +101356,41 @@ func (r *ProjectsLocationsModelsOperationsService) Get(name string) *ProjectsLoc // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsGetCall { +func (c *ProjectsLocationsNasJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsDeleteCall { 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 *ProjectsLocationsModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsOperationsGetCall { - 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 *ProjectsLocationsModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsGetCall { +func (c *ProjectsLocationsNasJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsNasJobsDeleteCall { 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 *ProjectsLocationsModelsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -92964,14 +101401,14 @@ func (c *ProjectsLocationsModelsOperationsGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.operations.get" call. +// Do executes the "aiplatform.projects.locations.nasJobs.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 *ProjectsLocationsModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsNasJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93002,18 +101439,18 @@ func (c *ProjectsLocationsModelsOperationsGetCall) Do(opts ...googleapi.CallOpti } 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}/models/{modelsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.operations.get", + // "description": "Deletes a NasJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.nasJobs.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the NasJob resource to be deleted. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", // "required": true, // "type": "string" // } @@ -93029,9 +101466,9 @@ func (c *ProjectsLocationsModelsOperationsGetCall) Do(opts ...googleapi.CallOpti } -// method id "aiplatform.projects.locations.models.operations.list": +// method id "aiplatform.projects.locations.nasJobs.get": -type ProjectsLocationsModelsOperationsListCall struct { +type ProjectsLocationsNasJobsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -93040,42 +101477,20 @@ type ProjectsLocationsModelsOperationsListCall struct { 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`. +// Get: Gets a NasJob // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsModelsOperationsService) List(name string) *ProjectsLocationsModelsOperationsListCall { - c := &ProjectsLocationsModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the NasJob resource. Format: +// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. +func (r *ProjectsLocationsNasJobsService) Get(name string) *ProjectsLocationsNasJobsGetCall { + c := &ProjectsLocationsNasJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsModelsOperationsListCall) Filter(filter string) *ProjectsLocationsModelsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsModelsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsModelsOperationsListCall { - 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 *ProjectsLocationsModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsListCall { +func (c *ProjectsLocationsNasJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -93085,7 +101500,7 @@ func (c *ProjectsLocationsModelsOperationsListCall) Fields(s ...googleapi.Field) // 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 *ProjectsLocationsModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsModelsOperationsListCall { +func (c *ProjectsLocationsNasJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -93093,21 +101508,21 @@ func (c *ProjectsLocationsModelsOperationsListCall) IfNoneMatch(entityTag string // 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 *ProjectsLocationsModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsListCall { +func (c *ProjectsLocationsNasJobsGetCall) Context(ctx context.Context) *ProjectsLocationsNasJobsGetCall { 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 *ProjectsLocationsModelsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsGetCall) 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_ { @@ -93120,7 +101535,7 @@ func (c *ProjectsLocationsModelsOperationsListCall) doRequest(alt string) (*http 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/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -93133,15 +101548,15 @@ func (c *ProjectsLocationsModelsOperationsListCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.nasJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1NasJob or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1NasJob.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNasJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NasJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93160,7 +101575,7 @@ func (c *ProjectsLocationsModelsOperationsListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1NasJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93172,163 +101587,168 @@ func (c *ProjectsLocationsModelsOperationsListCall) Do(opts ...googleapi.CallOpt } 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}/models/{modelsId}/operations", + // "description": "Gets a NasJob", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.models.operations.list", + // "id": "aiplatform.projects.locations.nasJobs.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The name of the NasJob resource. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", // "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", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1NasJob" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only" // ] // } } -// 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 *ProjectsLocationsModelsOperationsListCall) 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.nasJobs.list": + +type ProjectsLocationsNasJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// method id "aiplatform.projects.locations.models.operations.wait": +// List: Lists NasJobs in a Location. +// +// - parent: The resource name of the Location to list the NasJobs from. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNasJobsService) List(parent string) *ProjectsLocationsNasJobsListCall { + c := &ProjectsLocationsNasJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} -type ProjectsLocationsModelsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Filter sets the optional parameter "filter": The standard list +// filter. Supported fields: * `display_name` supports `=`, `!=` +// comparisons, and `:` wildcard. * `state` supports `=`, `!=` +// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` +// comparisons. `create_time` must be in RFC 3339 format. * `labels` +// supports general map functions that is: `labels.key=value` - +// key:value equality `labels.key:* - key existence Some examples of +// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND +// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR +// display_name="my_job" * `NOT display_name="my_job" * +// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * +// `labels.keyB:*` +func (c *ProjectsLocationsNasJobsListCall) Filter(filter string) *ProjectsLocationsNasJobsListCall { + c.urlParams_.Set("filter", filter) + return c } -// 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 *ProjectsLocationsModelsOperationsService) Wait(name string) *ProjectsLocationsModelsOperationsWaitCall { - c := &ProjectsLocationsModelsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsNasJobsListCall) PageSize(pageSize int64) *ProjectsLocationsNasJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) 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 *ProjectsLocationsModelsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsModelsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListNasJobsResponse.next_page_token of the previous +// JobService.ListNasJobs call. +func (c *ProjectsLocationsNasJobsListCall) PageToken(pageToken string) *ProjectsLocationsNasJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsNasJobsListCall) ReadMask(readMask string) *ProjectsLocationsNasJobsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsModelsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsModelsOperationsWaitCall { +func (c *ProjectsLocationsNasJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsListCall { 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 *ProjectsLocationsNasJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsListCall { + 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 *ProjectsLocationsModelsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsModelsOperationsWaitCall { +func (c *ProjectsLocationsNasJobsListCall) Context(ctx context.Context) *ProjectsLocationsNasJobsListCall { 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 *ProjectsLocationsModelsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsModelsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsListCall) 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}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nasJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.models.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 *ProjectsLocationsModelsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.nasJobs.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListNasJobsResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListNasJobsResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNasJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNasJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93347,7 +101767,7 @@ func (c *ProjectsLocationsModelsOperationsWaitCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ListNasJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93359,31 +101779,47 @@ func (c *ProjectsLocationsModelsOperationsWaitCall) Do(opts ...googleapi.CallOpt } 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}/models/{modelsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.models.operations.wait", + // "description": "Lists NasJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.nasJobs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "filter": { + // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListNasJobsResponse.next_page_token of the previous JobService.ListNasJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the NasJobs from. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/models/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "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", + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+parent}/nasJobs", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ListNasJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -93392,78 +101828,100 @@ func (c *ProjectsLocationsModelsOperationsWaitCall) Do(opts ...googleapi.CallOpt } -// method id "aiplatform.projects.locations.nasJobs.cancel": +// 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 *ProjectsLocationsNasJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNasJobsResponse) 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) + } +} -type ProjectsLocationsNasJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1beta1cancelnasjobrequest *GoogleCloudAiplatformV1beta1CancelNasJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.nasJobs.nasTrialDetails.get": + +type ProjectsLocationsNasJobsNasTrialDetailsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a NasJob. Starts asynchronous cancellation on the -// NasJob. The server makes a best effort to cancel the job, but success -// is not guaranteed. Clients can use JobService.GetNasJob or other -// methods to check whether the cancellation succeeded or whether the -// job completed despite cancellation. On successful cancellation, the -// NasJob is not deleted; instead it becomes a job with a NasJob.error -// value with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`, and NasJob.state is set to `CANCELLED`. +// Get: Gets a NasTrialDetail. // -// - name: The name of the NasJob to cancel. Format: -// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. -func (r *ProjectsLocationsNasJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelnasjobrequest *GoogleCloudAiplatformV1beta1CancelNasJobRequest) *ProjectsLocationsNasJobsCancelCall { - c := &ProjectsLocationsNasJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the NasTrialDetail resource. Format: +// `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialD +// etails/{nas_trial_detail}`. +func (r *ProjectsLocationsNasJobsNasTrialDetailsService) Get(name string) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { + c := &ProjectsLocationsNasJobsNasTrialDetailsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1cancelnasjobrequest = googlecloudaiplatformv1beta1cancelnasjobrequest 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 *ProjectsLocationsNasJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsCancelCall { +func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { 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 *ProjectsLocationsNasJobsNasTrialDetailsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { + 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 *ProjectsLocationsNasJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsNasJobsCancelCall { +func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Context(ctx context.Context) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { 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 *ProjectsLocationsNasJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelnasjobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -93474,14 +101932,16 @@ func (c *ProjectsLocationsNasJobsCancelCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.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 *ProjectsLocationsNasJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1NasTrialDetail or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1NasTrialDetail.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NasTrialDetail, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93500,7 +101960,7 @@ func (c *ProjectsLocationsNasJobsCancelCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1NasTrialDetail{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93512,28 +101972,25 @@ func (c *ProjectsLocationsNasJobsCancelCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use JobService.GetNasJob or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a NasJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and NasJob.state is set to `CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.nasJobs.cancel", + // "description": "Gets a NasTrialDetail.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}/nasTrialDetails/{nasTrialDetailsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.nasJobs.nasTrialDetails.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NasJob to cancel. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", + // "description": "Required. The name of the NasTrialDetail resource. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+/nasTrialDetails/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CancelNasJobRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1NasTrialDetail" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -93542,71 +101999,94 @@ func (c *ProjectsLocationsNasJobsCancelCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.nasJobs.create": +// method id "aiplatform.projects.locations.nasJobs.nasTrialDetails.list": -type ProjectsLocationsNasJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1nasjob *GoogleCloudAiplatformV1beta1NasJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNasJobsNasTrialDetailsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a NasJob +// List: List top NasTrialDetails of a NasJob. // -// - parent: The resource name of the Location to create the NasJob in. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNasJobsService) Create(parent string, googlecloudaiplatformv1beta1nasjob *GoogleCloudAiplatformV1beta1NasJob) *ProjectsLocationsNasJobsCreateCall { - c := &ProjectsLocationsNasJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The name of the NasJob resource. Format: +// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. +func (r *ProjectsLocationsNasJobsNasTrialDetailsService) List(parent string) *ProjectsLocationsNasJobsNasTrialDetailsListCall { + c := &ProjectsLocationsNasJobsNasTrialDetailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudaiplatformv1beta1nasjob = googlecloudaiplatformv1beta1nasjob + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) PageSize(pageSize int64) *ProjectsLocationsNasJobsNasTrialDetailsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListNasTrialDetailsResponse.next_page_token of the previous +// JobService.ListNasTrialDetails call. +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) PageToken(pageToken string) *ProjectsLocationsNasJobsNasTrialDetailsListCall { + 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 *ProjectsLocationsNasJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsCreateCall { +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsNasTrialDetailsListCall { 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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsNasTrialDetailsListCall { + 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 *ProjectsLocationsNasJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsNasJobsCreateCall { +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Context(ctx context.Context) *ProjectsLocationsNasJobsNasTrialDetailsListCall { 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 *ProjectsLocationsNasJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1nasjob) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nasJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nasTrialDetails") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -93617,15 +102097,17 @@ func (c *ProjectsLocationsNasJobsCreateCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1NasJob or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1NasJob.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsNasJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NasJob, error) { +func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93644,7 +102126,7 @@ func (c *ProjectsLocationsNasJobsCreateCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1NasJob{ + ret := &GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93656,28 +102138,36 @@ func (c *ProjectsLocationsNasJobsCreateCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Creates a NasJob", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.nasJobs.create", + // "description": "List top NasTrialDetails of a NasJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}/nasTrialDetails", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.nasJobs.nasTrialDetails.list", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListNasTrialDetailsResponse.next_page_token of the previous JobService.ListNasTrialDetails call.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. The resource name of the Location to create the NasJob in. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The name of the NasJob resource. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/nasJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1NasJob" - // }, + // "path": "v1beta1/{+parent}/nasTrialDetails", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1NasJob" + // "$ref": "GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -93686,30 +102176,58 @@ func (c *ProjectsLocationsNasJobsCreateCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.nasJobs.delete": +// 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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse) 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) + } +} -type ProjectsLocationsNasJobsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken": + +type ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall struct { + s *Service + name string + googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a NasJob. +// GenerateAccessToken: Internal only: Called from Compute Engine +// instance to obtain EUC for owner Anonymous access: authenticates +// caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd // -// - name: The name of the NasJob resource to be deleted. Format: -// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. -func (r *ProjectsLocationsNasJobsService) Delete(name string) *ProjectsLocationsNasJobsDeleteCall { - c := &ProjectsLocationsNasJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the resource requesting the OAuth2 token. Format: +// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ +// runtime}` +// `projects/{project}/locations/{location}/notebookExecutionJobs/{note +// book_execution_job}`. +func (r *ProjectsLocationsNotebookExecutionJobsService) GenerateAccessToken(name string, googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { + c := &ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1generateaccesstokenrequest = googlecloudaiplatformv1beta1generateaccesstokenrequest 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 *ProjectsLocationsNasJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsDeleteCall { +func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -93717,21 +102235,21 @@ func (c *ProjectsLocationsNasJobsDeleteCall) Fields(s ...googleapi.Field) *Proje // 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 *ProjectsLocationsNasJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsNasJobsDeleteCall { +func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { 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 *ProjectsLocationsNasJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) 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_ { @@ -93739,11 +102257,16 @@ func (c *ProjectsLocationsNasJobsDeleteCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1generateaccesstokenrequest) + 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/{+name}:generateAccessToken") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -93754,14 +102277,17 @@ func (c *ProjectsLocationsNasJobsDeleteCall) doRequest(alt string) (*http.Respon return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.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 *ProjectsLocationsNasJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse.ServerRespons +// e.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93780,7 +102306,7 @@ func (c *ProjectsLocationsNasJobsDeleteCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93792,25 +102318,28 @@ func (c *ProjectsLocationsNasJobsDeleteCall) Do(opts ...googleapi.CallOption) (* } return ret, nil // { - // "description": "Deletes a NasJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.nasJobs.delete", + // "description": "Internal only: Called from Compute Engine instance to obtain EUC for owner Anonymous access: authenticates caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookExecutionJobs/{notebookExecutionJobsId}:generateAccessToken", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NasJob resource to be deleted. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", + // "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:generateAccessToken", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -93819,78 +102348,72 @@ func (c *ProjectsLocationsNasJobsDeleteCall) Do(opts ...googleapi.CallOption) (* } -// method id "aiplatform.projects.locations.nasJobs.get": +// method id "aiplatform.projects.locations.notebookExecutionJobs.reportEvent": -type ProjectsLocationsNasJobsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookExecutionJobsReportEventCall struct { + s *Service + name string + googlecloudaiplatformv1beta1reportexecutioneventrequest *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a NasJob +// ReportEvent: // -// - name: The name of the NasJob resource. Format: -// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. -func (r *ProjectsLocationsNasJobsService) Get(name string) *ProjectsLocationsNasJobsGetCall { - c := &ProjectsLocationsNasJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the NotebookExecutionJob resource. Format: +// `projects/{project}/locations/{location}/notebookExecutionJobs/{note +// book_execution_jobs}`. +func (r *ProjectsLocationsNotebookExecutionJobsService) ReportEvent(name string, googlecloudaiplatformv1beta1reportexecutioneventrequest *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest) *ProjectsLocationsNotebookExecutionJobsReportEventCall { + c := &ProjectsLocationsNotebookExecutionJobsReportEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1reportexecutioneventrequest = googlecloudaiplatformv1beta1reportexecutioneventrequest 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 *ProjectsLocationsNasJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsGetCall { +func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookExecutionJobsReportEventCall { 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 *ProjectsLocationsNasJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsGetCall { - 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 *ProjectsLocationsNasJobsGetCall) Context(ctx context.Context) *ProjectsLocationsNasJobsGetCall { +func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Context(ctx context.Context) *ProjectsLocationsNotebookExecutionJobsReportEventCall { 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 *ProjectsLocationsNasJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) 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.googlecloudaiplatformv1beta1reportexecutioneventrequest) + 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/{+name}:reportEvent") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -93901,15 +102424,17 @@ func (c *ProjectsLocationsNasJobsGetCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1NasJob or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudAiplatformV1beta1NasJob.ServerResponse.Header or -// (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.notebookExecutionJobs.reportEvent" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ReportExecutionEventResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ReportExecutionEventResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsNasJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NasJob, error) { +func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReportExecutionEventResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -93928,7 +102453,7 @@ func (c *ProjectsLocationsNasJobsGetCall) Do(opts ...googleapi.CallOption) (*Goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1NasJob{ + ret := &GoogleCloudAiplatformV1beta1ReportExecutionEventResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -93940,146 +102465,110 @@ func (c *ProjectsLocationsNasJobsGetCall) Do(opts ...googleapi.CallOption) (*Goo } return ret, nil // { - // "description": "Gets a NasJob", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.nasJobs.get", + // "description": "", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookExecutionJobs/{notebookExecutionJobsId}:reportEvent", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookExecutionJobs.reportEvent", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NasJob resource. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", + // "description": "Required. The name of the NotebookExecutionJob resource. Format: `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_jobs}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:reportEvent", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1NasJob" + // "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" + // "https://www.googleapis.com/auth/cloud-platform" // ] // } } -// method id "aiplatform.projects.locations.nasJobs.list": +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.create": -type ProjectsLocationsNasJobsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimeTemplatesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1notebookruntimetemplate *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists NasJobs in a Location. +// Create: Creates a NotebookRuntimeTemplate. // -// - parent: The resource name of the Location to list the NasJobs from. -// Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNasJobsService) List(parent string) *ProjectsLocationsNasJobsListCall { - c := &ProjectsLocationsNasJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The resource name of the Location to create the +// NotebookRuntimeTemplate. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Create(parent string, googlecloudaiplatformv1beta1notebookruntimetemplate *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.googlecloudaiplatformv1beta1notebookruntimetemplate = googlecloudaiplatformv1beta1notebookruntimetemplate return c } -// Filter sets the optional parameter "filter": The standard list -// filter. Supported fields: * `display_name` supports `=`, `!=` -// comparisons, and `:` wildcard. * `state` supports `=`, `!=` -// comparisons. * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` -// comparisons. `create_time` must be in RFC 3339 format. * `labels` -// supports general map functions that is: `labels.key=value` - -// key:value equality `labels.key:* - key existence Some examples of -// using the filter are: * `state="JOB_STATE_SUCCEEDED" AND -// display_name:"my_job_*" * `state!="JOB_STATE_FAILED" OR -// display_name="my_job" * `NOT display_name="my_job" * -// `create_time>"2021-05-18T00:00:00Z" * `labels.keyA=valueA` * -// `labels.keyB:*` -func (c *ProjectsLocationsNasJobsListCall) Filter(filter string) *ProjectsLocationsNasJobsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsNasJobsListCall) PageSize(pageSize int64) *ProjectsLocationsNasJobsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListNasJobsResponse.next_page_token of the previous -// JobService.ListNasJobs call. -func (c *ProjectsLocationsNasJobsListCall) PageToken(pageToken string) *ProjectsLocationsNasJobsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsNasJobsListCall) ReadMask(readMask string) *ProjectsLocationsNasJobsListCall { - c.urlParams_.Set("readMask", readMask) +// NotebookRuntimeTemplateId sets the optional parameter +// "notebookRuntimeTemplateId": User specified ID for the notebook +// runtime template. +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) NotebookRuntimeTemplateId(notebookRuntimeTemplateId string) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { + c.urlParams_.Set("notebookRuntimeTemplateId", notebookRuntimeTemplateId) 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 *ProjectsLocationsNasJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsListCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { 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 *ProjectsLocationsNasJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsListCall { - 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 *ProjectsLocationsNasJobsListCall) Context(ctx context.Context) *ProjectsLocationsNasJobsListCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { 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 *ProjectsLocationsNasJobsListCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) 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.googlecloudaiplatformv1beta1notebookruntimetemplate) + 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/{+parent}/nasJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/notebookRuntimeTemplates") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -94090,18 +102579,14 @@ func (c *ProjectsLocationsNasJobsListCall) doRequest(alt string) (*http.Response return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListNasJobsResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListNasJobsResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNasJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNasJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.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 *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94120,7 +102605,7 @@ func (c *ProjectsLocationsNasJobsListCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListNasJobsResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94132,47 +102617,33 @@ func (c *ProjectsLocationsNasJobsListCall) Do(opts ...googleapi.CallOption) (*Go } return ret, nil // { - // "description": "Lists NasJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.nasJobs.list", + // "description": "Creates a NotebookRuntimeTemplate.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter. Supported fields: * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. * `state` supports `=`, `!=` comparisons. * `create_time` supports `=`, `!=`,`\u003c`, `\u003c=`,`\u003e`, `\u003e=` comparisons. `create_time` must be in RFC 3339 format. * `labels` supports general map functions that is: `labels.key=value` - key:value equality `labels.key:* - key existence Some examples of using the filter are: * `state=\"JOB_STATE_SUCCEEDED\" AND display_name:\"my_job_*\"` * `state!=\"JOB_STATE_FAILED\" OR display_name=\"my_job\"` * `NOT display_name=\"my_job\"` * `create_time\u003e\"2021-05-18T00:00:00Z\"` * `labels.keyA=valueA` * `labels.keyB:*`", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListNasJobsResponse.next_page_token of the previous JobService.ListNasJobs call.", + // "notebookRuntimeTemplateId": { + // "description": "Optional. User specified ID for the notebook runtime template.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list the NasJobs from. Format: `projects/{project}/locations/{location}`", + // "description": "Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/nasJobs", + // "path": "v1beta1/{+parent}/notebookRuntimeTemplates", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListNasJobsResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -94181,45 +102652,24 @@ func (c *ProjectsLocationsNasJobsListCall) Do(opts ...googleapi.CallOption) (*Go } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsNasJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNasJobsResponse) 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.nasJobs.nasTrialDetails.get": +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.delete": -type ProjectsLocationsNasJobsNasTrialDetailsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimeTemplatesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a NasTrialDetail. +// Delete: Deletes a NotebookRuntimeTemplate. // -// - name: The name of the NasTrialDetail resource. Format: -// `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialD -// etails/{nas_trial_detail}`. -func (r *ProjectsLocationsNasJobsNasTrialDetailsService) Get(name string) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { - c := &ProjectsLocationsNasJobsNasTrialDetailsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the NotebookRuntimeTemplate resource to be +// deleted. Format: +// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{n +// otebook_runtime_template}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Delete(name string) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -94227,54 +102677,41 @@ func (r *ProjectsLocationsNasJobsNasTrialDetailsService) Get(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { 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 *ProjectsLocationsNasJobsNasTrialDetailsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { - 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 *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Context(ctx context.Context) *ProjectsLocationsNasJobsNasTrialDetailsGetCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { 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 *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) 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) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -94285,16 +102722,14 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1NasTrialDetail or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1NasTrialDetail.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NasTrialDetail, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.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 *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94313,7 +102748,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1NasTrialDetail{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94325,25 +102760,25 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Gets a NasTrialDetail.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}/nasTrialDetails/{nasTrialDetailsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.nasJobs.nasTrialDetails.get", + // "description": "Deletes a NotebookRuntimeTemplate.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NasTrialDetail resource. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}`", + // "description": "Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+/nasTrialDetails/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1NasTrialDetail" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -94352,47 +102787,32 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsGetCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.nasJobs.nasTrialDetails.list": +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.get": -type ProjectsLocationsNasJobsNasTrialDetailsListCall struct { +type ProjectsLocationsNotebookRuntimeTemplatesGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: List top NasTrialDetails of a NasJob. +// Get: Gets a NotebookRuntimeTemplate. // -// - parent: The name of the NasJob resource. Format: -// `projects/{project}/locations/{location}/nasJobs/{nas_job}`. -func (r *ProjectsLocationsNasJobsNasTrialDetailsService) List(parent string) *ProjectsLocationsNasJobsNasTrialDetailsListCall { - c := &ProjectsLocationsNasJobsNasTrialDetailsListCall{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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) PageSize(pageSize int64) *ProjectsLocationsNasJobsNasTrialDetailsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListNasTrialDetailsResponse.next_page_token of the previous -// JobService.ListNasTrialDetails call. -func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) PageToken(pageToken string) *ProjectsLocationsNasJobsNasTrialDetailsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the NotebookRuntimeTemplate resource. Format: +// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{n +// otebook_runtime_template}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Get(name string) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesGetCall{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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNasJobsNasTrialDetailsListCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -94402,7 +102822,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) 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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNasJobsNasTrialDetailsListCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { c.ifNoneMatch_ = entityTag return c } @@ -94410,21 +102830,21 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) 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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) Context(ctx context.Context) *ProjectsLocationsNasJobsNasTrialDetailsListCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { 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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) 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_ { @@ -94437,7 +102857,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/nasTrialDetails") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -94445,22 +102865,21 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.nasJobs.nasTrialDetails.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse.ServerRespons -// e.Header or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94479,7 +102898,7 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse{ + ret := &GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94491,36 +102910,25 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "List top NasTrialDetails of a NasJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/nasJobs/{nasJobsId}/nasTrialDetails", + // "description": "Gets a NotebookRuntimeTemplate.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.nasJobs.nasTrialDetails.list", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "pageSize": { - // "description": "The standard list page size.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListNasTrialDetailsResponse.next_page_token of the previous JobService.ListNasTrialDetails call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The name of the NasJob resource. Format: `projects/{project}/locations/{location}/nasJobs/{nas_job}`", + // "name": { + // "description": "Required. The name of the NotebookRuntimeTemplate resource. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/nasJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/nasTrialDetails", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -94529,58 +102937,52 @@ func (c *ProjectsLocationsNasJobsNasTrialDetailsListCall) Do(opts ...googleapi.C } -// 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 *ProjectsLocationsNasJobsNasTrialDetailsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNasTrialDetailsResponse) 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.notebookExecutionJobs.generateAccessToken": +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy": -type ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall struct { - s *Service - name string - googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GenerateAccessToken: Internal only: Called from Compute Engine -// instance to obtain EUC for owner Anonymous access: authenticates -// caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. // -// - name: The name of the resource requesting the OAuth2 token. Format: -// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ -// runtime}` -// `projects/{project}/locations/{location}/notebookExecutionJobs/{note -// book_execution_job}`. -func (r *ProjectsLocationsNotebookExecutionJobsService) GenerateAccessToken(name string, googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { - c := &ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1generateaccesstokenrequest = googlecloudaiplatformv1beta1generateaccesstokenrequest +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) GetIamPolicy(resource string) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -94588,21 +102990,21 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) 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 *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { 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 *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) 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_ { @@ -94610,14 +103012,9 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) doReques } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1generateaccesstokenrequest) - 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}:generateAccessToken") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -94625,22 +103022,19 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) doReques } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94659,7 +103053,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94671,28 +103065,31 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts } return ret, nil // { - // "description": "Internal only: Called from Compute Engine instance to obtain EUC for owner Anonymous access: authenticates caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookExecutionJobs/{notebookExecutionJobsId}:generateAccessToken", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:getIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookExecutionJobs.generateAccessToken", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:generateAccessToken", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest" - // }, + // "path": "v1beta1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -94701,93 +103098,152 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts } -// method id "aiplatform.projects.locations.notebookExecutionJobs.reportEvent": +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.list": + +type ProjectsLocationsNotebookRuntimeTemplatesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists NotebookRuntimeTemplates in a Location. +// +// - parent: The resource name of the Location from which to list the +// NotebookRuntimeTemplates. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) List(parent string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `notebookRuntimeTemplate` supports = +// and !=. `notebookRuntimeTemplate` represents the +// NotebookRuntimeTemplate ID, i.e. the last segment of the +// NotebookRuntimeTemplate's resource name. * `display_name` supports = +// and != * `labels` supports general map functions that is: * +// `labels.key=value` - key:value equality * `labels.key:* or labels:key +// - key existence * A key including a space must be quoted. `labels."a +// key". * `notebookRuntimeType` supports = and !=. notebookRuntimeType +// enum: [USER_DEFINED, ONE_CLICK]. Some examples: * +// `notebookRuntimeTemplate=notebookRuntimeTemplate123` * +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `notebookRuntimeType=USER_DEFINED` +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("filter", filter) + return c +} -type ProjectsLocationsNotebookExecutionJobsReportEventCall struct { - s *Service - name string - googlecloudaiplatformv1beta1reportexecutioneventrequest *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c } -// ReportEvent: -// -// - name: The name of the NotebookExecutionJob resource. Format: -// `projects/{project}/locations/{location}/notebookExecutionJobs/{note -// book_execution_jobs}`. -func (r *ProjectsLocationsNotebookExecutionJobsService) ReportEvent(name string, googlecloudaiplatformv1beta1reportexecutioneventrequest *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest) *ProjectsLocationsNotebookExecutionJobsReportEventCall { - c := &ProjectsLocationsNotebookExecutionJobsReportEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1reportexecutioneventrequest = googlecloudaiplatformv1beta1reportexecutioneventrequest +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListNotebookRuntimeTemplatesResponse.next_page_token of the previous +// NotebookService.ListNotebookRuntimeTemplates call. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) ReadMask(readMask string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookExecutionJobsReportEventCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesListCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { + 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 *ProjectsLocationsNotebookExecutionJobsReportEventCall) Context(ctx context.Context) *ProjectsLocationsNotebookExecutionJobsReportEventCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesListCall { 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 *ProjectsLocationsNotebookExecutionJobsReportEventCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1reportexecutioneventrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:reportEvent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/notebookRuntimeTemplates") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookExecutionJobs.reportEvent" call. +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.list" call. // Exactly one of -// *GoogleCloudAiplatformV1beta1ReportExecutionEventResponse or error -// will be non-nil. Any non-2xx status code is an error. Response +// *GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1ReportExecutionEventResponse.ServerRespon -// se.Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse.Serv +// erResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReportExecutionEventResponse, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94806,7 +103262,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ReportExecutionEventResponse{ + ret := &GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94818,28 +103274,52 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googl } return ret, nil // { - // "description": "", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookExecutionJobs/{notebookExecutionJobsId}:reportEvent", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookExecutionJobs.reportEvent", + // "description": "Lists NotebookRuntimeTemplates in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the NotebookExecutionJob resource. Format: `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_jobs}`", + // "filter": { + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `notebookRuntimeType=USER_DEFINED`", + // "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. Typically obtained via ListNotebookRuntimeTemplatesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimeTemplates call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:reportEvent", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventRequest" - // }, + // "path": "v1beta1/{+parent}/notebookRuntimeTemplates", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -94848,41 +103328,57 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.notebookRuntimeTemplates.create": - -type ProjectsLocationsNotebookRuntimeTemplatesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1notebookruntimetemplate *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse) 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) + } } -// Create: Creates a NotebookRuntimeTemplate. -// -// - parent: The resource name of the Location to create the -// NotebookRuntimeTemplate. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Create(parent string, googlecloudaiplatformv1beta1notebookruntimetemplate *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1notebookruntimetemplate = googlecloudaiplatformv1beta1notebookruntimetemplate - return c +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy": + +type ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// NotebookRuntimeTemplateId sets the optional parameter -// "notebookRuntimeTemplateId": User specified ID for the notebook -// runtime template. -func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) NotebookRuntimeTemplateId(notebookRuntimeTemplateId string) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { - c.urlParams_.Set("notebookRuntimeTemplateId", notebookRuntimeTemplateId) +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest 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 *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -94890,21 +103386,21 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Fields(s ...google // 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 *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesCreateCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) 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_ { @@ -94912,14 +103408,14 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) doRequest(alt stri } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1notebookruntimetemplate) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) 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/{+parent}/notebookRuntimeTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -94927,19 +103423,19 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.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 +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -94958,7 +103454,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -94970,33 +103466,28 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Do(opts ...googlea } return ret, nil // { - // "description": "Creates a NotebookRuntimeTemplate.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:setIamPolicy", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.create", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "notebookRuntimeTemplateId": { - // "description": "Optional. User specified ID for the notebook runtime template.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to create the NotebookRuntimeTemplate. Format: `projects/{project}/locations/{location}`", + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/notebookRuntimeTemplates", + // "path": "v1beta1/{+resource}:setIamPolicy", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate" + // "$ref": "GoogleIamV1SetIamPolicyRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -95005,32 +103496,47 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesCreateCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.notebookRuntimeTemplates.delete": +// method id "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions": -type ProjectsLocationsNotebookRuntimeTemplatesDeleteCall struct { +type ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall struct { s *Service - name string + resource string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Delete: Deletes a NotebookRuntimeTemplate. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - name: The name of the NotebookRuntimeTemplate resource to be -// deleted. Format: -// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{n -// otebook_runtime_template}`. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Delete(name string) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsNotebookRuntimeTemplatesService) TestIamPermissions(resource string) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { + c := &ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// Permissions sets the optional parameter "permissions": The set of +// permissions to check for the `resource`. Permissions with wildcards +// (such as `*` or `storage.*`) are not allowed. For more information +// see IAM Overview +// (https://cloud.google.com/iam/docs/overview#permissions). +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { + c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) 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 *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -95038,21 +103544,21 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Fields(s ...google // 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 *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall { +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) 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_ { @@ -95062,27 +103568,28 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) doRequest(alt stri var body io.Reader = nil 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/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.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 +// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions" call. +// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95101,7 +103608,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95113,25 +103620,31 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Do(opts ...googlea } return ret, nil // { - // "description": "Deletes a NotebookRuntimeTemplate.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.delete", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the NotebookRuntimeTemplate resource to be deleted. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", + // "permissions": { + // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "location": "query", + // "repeated": true, + // "type": "string" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:testIamPermissions", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -95140,99 +103653,92 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesDeleteCall) Do(opts ...googlea } -// method id "aiplatform.projects.locations.notebookRuntimeTemplates.get": +// method id "aiplatform.projects.locations.notebookRuntimes.assign": -type ProjectsLocationsNotebookRuntimeTemplatesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimesAssignCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1assignnotebookruntimerequest *GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a NotebookRuntimeTemplate. +// Assign: Assigns a NotebookRuntime to a user for a particular Notebook +// file. This method will either returns an existing assignment or +// generates a new one. // -// - name: The name of the NotebookRuntimeTemplate resource. Format: -// `projects/{project}/locations/{location}/notebookRuntimeTemplates/{n -// otebook_runtime_template}`. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) Get(name string) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to get the +// NotebookRuntime assignment. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimesService) Assign(parent string, googlecloudaiplatformv1beta1assignnotebookruntimerequest *GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesAssignCall { + c := &ProjectsLocationsNotebookRuntimesAssignCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1assignnotebookruntimerequest = googlecloudaiplatformv1beta1assignnotebookruntimerequest 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 *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesAssignCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { - 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 *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesGetCall { +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesAssignCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesAssignCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesAssignCall) 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.googlecloudaiplatformv1beta1assignnotebookruntimerequest) + 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}/notebookRuntimes:assign") 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.notebookRuntimeTemplates.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimes.assign" 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 *ProjectsLocationsNotebookRuntimesAssignCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95251,7 +103757,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95263,25 +103769,28 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Gets a NotebookRuntimeTemplate.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.get", + // "description": "Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes:assign", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimes.assign", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the NotebookRuntimeTemplate resource. Format: `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`", + // "parent": { + // "description": "Required. The resource name of the Location to get the NotebookRuntime assignment. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/notebookRuntimes:assign", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -95290,52 +103799,32 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy": +// method id "aiplatform.projects.locations.notebookRuntimes.delete": -type ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall struct { +type ProjectsLocationsNotebookRuntimesDeleteCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ctx_ context.Context - header_ http.Header -} - -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. -// -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) GetIamPolicy(resource string) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c + header_ http.Header } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// Delete: Deletes a NotebookRuntime. +// +// - name: The name of the NotebookRuntime resource to be deleted. +// 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. +func (r *ProjectsLocationsNotebookRuntimesService) Delete(name string) *ProjectsLocationsNotebookRuntimesDeleteCall { + c := &ProjectsLocationsNotebookRuntimesDeleteCall{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 *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -95343,21 +103832,21 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) 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 *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall { +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesDeleteCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) 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_ { @@ -95367,27 +103856,27 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) doRequest(al var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.notebookRuntimes.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 *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95406,7 +103895,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95418,31 +103907,25 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Do(opts ...g } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:getIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.getIamPolicy", + // "description": "Deletes a NotebookRuntime.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.notebookRuntimes.delete", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "Required. The name of the NotebookRuntime resource to be deleted. 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/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:getIamPolicy", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -95451,152 +103934,97 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesGetIamPolicyCall) Do(opts ...g } -// method id "aiplatform.projects.locations.notebookRuntimeTemplates.list": +// method id "aiplatform.projects.locations.notebookRuntimes.generateAccessToken": -type ProjectsLocationsNotebookRuntimeTemplatesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall struct { + s *Service + name string + googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists NotebookRuntimeTemplates in a Location. +// GenerateAccessToken: Internal only: Called from Compute Engine +// instance to obtain EUC for owner Anonymous access: authenticates +// caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd // -// - parent: The resource name of the Location from which to list the -// NotebookRuntimeTemplates. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) List(parent string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `notebookRuntimeTemplate` supports = -// and !=. `notebookRuntimeTemplate` represents the -// NotebookRuntimeTemplate ID, i.e. the last segment of the -// NotebookRuntimeTemplate's resource name. * `display_name` supports = -// and != * `labels` supports general map functions that is: * -// `labels.key=value` - key:value equality * `labels.key:* or labels:key -// - key existence * A key including a space must be quoted. `labels."a -// key". * `notebookRuntimeType` supports = and !=. notebookRuntimeType -// enum: [USER_DEFINED, ONE_CLICK]. Some examples: * -// `notebookRuntimeTemplate=notebookRuntimeTemplate123` * -// `displayName="myDisplayName" * `labels.myKey="myValue" * -// `notebookRuntimeType=USER_DEFINED` -func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) OrderBy(orderBy string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) PageSize(pageSize int64) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListNotebookRuntimeTemplatesResponse.next_page_token of the previous -// NotebookService.ListNotebookRuntimeTemplates call. -func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) PageToken(pageToken string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) ReadMask(readMask string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - c.urlParams_.Set("readMask", readMask) +// - name: The name of the resource requesting the OAuth2 token. Format: +// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ +// runtime}` +// `projects/{project}/locations/{location}/notebookExecutionJobs/{note +// book_execution_job}`. +func (r *ProjectsLocationsNotebookRuntimesService) GenerateAccessToken(name string, googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { + c := &ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1generateaccesstokenrequest = googlecloudaiplatformv1beta1generateaccesstokenrequest 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesListCall { +func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { - 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesListCall { +func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) 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.googlecloudaiplatformv1beta1generateaccesstokenrequest) + 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/{+parent}/notebookRuntimeTemplates") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:generateAccessToken") 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{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.list" call. +// Do executes the "aiplatform.projects.locations.notebookRuntimes.generateAccessToken" call. // Exactly one of -// *GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse or -// error will be non-nil. Any non-2xx status code is an error. Response +// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse or error +// will be non-nil. Any non-2xx status code is an error. Response // headers are in either -// *GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse.Serv -// erResponse.Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse.ServerRespons +// e.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse, error) { +func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95615,7 +104043,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse{ + ret := &GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95627,52 +104055,28 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Lists NotebookRuntimeTemplates in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.list", + // "description": "Internal only: Called from Compute Engine instance to obtain EUC for owner Anonymous access: authenticates caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:generateAccessToken", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimes.generateAccessToken", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `notebookRuntimeType=USER_DEFINED`", - // "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. Typically obtained via ListNotebookRuntimeTemplatesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimeTemplates call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location from which to list the NotebookRuntimeTemplates. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/notebookRuntimeTemplates", + // "path": "v1beta1/{+name}:generateAccessToken", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest" + // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse" + // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -95681,114 +104085,100 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) 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 *ProjectsLocationsNotebookRuntimeTemplatesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse) 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.notebookRuntimeTemplates.setIamPolicy": +// method id "aiplatform.projects.locations.notebookRuntimes.get": -type ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// Get: Gets a NotebookRuntime. // -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest +// - name: The name of the NotebookRuntime resource. 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. +func (r *ProjectsLocationsNotebookRuntimesService) Get(name string) *ProjectsLocationsNotebookRuntimesGetCall { + c := &ProjectsLocationsNotebookRuntimesGetCall{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 *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { +func (c *ProjectsLocationsNotebookRuntimesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesGetCall { 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 *ProjectsLocationsNotebookRuntimesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimesGetCall { + 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 *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall { +func (c *ProjectsLocationsNotebookRuntimesGetCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesGetCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimes.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1NotebookRuntime or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1NotebookRuntime.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNotebookRuntimesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NotebookRuntime, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95807,7 +104197,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Do(opts ...g if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleCloudAiplatformV1beta1NotebookRuntime{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95819,28 +104209,25 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Do(opts ...g } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.setIamPolicy", + // "description": "Gets a NotebookRuntime.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimes.get", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "Required. The name of the NotebookRuntime resource. 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/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "GoogleIamV1SetIamPolicyRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntime" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -95849,100 +104236,163 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesSetIamPolicyCall) Do(opts ...g } -// method id "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions": +// method id "aiplatform.projects.locations.notebookRuntimes.list": -type ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// List: Lists NotebookRuntimes in a Location. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsNotebookRuntimeTemplatesService) TestIamPermissions(resource string) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { - c := &ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - parent: The resource name of the Location from which to list the +// NotebookRuntimes. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *ProjectsLocationsNotebookRuntimesListCall { + c := &ProjectsLocationsNotebookRuntimesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Permissions sets the optional parameter "permissions": The set of -// permissions to check for the `resource`. Permissions with wildcards -// (such as `*` or `storage.*`) are not allowed. For more information -// see IAM Overview -// (https://cloud.google.com/iam/docs/overview#permissions). -func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Permissions(permissions ...string) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { - c.urlParams_.SetMulti("permissions", append([]string{}, permissions...)) +// Filter sets the optional parameter "filter": An expression for +// filtering the results of the request. For field names both snake_case +// and camelCase are supported. * `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` +func (c *ProjectsLocationsNotebookRuntimesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimesListCall { + 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 *ProjectsLocationsNotebookRuntimesListCall) OrderBy(orderBy string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsNotebookRuntimesListCall) PageSize(pageSize int64) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListNotebookRuntimesResponse.next_page_token of the previous +// NotebookService.ListNotebookRuntimes call. +func (c *ProjectsLocationsNotebookRuntimesListCall) PageToken(pageToken string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsNotebookRuntimesListCall) ReadMask(readMask string) *ProjectsLocationsNotebookRuntimesListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { +func (c *ProjectsLocationsNotebookRuntimesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesListCall { 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 *ProjectsLocationsNotebookRuntimesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimesListCall { + 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 *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall { +func (c *ProjectsLocationsNotebookRuntimesListCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesListCall { 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 *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesListCall) 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/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/notebookRuntimes") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions" call. -// Exactly one of *GoogleIamV1TestIamPermissionsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleIamV1TestIamPermissionsResponse.ServerResponse.Header or (if a -// response was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1TestIamPermissionsResponse, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimes.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -95961,7 +104411,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1TestIamPermissionsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -95973,31 +104423,52 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Do(opt } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimeTemplates/{notebookRuntimeTemplatesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimeTemplates.testIamPermissions", + // "description": "Lists NotebookRuntimes in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.notebookRuntimes.list", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "permissions": { - // "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", + // "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`", // "location": "query", - // "repeated": true, // "type": "string" // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "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. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location from which to list the NotebookRuntimes. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimeTemplates/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Optional. Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:testIamPermissions", + // "path": "v1beta1/{+parent}/notebookRuntimes", // "response": { - // "$ref": "GoogleIamV1TestIamPermissionsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -96006,35 +104477,54 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesTestIamPermissionsCall) Do(opt } -// method id "aiplatform.projects.locations.notebookRuntimes.assign": +// 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 *ProjectsLocationsNotebookRuntimesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse) 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) + } +} -type ProjectsLocationsNotebookRuntimesAssignCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1assignnotebookruntimerequest *GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.notebookRuntimes.reportEvent": + +type ProjectsLocationsNotebookRuntimesReportEventCall struct { + s *Service + name string + googlecloudaiplatformv1beta1reportruntimeeventrequest *GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Assign: Assigns a NotebookRuntime to a user for a particular Notebook -// file. This method will either returns an existing assignment or -// generates a new one. +// ReportEvent: // -// - parent: The resource name of the Location to get the -// NotebookRuntime assignment. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNotebookRuntimesService) Assign(parent string, googlecloudaiplatformv1beta1assignnotebookruntimerequest *GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesAssignCall { - c := &ProjectsLocationsNotebookRuntimesAssignCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1assignnotebookruntimerequest = googlecloudaiplatformv1beta1assignnotebookruntimerequest +// - name: The name of the NotebookRuntime resource. Format: +// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ +// runtime}`. +func (r *ProjectsLocationsNotebookRuntimesService) ReportEvent(name string, googlecloudaiplatformv1beta1reportruntimeeventrequest *GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest) *ProjectsLocationsNotebookRuntimesReportEventCall { + c := &ProjectsLocationsNotebookRuntimesReportEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1reportruntimeeventrequest = googlecloudaiplatformv1beta1reportruntimeeventrequest 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 *ProjectsLocationsNotebookRuntimesAssignCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesAssignCall { +func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesReportEventCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96042,21 +104532,21 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsNotebookRuntimesAssignCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesAssignCall { +func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesReportEventCall { 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 *ProjectsLocationsNotebookRuntimesAssignCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesAssignCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesReportEventCall) 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_ { @@ -96064,14 +104554,14 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1assignnotebookruntimerequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1reportruntimeeventrequest) 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/{+parent}/notebookRuntimes:assign") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:reportEvent") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -96079,19 +104569,22 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) doRequest(alt string) (*ht } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.assign" 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 *ProjectsLocationsNotebookRuntimesAssignCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimes.reportEvent" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96110,7 +104603,7 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96122,28 +104615,28 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes:assign", + // "description": "", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:reportEvent", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimes.assign", + // "id": "aiplatform.projects.locations.notebookRuntimes.reportEvent", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to get the NotebookRuntime assignment. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/notebookRuntimes:assign", + // "path": "v1beta1/{+name}:reportEvent", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1AssignNotebookRuntimeRequest" + // "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest" // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -96152,32 +104645,34 @@ func (c *ProjectsLocationsNotebookRuntimesAssignCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.notebookRuntimes.delete": +// method id "aiplatform.projects.locations.notebookRuntimes.start": -type ProjectsLocationsNotebookRuntimesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimesStartCall struct { + s *Service + name string + googlecloudaiplatformv1beta1startnotebookruntimerequest *GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a NotebookRuntime. +// Start: Starts a NotebookRuntime. // -// - name: The name of the NotebookRuntime resource to be deleted. +// - name: The name of the NotebookRuntime resource to be started. // 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. -func (r *ProjectsLocationsNotebookRuntimesService) Delete(name string) *ProjectsLocationsNotebookRuntimesDeleteCall { - c := &ProjectsLocationsNotebookRuntimesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsNotebookRuntimesService) Start(name string, googlecloudaiplatformv1beta1startnotebookruntimerequest *GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesStartCall { + c := &ProjectsLocationsNotebookRuntimesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1startnotebookruntimerequest = googlecloudaiplatformv1beta1startnotebookruntimerequest 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 *ProjectsLocationsNotebookRuntimesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesDeleteCall { +func (c *ProjectsLocationsNotebookRuntimesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesStartCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96185,21 +104680,21 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Fields(s ...googleapi.Fiel // 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 *ProjectsLocationsNotebookRuntimesDeleteCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesDeleteCall { +func (c *ProjectsLocationsNotebookRuntimesStartCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesStartCall { 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 *ProjectsLocationsNotebookRuntimesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesStartCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesStartCall) 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_ { @@ -96207,11 +104702,16 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1startnotebookruntimerequest) + 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/{+name}:start") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -96222,14 +104722,14 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.delete" call. +// Do executes the "aiplatform.projects.locations.notebookRuntimes.start" 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 *ProjectsLocationsNotebookRuntimesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsNotebookRuntimesStartCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96260,23 +104760,26 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Deletes a NotebookRuntime.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.notebookRuntimes.delete", + // "description": "Starts a NotebookRuntime.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:start", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.notebookRuntimes.start", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NotebookRuntime resource to be deleted. 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": "Required. The name of the NotebookRuntime resource to be started. 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": "v1beta1/{+name}", + // "path": "v1beta1/{+name}:start", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -96287,37 +104790,34 @@ func (c *ProjectsLocationsNotebookRuntimesDeleteCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.notebookRuntimes.generateAccessToken": +// method id "aiplatform.projects.locations.notebookRuntimes.upgrade": -type ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall struct { - s *Service - name string - googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNotebookRuntimesUpgradeCall struct { + s *Service + name string + googlecloudaiplatformv1beta1upgradenotebookruntimerequest *GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GenerateAccessToken: Internal only: Called from Compute Engine -// instance to obtain EUC for owner Anonymous access: authenticates -// caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd +// Upgrade: Upgrades a NotebookRuntime. // -// - name: The name of the resource requesting the OAuth2 token. Format: -// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ -// runtime}` -// `projects/{project}/locations/{location}/notebookExecutionJobs/{note -// book_execution_job}`. -func (r *ProjectsLocationsNotebookRuntimesService) GenerateAccessToken(name string, googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { - c := &ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: 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. +func (r *ProjectsLocationsNotebookRuntimesService) Upgrade(name string, googlecloudaiplatformv1beta1upgradenotebookruntimerequest *GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesUpgradeCall { + c := &ProjectsLocationsNotebookRuntimesUpgradeCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1generateaccesstokenrequest = googlecloudaiplatformv1beta1generateaccesstokenrequest + c.googlecloudaiplatformv1beta1upgradenotebookruntimerequest = googlecloudaiplatformv1beta1upgradenotebookruntimerequest 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 *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { +func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesUpgradeCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -96325,21 +104825,21 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { +func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesUpgradeCall { 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 *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Header() http.Header { +func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) 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_ { @@ -96347,14 +104847,14 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1generateaccesstokenrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1upgradenotebookruntimerequest) 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}:generateAccessToken") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:upgrade") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -96367,17 +104867,14 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.generateAccessToken" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse.ServerRespons -// e.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse, error) { +// Do executes the "aiplatform.projects.locations.notebookRuntimes.upgrade" 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 *ProjectsLocationsNotebookRuntimesUpgradeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -96396,7 +104893,7 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96408,28 +104905,28 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Do(opts ...go } return ret, nil // { - // "description": "Internal only: Called from Compute Engine instance to obtain EUC for owner Anonymous access: authenticates caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:generateAccessToken", + // "description": "Upgrades a NotebookRuntime.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:upgrade", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimes.generateAccessToken", + // "id": "aiplatform.projects.locations.notebookRuntimes.upgrade", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", + // "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": "v1beta1/{+name}:generateAccessToken", + // "path": "v1beta1/{+name}:upgrade", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest" + // "$ref": "GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -96438,25 +104935,30 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Do(opts ...go } -// method id "aiplatform.projects.locations.notebookRuntimes.get": +// method id "aiplatform.projects.locations.operations.cancel": -type ProjectsLocationsNotebookRuntimesGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets a NotebookRuntime. +// 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 NotebookRuntime resource. 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. -func (r *ProjectsLocationsNotebookRuntimesService) Get(name string) *ProjectsLocationsNotebookRuntimesGetCall { - c := &ProjectsLocationsNotebookRuntimesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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 } @@ -96464,54 +104966,41 @@ func (r *ProjectsLocationsNotebookRuntimesService) Get(name string) *ProjectsLoc // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsNotebookRuntimesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesGetCall { +func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall { 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 *ProjectsLocationsNotebookRuntimesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimesGetCall { - 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 *ProjectsLocationsNotebookRuntimesGetCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesGetCall { +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 *ProjectsLocationsNotebookRuntimesGetCall) Header() http.Header { +func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesGetCall) doRequest(alt string) (*http.Response, error) { +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()) - 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -96522,230 +105011,149 @@ func (c *ProjectsLocationsNotebookRuntimesGetCall) doRequest(alt string) (*http. return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1NotebookRuntime or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1NotebookRuntime.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNotebookRuntimesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1NotebookRuntime, error) { +// 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 := &GoogleCloudAiplatformV1beta1NotebookRuntime{ - 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 a NotebookRuntime.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.notebookRuntimes.get", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "Required. The name of the NotebookRuntime resource. 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": "v1beta1/{+name}", - // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1NotebookRuntime" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "aiplatform.projects.locations.notebookRuntimes.list": - -type ProjectsLocationsNotebookRuntimesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists NotebookRuntimes in a Location. -// -// - parent: The resource name of the Location from which to list the -// NotebookRuntimes. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *ProjectsLocationsNotebookRuntimesListCall { - c := &ProjectsLocationsNotebookRuntimesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// Filter sets the optional parameter "filter": An expression for -// filtering the results of the request. For field names both snake_case -// and camelCase are supported. * `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` -func (c *ProjectsLocationsNotebookRuntimesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimesListCall { - c.urlParams_.Set("filter", filter) - return c -} + } + 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}/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": "v1beta1/{+name}:cancel", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } -// 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 *ProjectsLocationsNotebookRuntimesListCall) OrderBy(orderBy string) *ProjectsLocationsNotebookRuntimesListCall { - c.urlParams_.Set("orderBy", orderBy) - return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsNotebookRuntimesListCall) PageSize(pageSize int64) *ProjectsLocationsNotebookRuntimesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} +// method id "aiplatform.projects.locations.operations.delete": -// PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListNotebookRuntimesResponse.next_page_token of the previous -// NotebookService.ListNotebookRuntimes call. -func (c *ProjectsLocationsNotebookRuntimesListCall) PageToken(pageToken string) *ProjectsLocationsNotebookRuntimesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c +type ProjectsLocationsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsNotebookRuntimesListCall) ReadMask(readMask string) *ProjectsLocationsNotebookRuntimesListCall { - c.urlParams_.Set("readMask", readMask) +// 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 *ProjectsLocationsNotebookRuntimesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesListCall { +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { 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 *ProjectsLocationsNotebookRuntimesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNotebookRuntimesListCall { - 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 *ProjectsLocationsNotebookRuntimesListCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesListCall { +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 *ProjectsLocationsNotebookRuntimesListCall) Header() http.Header { +func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesListCall) doRequest(alt string) (*http.Response, error) { +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()) - 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/{+parent}/notebookRuntimes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse.ServerRespon -// se.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse, error) { +// 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 { @@ -96764,7 +105172,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96776,52 +105184,25 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Lists NotebookRuntimes in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.notebookRuntimes.list", + // "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}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.operations.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "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`", - // "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. Typically obtained via ListNotebookRuntimesResponse.next_page_token of the previous NotebookService.ListNotebookRuntimes call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location from which to list the NotebookRuntimes. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "readMask": { - // "description": "Optional. Mask specifying which fields to read.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/notebookRuntimes", + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -96830,93 +105211,79 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt } -// 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 *ProjectsLocationsNotebookRuntimesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListNotebookRuntimesResponse) 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.notebookRuntimes.reportEvent": +// method id "aiplatform.projects.locations.operations.get": -type ProjectsLocationsNotebookRuntimesReportEventCall struct { - s *Service - name string - googlecloudaiplatformv1beta1reportruntimeeventrequest *GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ReportEvent: +// 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 NotebookRuntime resource. Format: -// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ -// runtime}`. -func (r *ProjectsLocationsNotebookRuntimesService) ReportEvent(name string, googlecloudaiplatformv1beta1reportruntimeeventrequest *GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest) *ProjectsLocationsNotebookRuntimesReportEventCall { - c := &ProjectsLocationsNotebookRuntimesReportEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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 - c.googlecloudaiplatformv1beta1reportruntimeeventrequest = googlecloudaiplatformv1beta1reportruntimeeventrequest 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 *ProjectsLocationsNotebookRuntimesReportEventCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesReportEventCall { +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 *ProjectsLocationsNotebookRuntimesReportEventCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesReportEventCall { +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 *ProjectsLocationsNotebookRuntimesReportEventCall) Header() http.Header { +func (c *ProjectsLocationsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesReportEventCall) doRequest(alt string) (*http.Response, error) { +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()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1reportruntimeeventrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:reportEvent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -96927,17 +105294,14 @@ func (c *ProjectsLocationsNotebookRuntimesReportEventCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.reportEvent" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse.ServerResponse -// .Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse, error) { +// 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 { @@ -96956,7 +105320,7 @@ func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -96968,28 +105332,25 @@ func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:reportEvent", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimes.reportEvent", + // "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}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}:reportEvent", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -96998,73 +105359,100 @@ func (c *ProjectsLocationsNotebookRuntimesReportEventCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.notebookRuntimes.start": +// method id "aiplatform.projects.locations.operations.list": -type ProjectsLocationsNotebookRuntimesStartCall struct { - s *Service - name string - googlecloudaiplatformv1beta1startnotebookruntimerequest *GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Start: Starts a NotebookRuntime. +// 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 NotebookRuntime resource to be started. -// 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. -func (r *ProjectsLocationsNotebookRuntimesService) Start(name string, googlecloudaiplatformv1beta1startnotebookruntimerequest *GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesStartCall { - c := &ProjectsLocationsNotebookRuntimesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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 - c.googlecloudaiplatformv1beta1startnotebookruntimerequest = googlecloudaiplatformv1beta1startnotebookruntimerequest + 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 *ProjectsLocationsNotebookRuntimesStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesStartCall { +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 *ProjectsLocationsNotebookRuntimesStartCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesStartCall { +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 *ProjectsLocationsNotebookRuntimesStartCall) Header() http.Header { +func (c *ProjectsLocationsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesStartCall) doRequest(alt string) (*http.Response, error) { +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()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1startnotebookruntimerequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:start") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -97075,14 +105463,15 @@ func (c *ProjectsLocationsNotebookRuntimesStartCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.start" 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 +// 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 *ProjectsLocationsNotebookRuntimesStartCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 { @@ -97101,7 +105490,7 @@ func (c *ProjectsLocationsNotebookRuntimesStartCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -97113,28 +105502,41 @@ func (c *ProjectsLocationsNotebookRuntimesStartCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Starts a NotebookRuntime.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:start", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.notebookRuntimes.start", + // "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}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.operations.list", // "parameterOrder": [ // "name" // ], // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Required. The name of the NotebookRuntime resource to be started. 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's parent resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", + // "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": "v1beta1/{+name}:start", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1StartNotebookRuntimeRequest" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -97143,34 +105545,68 @@ func (c *ProjectsLocationsNotebookRuntimesStartCall) Do(opts ...googleapi.CallOp } -// method id "aiplatform.projects.locations.notebookRuntimes.upgrade": +// 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) + } +} -type ProjectsLocationsNotebookRuntimesUpgradeCall struct { - s *Service - name string - googlecloudaiplatformv1beta1upgradenotebookruntimerequest *GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.operations.wait": + +type ProjectsLocationsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Upgrade: Upgrades a NotebookRuntime. +// 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 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. -func (r *ProjectsLocationsNotebookRuntimesService) Upgrade(name string, googlecloudaiplatformv1beta1upgradenotebookruntimerequest *GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest) *ProjectsLocationsNotebookRuntimesUpgradeCall { - c := &ProjectsLocationsNotebookRuntimesUpgradeCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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 - c.googlecloudaiplatformv1beta1upgradenotebookruntimerequest = googlecloudaiplatformv1beta1upgradenotebookruntimerequest + 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 *ProjectsLocationsNotebookRuntimesUpgradeCall) Fields(s ...googleapi.Field) *ProjectsLocationsNotebookRuntimesUpgradeCall { +func (c *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -97178,21 +105614,21 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Context(ctx context.Context) *ProjectsLocationsNotebookRuntimesUpgradeCall { +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 *ProjectsLocationsNotebookRuntimesUpgradeCall) Header() http.Header { +func (c *ProjectsLocationsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) doRequest(alt string) (*http.Response, error) { +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_ { @@ -97200,14 +105636,9 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1upgradenotebookruntimerequest) - 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}:upgrade") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -97220,14 +105651,14 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.notebookRuntimes.upgrade" call. +// 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 *ProjectsLocationsNotebookRuntimesUpgradeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +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 { @@ -97258,26 +105689,29 @@ func (c *ProjectsLocationsNotebookRuntimesUpgradeCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Upgrades a NotebookRuntime.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/notebookRuntimes/{notebookRuntimesId}:upgrade", + // "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}/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": "v1beta1/{+name}:upgrade", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -97288,38 +105722,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 + googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource + 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, googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource) *ProjectsLocationsPersistentResourcesCreateCall { + c := &ProjectsLocationsPersistentResourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1persistentresource = googlecloudaiplatformv1beta1persistentresource + 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 } @@ -97327,21 +105767,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_ { @@ -97349,9 +105789,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.googlecloudaiplatformv1beta1persistentresource) + 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/{+parent}/persistentResources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -97359,19 +105804,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 { @@ -97390,7 +105835,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, @@ -97402,25 +105847,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": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + // "description": "Creates a PersistentResource.", + // "flatPath": "v1beta1/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": "v1beta1/{+name}:cancel", + // "path": "v1beta1/{+parent}/persistentResources", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PersistentResource" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -97429,9 +105882,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 @@ -97439,14 +105892,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 } @@ -97454,7 +105906,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 } @@ -97462,21 +105914,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_ { @@ -97499,14 +105951,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 { @@ -97525,7 +105977,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, @@ -97537,25 +105989,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": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Deletes a PersistentResource.", + // "flatPath": "v1beta1/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": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -97564,9 +106016,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 @@ -97575,13 +106027,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 } @@ -97589,7 +106041,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 } @@ -97599,7 +106051,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 } @@ -97607,21 +106059,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_ { @@ -97647,14 +106099,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 *GoogleCloudAiplatformV1beta1PersistentResource or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1PersistentResource.ServerResponse.Header +// or (if a response was returned 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) (*GoogleCloudAiplatformV1beta1PersistentResource, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -97673,7 +106127,7 @@ func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (* if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1PersistentResource{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -97685,25 +106139,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": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "description": "Gets a PersistentResource.", + // "flatPath": "v1beta1/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": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1PersistentResource" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -97712,45 +106166,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 } @@ -97758,7 +106207,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 } @@ -97768,7 +106217,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 } @@ -97776,21 +106225,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_ { @@ -97803,7 +106252,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, "v1beta1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/persistentResources") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -97811,20 +106260,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 -// 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) { +// Do executes the "aiplatform.projects.locations.persistentResources.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse.ServerRes +// ponse.Header or (if a response was returned 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) (*GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -97843,7 +106294,7 @@ func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) ( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -97855,41 +106306,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": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations", + // "description": "Lists PersistentResources in a Location.", + // "flatPath": "v1beta1/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": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/persistentResources", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -97901,7 +106347,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(*GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -97919,47 +106365,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 + googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource + 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, googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource) *ProjectsLocationsPersistentResourcesPatchCall { + c := &ProjectsLocationsPersistentResourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1persistentresource = googlecloudaiplatformv1beta1persistentresource 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 } @@ -97967,21 +106405,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_ { @@ -97989,11 +106427,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.googlecloudaiplatformv1beta1persistentresource) + 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 } @@ -98004,14 +106447,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 { @@ -98042,29 +106485,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": "v1beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.operations.wait", + // "description": "Updates a PersistentResource.", + // "flatPath": "v1beta1/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": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PersistentResource" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -98075,44 +106521,38 @@ func (c *ProjectsLocationsOperationsWaitCall) Do(opts ...googleapi.CallOption) ( } -// method id "aiplatform.projects.locations.persistentResources.create": +// method id "aiplatform.projects.locations.persistentResources.operations.cancel": -type ProjectsLocationsPersistentResourcesCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPersistentResourcesOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a PersistentResource. +// Cancel: Starts asynchronous cancellation on a long-running operation. +// The server makes a best effort to cancel the operation, but success +// is not guaranteed. If the server doesn't support this method, it +// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use +// Operations.GetOperation or other methods to check whether the +// cancellation succeeded or whether the operation completed despite +// cancellation. On successful cancellation, the operation is not +// deleted; instead, it becomes an operation with an Operation.error +// value with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`. // -// - parent: The resource name of the Location to create the -// PersistentResource in. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsPersistentResourcesService) Create(parent string, googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource) *ProjectsLocationsPersistentResourcesCreateCall { - c := &ProjectsLocationsPersistentResourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1persistentresource = googlecloudaiplatformv1beta1persistentresource - 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) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsPersistentResourcesOperationsService) Cancel(name string) *ProjectsLocationsPersistentResourcesOperationsCancelCall { + c := &ProjectsLocationsPersistentResourcesOperationsCancelCall{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 *ProjectsLocationsPersistentResourcesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesCreateCall { +func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -98120,21 +106560,21 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPersistentResourcesCreateCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesCreateCall { +func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsCancelCall { 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 *ProjectsLocationsPersistentResourcesCreateCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) 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_ { @@ -98142,14 +106582,9 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) doRequest(alt string) ( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1persistentresource) - 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/{+parent}/persistentResources") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -98157,19 +106592,19 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) doRequest(alt string) ( } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// 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 +// Do executes the "aiplatform.projects.locations.persistentResources.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 *ProjectsLocationsPersistentResourcesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -98188,7 +106623,7 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -98200,33 +106635,25 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Creates a PersistentResource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/persistentResources", + // "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}/persistentResources/{persistentResourcesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.persistentResources.create", + // "id": "aiplatform.projects.locations.persistentResources.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the PersistentResource in. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", // "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": "v1beta1/{+parent}/persistentResources", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PersistentResource" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -98235,9 +106662,9 @@ func (c *ProjectsLocationsPersistentResourcesCreateCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.persistentResources.delete": +// method id "aiplatform.projects.locations.persistentResources.operations.delete": -type ProjectsLocationsPersistentResourcesDeleteCall struct { +type ProjectsLocationsPersistentResourcesOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -98245,13 +106672,14 @@ type ProjectsLocationsPersistentResourcesDeleteCall struct { header_ http.Header } -// Delete: Deletes a PersistentResource. +// 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 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)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsPersistentResourcesOperationsService) Delete(name string) *ProjectsLocationsPersistentResourcesOperationsDeleteCall { + c := &ProjectsLocationsPersistentResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -98259,7 +106687,7 @@ func (r *ProjectsLocationsPersistentResourcesService) Delete(name string) *Proje // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPersistentResourcesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesDeleteCall { +func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -98267,21 +106695,21 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) Fields(s ...googleapi.F // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPersistentResourcesDeleteCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesDeleteCall { +func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsDeleteCall { 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 *ProjectsLocationsPersistentResourcesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) 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_ { @@ -98304,14 +106732,14 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) doRequest(alt string) ( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// 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 +// Do executes the "aiplatform.projects.locations.persistentResources.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 *ProjectsLocationsPersistentResourcesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -98330,7 +106758,7 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -98342,25 +106770,25 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) Do(opts ...googleapi.Ca } return ret, nil // { - // "description": "Deletes a PersistentResource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", + // "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}/persistentResources/{persistentResourcesId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.persistentResources.delete", + // "id": "aiplatform.projects.locations.persistentResources.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the PersistentResource to be deleted. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -98369,9 +106797,9 @@ func (c *ProjectsLocationsPersistentResourcesDeleteCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.persistentResources.get": +// method id "aiplatform.projects.locations.persistentResources.operations.get": -type ProjectsLocationsPersistentResourcesGetCall struct { +type ProjectsLocationsPersistentResourcesOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -98380,13 +106808,13 @@ type ProjectsLocationsPersistentResourcesGetCall struct { header_ http.Header } -// Get: Gets a PersistentResource. +// 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 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)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsPersistentResourcesOperationsService) Get(name string) *ProjectsLocationsPersistentResourcesOperationsGetCall { + c := &ProjectsLocationsPersistentResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -98394,7 +106822,7 @@ func (r *ProjectsLocationsPersistentResourcesService) Get(name string) *Projects // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPersistentResourcesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesGetCall { +func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -98404,7 +106832,7 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsPersistentResourcesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesGetCall { +func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -98412,21 +106840,21 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPersistentResourcesGetCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesGetCall { +func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsGetCall { 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 *ProjectsLocationsPersistentResourcesGetCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) 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_ { @@ -98452,16 +106880,14 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.persistentResources.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1PersistentResource or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1PersistentResource.ServerResponse.Header -// or (if a response was returned 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) (*GoogleCloudAiplatformV1beta1PersistentResource, error) { +// Do executes the "aiplatform.projects.locations.persistentResources.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 *ProjectsLocationsPersistentResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -98480,7 +106906,7 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1PersistentResource{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -98492,25 +106918,25 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets a PersistentResource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", + // "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}/persistentResources/{persistentResourcesId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.persistentResources.get", + // "id": "aiplatform.projects.locations.persistentResources.operations.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}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1PersistentResource" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -98519,40 +106945,45 @@ func (c *ProjectsLocationsPersistentResourcesGetCall) Do(opts ...googleapi.CallO } -// method id "aiplatform.projects.locations.persistentResources.list": +// method id "aiplatform.projects.locations.persistentResources.operations.list": -type ProjectsLocationsPersistentResourcesListCall struct { +type ProjectsLocationsPersistentResourcesOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists PersistentResources in a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location 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 +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsPersistentResourcesOperationsService) List(name string) *ProjectsLocationsPersistentResourcesOperationsListCall { + c := &ProjectsLocationsPersistentResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Filter(filter string) *ProjectsLocationsPersistentResourcesOperationsListCall { + c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsPersistentResourcesListCall) PageSize(pageSize int64) *ProjectsLocationsPersistentResourcesListCall { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsPersistentResourcesOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListPersistentResourceResponse.next_page_token of the previous -// PersistentResourceService.ListPersistentResource call. -func (c *ProjectsLocationsPersistentResourcesListCall) PageToken(pageToken string) *ProjectsLocationsPersistentResourcesListCall { +// page token. +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsPersistentResourcesOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -98560,7 +106991,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) PageToken(pageToken strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPersistentResourcesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesListCall { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -98570,7 +107001,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) Fields(s ...googleapi.Fie // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsPersistentResourcesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesListCall { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -98578,21 +107009,21 @@ func (c *ProjectsLocationsPersistentResourcesListCall) IfNoneMatch(entityTag str // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPersistentResourcesListCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesListCall { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsListCall { 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 *ProjectsLocationsPersistentResourcesListCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) 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_ { @@ -98605,7 +107036,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) doRequest(alt string) (*h var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/persistentResources") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -98613,22 +107044,20 @@ func (c *ProjectsLocationsPersistentResourcesListCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.persistentResources.list" call. -// Exactly one of -// *GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse.ServerRes -// ponse.Header or (if a response was returned 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) (*GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse, error) { +// Do executes the "aiplatform.projects.locations.persistentResources.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 *ProjectsLocationsPersistentResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -98647,7 +107076,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -98659,36 +107088,41 @@ func (c *ProjectsLocationsPersistentResourcesListCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Lists PersistentResources in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/persistentResources", + // "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}/persistentResources/{persistentResourcesId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.persistentResources.list", + // "id": "aiplatform.projects.locations.persistentResources.operations.list", // "parameterOrder": [ - // "parent" + // "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/[^/]+/persistentResources/[^/]+$", + // "required": true, + // "type": "string" + // }, // "pageSize": { - // "description": "Optional. The standard list page size.", + // "description": "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.", + // "description": "The standard list page token.", // "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": "v1beta1/{+parent}/persistentResources", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -98700,7 +107134,7 @@ func (c *ProjectsLocationsPersistentResourcesListCall) Do(opts ...googleapi.Call // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsPersistentResourcesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListPersistentResourcesResponse) error) error { +func (c *ProjectsLocationsPersistentResourcesOperationsListCall) 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 { @@ -98718,39 +107152,47 @@ func (c *ProjectsLocationsPersistentResourcesListCall) Pages(ctx context.Context } } -// method id "aiplatform.projects.locations.persistentResources.patch": +// method id "aiplatform.projects.locations.persistentResources.operations.wait": -type ProjectsLocationsPersistentResourcesPatchCall struct { - s *Service - name string - googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPersistentResourcesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates a PersistentResource. +// 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: Immutable. Resource name of a PersistentResource. -func (r *ProjectsLocationsPersistentResourcesService) Patch(name string, googlecloudaiplatformv1beta1persistentresource *GoogleCloudAiplatformV1beta1PersistentResource) *ProjectsLocationsPersistentResourcesPatchCall { - c := &ProjectsLocationsPersistentResourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsPersistentResourcesOperationsService) Wait(name string) *ProjectsLocationsPersistentResourcesOperationsWaitCall { + c := &ProjectsLocationsPersistentResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1persistentresource = googlecloudaiplatformv1beta1persistentresource return c } -// 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) +// 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 *ProjectsLocationsPersistentResourcesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsPersistentResourcesOperationsWaitCall { + 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 *ProjectsLocationsPersistentResourcesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesPatchCall { +func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -98758,21 +107200,21 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) Fields(s ...googleapi.Fi // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPersistentResourcesPatchCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesPatchCall { +func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsWaitCall { 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 *ProjectsLocationsPersistentResourcesPatchCall) Header() http.Header { +func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) 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_ { @@ -98780,16 +107222,11 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) doRequest(alt string) (* } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1persistentresource) - 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/{+name}:wait") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -98800,14 +107237,14 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) doRequest(alt string) (* return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.persistentResources.patch" call. +// Do executes the "aiplatform.projects.locations.persistentResources.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 *ProjectsLocationsPersistentResourcesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -98838,32 +107275,29 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) Do(opts ...googleapi.Cal } return ret, nil // { - // "description": "Updates a PersistentResource.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/persistentResources/{persistentResourcesId}", - // "httpMethod": "PATCH", - // "id": "aiplatform.projects.locations.persistentResources.patch", + // "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}/persistentResources/{persistentResourcesId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.persistentResources.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Immutable. Resource name of a PersistentResource.", + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // }, - // "updateMask": { - // "description": "Required. Specify the fields to be overwritten in the PersistentResource by the update method.", - // "format": "google-fieldmask", + // "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}", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PersistentResource" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -98874,173 +107308,37 @@ func (c *ProjectsLocationsPersistentResourcesPatchCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.persistentResources.operations.cancel": - -type ProjectsLocationsPersistentResourcesOperationsCancelCall 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 *ProjectsLocationsPersistentResourcesOperationsService) Cancel(name string) *ProjectsLocationsPersistentResourcesOperationsCancelCall { - c := &ProjectsLocationsPersistentResourcesOperationsCancelCall{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 *ProjectsLocationsPersistentResourcesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsCancelCall { - 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 *ProjectsLocationsPersistentResourcesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsCancelCall { - 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 *ProjectsLocationsPersistentResourcesOperationsCancelCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsPersistentResourcesOperationsCancelCall) 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.persistentResources.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 *ProjectsLocationsPersistentResourcesOperationsCancelCall) 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}/persistentResources/{persistentResourcesId}/operations/{operationsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.persistentResources.operations.cancel", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to be cancelled.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/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.persistentResources.operations.delete": +// method id "aiplatform.projects.locations.pipelineJobs.batchCancel": -type ProjectsLocationsPersistentResourcesOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsBatchCancelCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest + 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`. +// BatchCancel: Batch cancel PipelineJobs. Firstly the server will check +// if all the jobs are in non-terminal states, and skip the jobs that +// are already terminated. If the operation failed, none of the pipeline +// jobs are cancelled. The server will poll the states of all the +// pipeline jobs periodically to check the cancellation status. This +// operation will return an LRO. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsPersistentResourcesOperationsService) Delete(name string) *ProjectsLocationsPersistentResourcesOperationsDeleteCall { - c := &ProjectsLocationsPersistentResourcesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The name of the PipelineJobs' parent resource. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsPipelineJobsService) BatchCancel(parent string, googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest) *ProjectsLocationsPipelineJobsBatchCancelCall { + c := &ProjectsLocationsPipelineJobsBatchCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest = googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest 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 *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsDeleteCall { +func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsBatchCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99048,21 +107346,21 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsDeleteCall { +func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsBatchCancelCall { 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 *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsBatchCancelCall) 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_ { @@ -99070,29 +107368,34 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest) + 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}/pipelineJobs:batchCancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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.persistentResources.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.pipelineJobs.batchCancel" 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 *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99111,7 +107414,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Do(opts ...go 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, @@ -99123,25 +107426,28 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Do(opts ...go } 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}/persistentResources/{persistentResourcesId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.persistentResources.operations.delete", + // "description": "Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs:batchCancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.pipelineJobs.batchCancel", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "parent": { + // "description": "Required. The name of the PipelineJobs' parent resource. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/pipelineJobs:batchCancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99150,97 +107456,91 @@ func (c *ProjectsLocationsPersistentResourcesOperationsDeleteCall) Do(opts ...go } -// method id "aiplatform.projects.locations.persistentResources.operations.get": +// method id "aiplatform.projects.locations.pipelineJobs.batchDelete": -type ProjectsLocationsPersistentResourcesOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsBatchDeleteCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest + 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. +// BatchDelete: Batch deletes PipelineJobs The Operation is atomic. If +// it fails, none of the PipelineJobs are deleted. If it succeeds, all +// of the PipelineJobs are deleted. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsPersistentResourcesOperationsService) Get(name string) *ProjectsLocationsPersistentResourcesOperationsGetCall { - c := &ProjectsLocationsPersistentResourcesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The name of the PipelineJobs' parent resource. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsPipelineJobsService) BatchDelete(parent string, googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest) *ProjectsLocationsPipelineJobsBatchDeleteCall { + c := &ProjectsLocationsPipelineJobsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest = googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest 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 *ProjectsLocationsPersistentResourcesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsGetCall { +func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsBatchDeleteCall { 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 *ProjectsLocationsPersistentResourcesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesOperationsGetCall { - 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 *ProjectsLocationsPersistentResourcesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsGetCall { +func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsBatchDeleteCall { 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 *ProjectsLocationsPersistentResourcesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) 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.googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest) + 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}/pipelineJobs:batchDelete") 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.persistentResources.operations.get" call. +// Do executes the "aiplatform.projects.locations.pipelineJobs.batchDelete" 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 *ProjectsLocationsPersistentResourcesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99271,23 +107571,26 @@ func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) Do(opts ...googl } 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}/persistentResources/{persistentResourcesId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.persistentResources.operations.get", + // "description": "Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs:batchDelete", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.pipelineJobs.batchDelete", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "parent": { + // "description": "Required. The name of the PipelineJobs' parent resource. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/pipelineJobs:batchDelete", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -99298,100 +107601,80 @@ func (c *ProjectsLocationsPersistentResourcesOperationsGetCall) Do(opts ...googl } -// method id "aiplatform.projects.locations.persistentResources.operations.list": +// method id "aiplatform.projects.locations.pipelineJobs.cancel": -type ProjectsLocationsPersistentResourcesOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsCancelCall struct { + s *Service + name string + googlecloudaiplatformv1beta1cancelpipelinejobrequest *GoogleCloudAiplatformV1beta1CancelPipelineJobRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// Cancel: Cancels a PipelineJob. Starts asynchronous cancellation on +// the PipelineJob. The server makes a best effort to cancel the +// pipeline, but success is not guaranteed. Clients can use +// PipelineService.GetPipelineJob or other methods to check whether the +// cancellation succeeded or whether the pipeline completed despite +// cancellation. On successful cancellation, the PipelineJob is not +// deleted; instead it becomes a pipeline with a PipelineJob.error value +// with a google.rpc.Status.code of 1, corresponding to +// `Code.CANCELLED`, and PipelineJob.state is set to `CANCELLED`. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsPersistentResourcesOperationsService) List(name string) *ProjectsLocationsPersistentResourcesOperationsListCall { - c := &ProjectsLocationsPersistentResourcesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the PipelineJob to cancel. Format: +// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} +// `. +func (r *ProjectsLocationsPipelineJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelpipelinejobrequest *GoogleCloudAiplatformV1beta1CancelPipelineJobRequest) *ProjectsLocationsPipelineJobsCancelCall { + c := &ProjectsLocationsPipelineJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Filter(filter string) *ProjectsLocationsPersistentResourcesOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsPersistentResourcesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsPersistentResourcesOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsPersistentResourcesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsPersistentResourcesOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) + c.googlecloudaiplatformv1beta1cancelpipelinejobrequest = googlecloudaiplatformv1beta1cancelpipelinejobrequest 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 *ProjectsLocationsPersistentResourcesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsListCall { +func (c *ProjectsLocationsPipelineJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsCancelCall { 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 *ProjectsLocationsPersistentResourcesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPersistentResourcesOperationsListCall { - 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 *ProjectsLocationsPersistentResourcesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsListCall { +func (c *ProjectsLocationsPipelineJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsCancelCall { 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 *ProjectsLocationsPersistentResourcesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsCancelCall) 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.googlecloudaiplatformv1beta1cancelpipelinejobrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -99402,15 +107685,14 @@ func (c *ProjectsLocationsPersistentResourcesOperationsListCall) doRequest(alt s return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.persistentResources.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 +// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPersistentResourcesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +func (c *ProjectsLocationsPipelineJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99429,7 +107711,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99441,41 +107723,28 @@ func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Do(opts ...goog } 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}/persistentResources/{persistentResourcesId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.persistentResources.operations.list", + // "description": "Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use PipelineService.GetPipelineJob or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it becomes a pipeline with a PipelineJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and PipelineJob.state is set to `CANCELLED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs/{pipelineJobsId}:cancel", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.pipelineJobs.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The name of the operation's parent resource.", + // "description": "Required. The name of the PipelineJob to cancel. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", // "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", + // "path": "v1beta1/{+name}:cancel", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CancelPipelineJobRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99484,68 +107753,43 @@ func (c *ProjectsLocationsPersistentResourcesOperationsListCall) Do(opts ...goog } -// 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 *ProjectsLocationsPersistentResourcesOperationsListCall) 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.persistentResources.operations.wait": +// method id "aiplatform.projects.locations.pipelineJobs.create": -type ProjectsLocationsPersistentResourcesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1pipelinejob *GoogleCloudAiplatformV1beta1PipelineJob + 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. +// Create: Creates a PipelineJob. A PipelineJob will run immediately +// when created. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsPersistentResourcesOperationsService) Wait(name string) *ProjectsLocationsPersistentResourcesOperationsWaitCall { - c := &ProjectsLocationsPersistentResourcesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to create the PipelineJob +// in. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsPipelineJobsService) Create(parent string, googlecloudaiplatformv1beta1pipelinejob *GoogleCloudAiplatformV1beta1PipelineJob) *ProjectsLocationsPipelineJobsCreateCall { + c := &ProjectsLocationsPipelineJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1pipelinejob = googlecloudaiplatformv1beta1pipelinejob 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 *ProjectsLocationsPersistentResourcesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsPersistentResourcesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// PipelineJobId sets the optional parameter "pipelineJobId": The ID to +// use for the PipelineJob, which will become the final component of the +// PipelineJob name. If not provided, an ID will be automatically +// generated. This value should be less than 128 characters, and valid +// characters are `/a-z-/`. +func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId string) *ProjectsLocationsPipelineJobsCreateCall { + c.urlParams_.Set("pipelineJobId", pipelineJobId) 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 *ProjectsLocationsPersistentResourcesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsPersistentResourcesOperationsWaitCall { +func (c *ProjectsLocationsPipelineJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99553,21 +107797,21 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Fields(s ...goo // 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 *ProjectsLocationsPersistentResourcesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsPersistentResourcesOperationsWaitCall { +func (c *ProjectsLocationsPipelineJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsCreateCall { 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 *ProjectsLocationsPersistentResourcesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsCreateCall) 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_ { @@ -99575,9 +107819,14 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) doRequest(alt s } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1pipelinejob) + 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/{+parent}/pipelineJobs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -99585,19 +107834,20 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) doRequest(alt s } 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.persistentResources.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 +// Do executes the "aiplatform.projects.locations.pipelineJobs.create" call. +// Exactly one of *GoogleCloudAiplatformV1beta1PipelineJob or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1PipelineJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PipelineJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99616,7 +107866,7 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Do(opts ...goog if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1PipelineJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99628,31 +107878,33 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Do(opts ...goog } 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}/persistentResources/{persistentResourcesId}/operations/{operationsId}:wait", + // "description": "Creates a PipelineJob. A PipelineJob will run immediately when created.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.persistentResources.operations.wait", + // "id": "aiplatform.projects.locations.pipelineJobs.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "parent": { + // "description": "Required. The resource name of the Location to create the PipelineJob in. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/persistentResources/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "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", + // "pipelineJobId": { + // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+parent}/pipelineJobs", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99661,37 +107913,31 @@ func (c *ProjectsLocationsPersistentResourcesOperationsWaitCall) Do(opts ...goog } -// method id "aiplatform.projects.locations.pipelineJobs.batchCancel": +// method id "aiplatform.projects.locations.pipelineJobs.delete": -type ProjectsLocationsPipelineJobsBatchCancelCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// BatchCancel: Batch cancel PipelineJobs. Firstly the server will check -// if all the jobs are in non-terminal states, and skip the jobs that -// are already terminated. If the operation failed, none of the pipeline -// jobs are cancelled. The server will poll the states of all the -// pipeline jobs periodically to check the cancellation status. This -// operation will return an LRO. +// Delete: Deletes a PipelineJob. // -// - parent: The name of the PipelineJobs' parent resource. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsPipelineJobsService) BatchCancel(parent string, googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest) *ProjectsLocationsPipelineJobsBatchCancelCall { - c := &ProjectsLocationsPipelineJobsBatchCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest = googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest +// - name: The name of the PipelineJob resource to be deleted. Format: +// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} +// `. +func (r *ProjectsLocationsPipelineJobsService) Delete(name string) *ProjectsLocationsPipelineJobsDeleteCall { + c := &ProjectsLocationsPipelineJobsDeleteCall{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 *ProjectsLocationsPipelineJobsBatchCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsBatchCancelCall { +func (c *ProjectsLocationsPipelineJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -99699,21 +107945,21 @@ func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsBatchCancelCall { +func (c *ProjectsLocationsPipelineJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsDeleteCall { 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 *ProjectsLocationsPipelineJobsBatchCancelCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsBatchCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsDeleteCall) 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_ { @@ -99721,34 +107967,29 @@ func (c *ProjectsLocationsPipelineJobsBatchCancelCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchcancelpipelinejobsrequest) - 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/{+parent}/pipelineJobs:batchCancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.batchCancel" call. +// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsBatchCancelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPipelineJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99779,26 +108020,23 @@ func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs:batchCancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.pipelineJobs.batchCancel", + // "description": "Deletes a PipelineJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs/{pipelineJobsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.pipelineJobs.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The name of the PipelineJobs' parent resource. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the PipelineJob resource to be deleted. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/pipelineJobs:batchCancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchCancelPipelineJobsRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -99809,91 +108047,98 @@ func (c *ProjectsLocationsPipelineJobsBatchCancelCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.pipelineJobs.batchDelete": +// method id "aiplatform.projects.locations.pipelineJobs.get": -type ProjectsLocationsPipelineJobsBatchDeleteCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// BatchDelete: Batch deletes PipelineJobs The Operation is atomic. If -// it fails, none of the PipelineJobs are deleted. If it succeeds, all -// of the PipelineJobs are deleted. +// Get: Gets a PipelineJob. // -// - parent: The name of the PipelineJobs' parent resource. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsPipelineJobsService) BatchDelete(parent string, googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest *GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest) *ProjectsLocationsPipelineJobsBatchDeleteCall { - c := &ProjectsLocationsPipelineJobsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest = googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest +// - name: The name of the PipelineJob resource. Format: +// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} +// `. +func (r *ProjectsLocationsPipelineJobsService) Get(name string) *ProjectsLocationsPipelineJobsGetCall { + c := &ProjectsLocationsPipelineJobsGetCall{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 *ProjectsLocationsPipelineJobsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsBatchDeleteCall { +func (c *ProjectsLocationsPipelineJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsGetCall { 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 *ProjectsLocationsPipelineJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsGetCall { + 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 *ProjectsLocationsPipelineJobsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsBatchDeleteCall { +func (c *ProjectsLocationsPipelineJobsGetCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsGetCall { 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 *ProjectsLocationsPipelineJobsBatchDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1batchdeletepipelinejobsrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/pipelineJobs:batchDelete") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.batchDelete" 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 +// Do executes the "aiplatform.projects.locations.pipelineJobs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1PipelineJob or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1PipelineJob.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPipelineJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PipelineJob, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -99912,7 +108157,7 @@ func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1PipelineJob{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -99924,28 +108169,25 @@ func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs:batchDelete", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.pipelineJobs.batchDelete", + // "description": "Gets a PipelineJob.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs/{pipelineJobsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.pipelineJobs.get", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The name of the PipelineJobs' parent resource. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "Required. The name of the PipelineJob resource. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/pipelineJobs:batchDelete", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1BatchDeletePipelineJobsRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -99954,98 +108196,166 @@ func (c *ProjectsLocationsPipelineJobsBatchDeleteCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.pipelineJobs.cancel": +// method id "aiplatform.projects.locations.pipelineJobs.list": -type ProjectsLocationsPipelineJobsCancelCall struct { - s *Service - name string - googlecloudaiplatformv1beta1cancelpipelinejobrequest *GoogleCloudAiplatformV1beta1CancelPipelineJobRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPipelineJobsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Cancels a PipelineJob. Starts asynchronous cancellation on -// the PipelineJob. The server makes a best effort to cancel the -// pipeline, but success is not guaranteed. Clients can use -// PipelineService.GetPipelineJob or other methods to check whether the -// cancellation succeeded or whether the pipeline completed despite -// cancellation. On successful cancellation, the PipelineJob is not -// deleted; instead it becomes a pipeline with a PipelineJob.error value -// with a google.rpc.Status.code of 1, corresponding to -// `Code.CANCELLED`, and PipelineJob.state is set to `CANCELLED`. +// List: Lists PipelineJobs in a Location. // -// - name: The name of the PipelineJob to cancel. Format: -// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} -// `. -func (r *ProjectsLocationsPipelineJobsService) Cancel(name string, googlecloudaiplatformv1beta1cancelpipelinejobrequest *GoogleCloudAiplatformV1beta1CancelPipelineJobRequest) *ProjectsLocationsPipelineJobsCancelCall { - c := &ProjectsLocationsPipelineJobsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.googlecloudaiplatformv1beta1cancelpipelinejobrequest = googlecloudaiplatformv1beta1cancelpipelinejobrequest +// - parent: The resource name of the Location to list the PipelineJobs +// from. Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsPipelineJobsService) List(parent string) *ProjectsLocationsPipelineJobsListCall { + c := &ProjectsLocationsPipelineJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the PipelineJobs +// that match the filter expression. The following fields are supported: +// * `pipeline_name`: Supports `=` and `!=` comparisons. * +// `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * +// `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` +// wildcard. for example, can check if pipeline's display_name contains +// *step* by doing display_name:\"*step*\" * `state`: Supports `=` and +// `!=` comparisons. * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * +// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `end_time`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality and +// key presence. * `template_uri`: Supports `=`, `!=` comparisons, and +// `:` wildcard. * `template_metadata.version`: Supports `=`, `!=` +// comparisons, and `:` wildcard. Filter expressions can be combined +// together using logical operators (`AND` & `OR`). For example: +// `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z". The +// syntax to define filter expression is based on +// https://google.aip.dev/160. Examples: * +// `create_time>"2021-05-18T00:00:00Z" OR +// update_time>"2020-05-18T00:00:00Z" PipelineJobs created or updated +// after 2020-05-18 00:00:00 UTC. * `labels.env = "prod" PipelineJobs +// with label "env" set to "prod". +func (c *ProjectsLocationsPipelineJobsListCall) Filter(filter string) *ProjectsLocationsPipelineJobsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by. The default sort order is in ascending order. +// Use "desc" after a field name for descending. You can have multiple +// order_by fields provided e.g. "create_time desc, end_time", +// "end_time, start_time, update_time" For example, using "create_time +// desc, end_time" will order results by create time in descending +// order, and if there are multiple jobs having the same create time, +// order them by the end time in ascending order. if order_by is not +// specified, it will order by default order is create time in +// descending order. Supported fields: * `create_time` * `update_time` * +// `end_time` * `start_time` +func (c *ProjectsLocationsPipelineJobsListCall) OrderBy(orderBy string) *ProjectsLocationsPipelineJobsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsPipelineJobsListCall) PageSize(pageSize int64) *ProjectsLocationsPipelineJobsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListPipelineJobsResponse.next_page_token of the previous +// PipelineService.ListPipelineJobs call. +func (c *ProjectsLocationsPipelineJobsListCall) PageToken(pageToken string) *ProjectsLocationsPipelineJobsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsPipelineJobsListCall) ReadMask(readMask string) *ProjectsLocationsPipelineJobsListCall { + c.urlParams_.Set("readMask", readMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPipelineJobsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsCancelCall { +func (c *ProjectsLocationsPipelineJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsListCall { 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 *ProjectsLocationsPipelineJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsListCall { + 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 *ProjectsLocationsPipelineJobsCancelCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsCancelCall { +func (c *ProjectsLocationsPipelineJobsListCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsListCall { 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 *ProjectsLocationsPipelineJobsCancelCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1cancelpipelinejobrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/pipelineJobs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + 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, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.pipelineJobs.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListPipelineJobsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListPipelineJobsResponse.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 *ProjectsLocationsPipelineJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListPipelineJobsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -100064,7 +108374,7 @@ func (c *ProjectsLocationsPipelineJobsCancelCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ListPipelineJobsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -100076,28 +108386,52 @@ func (c *ProjectsLocationsPipelineJobsCancelCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use PipelineService.GetPipelineJob or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it becomes a pipeline with a PipelineJob.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`, and PipelineJob.state is set to `CANCELLED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs/{pipelineJobsId}:cancel", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.pipelineJobs.cancel", + // "description": "Lists PipelineJobs in a Location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.pipelineJobs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "Required. The name of the PipelineJob to cancel. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`", + // "filter": { + // "description": "Lists the PipelineJobs that match the filter expression. The following fields are supported: * `pipeline_name`: Supports `=` and `!=` comparisons. * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. for example, can check if pipeline's display_name contains *step* by doing display_name:\\\"*step*\\\" * `state`: Supports `=` and `!=` comparisons. * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `end_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` wildcard. Filter expressions can be combined together using logical operators (`AND` \u0026 `OR`). For example: `pipeline_name=\"test\" AND create_time\u003e\"2020-05-18T13:30:00Z\"`. The syntax to define filter expression is based on https://google.aip.dev/160. Examples: * `create_time\u003e\"2021-05-18T00:00:00Z\" OR update_time\u003e\"2020-05-18T00:00:00Z\"` PipelineJobs created or updated after 2020-05-18 00:00:00 UTC. * `labels.env = \"prod\"` PipelineJobs with label \"env\" set to \"prod\".", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by. The default sort order is in ascending order. Use \"desc\" after a field name for descending. You can have multiple order_by fields provided e.g. \"create_time desc, end_time\", \"end_time, start_time, update_time\" For example, using \"create_time desc, end_time\" will order results by create time in descending order, and if there are multiple jobs having the same create time, order them by the end time in ascending order. if order_by is not specified, it will order by default order is create time in descending order. Supported fields: * `create_time` * `update_time` * `end_time` * `start_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token. Typically obtained via ListPipelineJobsResponse.next_page_token of the previous PipelineService.ListPipelineJobs call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list the PipelineJobs from. Format: `projects/{project}/locations/{location}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1beta1/{+name}:cancel", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CancelPipelineJobRequest" - // }, + // "path": "v1beta1/{+parent}/pipelineJobs", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ListPipelineJobsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -100106,43 +108440,59 @@ func (c *ProjectsLocationsPipelineJobsCancelCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.pipelineJobs.create": - -type ProjectsLocationsPipelineJobsCreateCall struct { - s *Service - parent string - googlecloudaiplatformv1beta1pipelinejob *GoogleCloudAiplatformV1beta1PipelineJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsPipelineJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListPipelineJobsResponse) 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) + } } -// Create: Creates a PipelineJob. A PipelineJob will run immediately -// when created. -// -// - parent: The resource name of the Location to create the PipelineJob -// in. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsPipelineJobsService) Create(parent string, googlecloudaiplatformv1beta1pipelinejob *GoogleCloudAiplatformV1beta1PipelineJob) *ProjectsLocationsPipelineJobsCreateCall { - c := &ProjectsLocationsPipelineJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.googlecloudaiplatformv1beta1pipelinejob = googlecloudaiplatformv1beta1pipelinejob - return c +// method id "aiplatform.projects.locations.pipelineJobs.operations.cancel": + +type ProjectsLocationsPipelineJobsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// PipelineJobId sets the optional parameter "pipelineJobId": The ID to -// use for the PipelineJob, which will become the final component of the -// PipelineJob name. If not provided, an ID will be automatically -// generated. This value should be less than 128 characters, and valid -// characters are `/a-z-/`. -func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId string) *ProjectsLocationsPipelineJobsCreateCall { - c.urlParams_.Set("pipelineJobId", pipelineJobId) +// 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 *ProjectsLocationsPipelineJobsOperationsService) Cancel(name string) *ProjectsLocationsPipelineJobsOperationsCancelCall { + c := &ProjectsLocationsPipelineJobsOperationsCancelCall{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 *ProjectsLocationsPipelineJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsCreateCall { +func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -100150,21 +108500,21 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsPipelineJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsCreateCall { +func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsCancelCall { 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 *ProjectsLocationsPipelineJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) 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_ { @@ -100172,14 +108522,9 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) doRequest(alt string) (*http.R } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1pipelinejob) - 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/{+parent}/pipelineJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -100187,20 +108532,19 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) doRequest(alt string) (*http.R } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.create" call. -// Exactly one of *GoogleCloudAiplatformV1beta1PipelineJob or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1PipelineJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PipelineJob, error) { +func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -100219,7 +108563,7 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1PipelineJob{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -100231,33 +108575,25 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Creates a PipelineJob. A PipelineJob will run immediately when created.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs", + // "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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.pipelineJobs.create", + // "id": "aiplatform.projects.locations.pipelineJobs.operations.cancel", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "parent": { - // "description": "Required. The resource name of the Location to create the PipelineJob in. Format: `projects/{project}/locations/{location}`", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" - // }, - // "pipelineJobId": { - // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/pipelineJobs", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" - // }, + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -100266,9 +108602,9 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.pipelineJobs.delete": +// method id "aiplatform.projects.locations.pipelineJobs.operations.delete": -type ProjectsLocationsPipelineJobsDeleteCall struct { +type ProjectsLocationsPipelineJobsOperationsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -100276,13 +108612,14 @@ type ProjectsLocationsPipelineJobsDeleteCall struct { header_ http.Header } -// Delete: Deletes a PipelineJob. +// 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 PipelineJob resource to be deleted. Format: -// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} -// `. -func (r *ProjectsLocationsPipelineJobsService) Delete(name string) *ProjectsLocationsPipelineJobsDeleteCall { - c := &ProjectsLocationsPipelineJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsPipelineJobsOperationsService) Delete(name string) *ProjectsLocationsPipelineJobsOperationsDeleteCall { + c := &ProjectsLocationsPipelineJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -100290,7 +108627,7 @@ func (r *ProjectsLocationsPipelineJobsService) Delete(name string) *ProjectsLoca // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPipelineJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsDeleteCall { +func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -100298,21 +108635,21 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) Fields(s ...googleapi.Field) * // 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 *ProjectsLocationsPipelineJobsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsDeleteCall { +func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsDeleteCall { 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 *ProjectsLocationsPipelineJobsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) 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_ { @@ -100335,14 +108672,14 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) doRequest(alt string) (*http.R return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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 +// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -100361,7 +108698,7 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -100373,25 +108710,25 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) Do(opts ...googleapi.CallOptio } return ret, nil // { - // "description": "Deletes a PipelineJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs/{pipelineJobsId}", + // "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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.pipelineJobs.delete", + // "id": "aiplatform.projects.locations.pipelineJobs.operations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the PipelineJob resource to be deleted. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`", + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -100400,9 +108737,9 @@ func (c *ProjectsLocationsPipelineJobsDeleteCall) Do(opts ...googleapi.CallOptio } -// method id "aiplatform.projects.locations.pipelineJobs.get": +// method id "aiplatform.projects.locations.pipelineJobs.operations.get": -type ProjectsLocationsPipelineJobsGetCall struct { +type ProjectsLocationsPipelineJobsOperationsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -100411,13 +108748,13 @@ type ProjectsLocationsPipelineJobsGetCall struct { header_ http.Header } -// Get: Gets a PipelineJob. +// 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 PipelineJob resource. Format: -// `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} -// `. -func (r *ProjectsLocationsPipelineJobsService) Get(name string) *ProjectsLocationsPipelineJobsGetCall { - c := &ProjectsLocationsPipelineJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource. +func (r *ProjectsLocationsPipelineJobsOperationsService) Get(name string) *ProjectsLocationsPipelineJobsOperationsGetCall { + c := &ProjectsLocationsPipelineJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -100425,7 +108762,7 @@ func (r *ProjectsLocationsPipelineJobsService) Get(name string) *ProjectsLocatio // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPipelineJobsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsGetCall { +func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -100435,7 +108772,7 @@ func (c *ProjectsLocationsPipelineJobsGetCall) Fields(s ...googleapi.Field) *Pro // 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 *ProjectsLocationsPipelineJobsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsGetCall { +func (c *ProjectsLocationsPipelineJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsOperationsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -100443,21 +108780,21 @@ func (c *ProjectsLocationsPipelineJobsGetCall) IfNoneMatch(entityTag string) *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 *ProjectsLocationsPipelineJobsGetCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsGetCall { +func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsGetCall { 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 *ProjectsLocationsPipelineJobsGetCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsOperationsGetCall) 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_ { @@ -100483,15 +108820,14 @@ func (c *ProjectsLocationsPipelineJobsGetCall) doRequest(alt string) (*http.Resp return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.get" call. -// Exactly one of *GoogleCloudAiplatformV1beta1PipelineJob or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1PipelineJob.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was +// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PipelineJob, error) { +func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -100510,7 +108846,7 @@ func (c *ProjectsLocationsPipelineJobsGetCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1PipelineJob{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -100522,25 +108858,25 @@ func (c *ProjectsLocationsPipelineJobsGetCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Gets a PipelineJob.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs/{pipelineJobsId}", + // "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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.pipelineJobs.get", + // "id": "aiplatform.projects.locations.pipelineJobs.operations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The name of the PipelineJob resource. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`", + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1PipelineJob" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -100549,99 +108885,53 @@ func (c *ProjectsLocationsPipelineJobsGetCall) Do(opts ...googleapi.CallOption) } -// method id "aiplatform.projects.locations.pipelineJobs.list": +// method id "aiplatform.projects.locations.pipelineJobs.operations.list": -type ProjectsLocationsPipelineJobsListCall struct { +type ProjectsLocationsPipelineJobsOperationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists PipelineJobs in a Location. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - parent: The resource name of the Location to list the PipelineJobs -// from. Format: `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsPipelineJobsService) List(parent string) *ProjectsLocationsPipelineJobsListCall { - c := &ProjectsLocationsPipelineJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsPipelineJobsOperationsService) List(name string) *ProjectsLocationsPipelineJobsOperationsListCall { + c := &ProjectsLocationsPipelineJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Lists the PipelineJobs -// that match the filter expression. The following fields are supported: -// * `pipeline_name`: Supports `=` and `!=` comparisons. * -// `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * -// `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` -// wildcard. for example, can check if pipeline's display_name contains -// *step* by doing display_name:\"*step*\" * `state`: Supports `=` and -// `!=` comparisons. * `create_time`: Supports `=`, `!=`, `<`, `>`, -// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * -// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` -// comparisons. Values must be in RFC 3339 format. * `end_time`: -// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must -// be in RFC 3339 format. * `labels`: Supports key-value equality and -// key presence. * `template_uri`: Supports `=`, `!=` comparisons, and -// `:` wildcard. * `template_metadata.version`: Supports `=`, `!=` -// comparisons, and `:` wildcard. Filter expressions can be combined -// together using logical operators (`AND` & `OR`). For example: -// `pipeline_name="test" AND create_time>"2020-05-18T13:30:00Z". The -// syntax to define filter expression is based on -// https://google.aip.dev/160. Examples: * -// `create_time>"2021-05-18T00:00:00Z" OR -// update_time>"2020-05-18T00:00:00Z" PipelineJobs created or updated -// after 2020-05-18 00:00:00 UTC. * `labels.env = "prod" PipelineJobs -// with label "env" set to "prod". -func (c *ProjectsLocationsPipelineJobsListCall) Filter(filter string) *ProjectsLocationsPipelineJobsListCall { +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsPipelineJobsOperationsListCall) Filter(filter string) *ProjectsLocationsPipelineJobsOperationsListCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": A comma-separated list -// of fields to order by. The default sort order is in ascending order. -// Use "desc" after a field name for descending. You can have multiple -// order_by fields provided e.g. "create_time desc, end_time", -// "end_time, start_time, update_time" For example, using "create_time -// desc, end_time" will order results by create time in descending -// order, and if there are multiple jobs having the same create time, -// order them by the end time in ascending order. if order_by is not -// specified, it will order by default order is create time in -// descending order. Supported fields: * `create_time` * `update_time` * -// `end_time` * `start_time` -func (c *ProjectsLocationsPipelineJobsListCall) OrderBy(orderBy string) *ProjectsLocationsPipelineJobsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": The standard list // page size. -func (c *ProjectsLocationsPipelineJobsListCall) PageSize(pageSize int64) *ProjectsLocationsPipelineJobsListCall { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsPipelineJobsOperationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": The standard list -// page token. Typically obtained via -// ListPipelineJobsResponse.next_page_token of the previous -// PipelineService.ListPipelineJobs call. -func (c *ProjectsLocationsPipelineJobsListCall) PageToken(pageToken string) *ProjectsLocationsPipelineJobsListCall { +// page token. +func (c *ProjectsLocationsPipelineJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsPipelineJobsOperationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } -// ReadMask sets the optional parameter "readMask": Mask specifying -// which fields to read. -func (c *ProjectsLocationsPipelineJobsListCall) ReadMask(readMask string) *ProjectsLocationsPipelineJobsListCall { - c.urlParams_.Set("readMask", readMask) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPipelineJobsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsListCall { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -100651,7 +108941,7 @@ func (c *ProjectsLocationsPipelineJobsListCall) Fields(s ...googleapi.Field) *Pr // 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 *ProjectsLocationsPipelineJobsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsListCall { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsOperationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -100659,21 +108949,21 @@ func (c *ProjectsLocationsPipelineJobsListCall) IfNoneMatch(entityTag string) *P // 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 *ProjectsLocationsPipelineJobsListCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsListCall { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsListCall { 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 *ProjectsLocationsPipelineJobsListCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) 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_ { @@ -100686,7 +108976,7 @@ func (c *ProjectsLocationsPipelineJobsListCall) doRequest(alt string) (*http.Res var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/pipelineJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -100694,21 +108984,20 @@ func (c *ProjectsLocationsPipelineJobsListCall) doRequest(alt string) (*http.Res } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.list" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ListPipelineJobsResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1ListPipelineJobsResponse.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 *ProjectsLocationsPipelineJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListPipelineJobsResponse, error) { +// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -100727,7 +109016,7 @@ func (c *ProjectsLocationsPipelineJobsListCall) Do(opts ...googleapi.CallOption) if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ListPipelineJobsResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -100739,22 +109028,24 @@ func (c *ProjectsLocationsPipelineJobsListCall) Do(opts ...googleapi.CallOption) } return ret, nil // { - // "description": "Lists PipelineJobs in a Location.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/pipelineJobs", + // "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}/pipelineJobs/{pipelineJobsId}/operations", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.pipelineJobs.list", + // "id": "aiplatform.projects.locations.pipelineJobs.operations.list", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { // "filter": { - // "description": "Lists the PipelineJobs that match the filter expression. The following fields are supported: * `pipeline_name`: Supports `=` and `!=` comparisons. * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard. * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard. for example, can check if pipeline's display_name contains *step* by doing display_name:\\\"*step*\\\" * `state`: Supports `=` and `!=` comparisons. * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `end_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard. * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:` wildcard. Filter expressions can be combined together using logical operators (`AND` \u0026 `OR`). For example: `pipeline_name=\"test\" AND create_time\u003e\"2020-05-18T13:30:00Z\"`. The syntax to define filter expression is based on https://google.aip.dev/160. Examples: * `create_time\u003e\"2021-05-18T00:00:00Z\" OR update_time\u003e\"2020-05-18T00:00:00Z\"` PipelineJobs created or updated after 2020-05-18 00:00:00 UTC. * `labels.env = \"prod\"` PipelineJobs with label \"env\" set to \"prod\".", + // "description": "The standard list filter.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "A comma-separated list of fields to order by. The default sort order is in ascending order. Use \"desc\" after a field name for descending. You can have multiple order_by fields provided e.g. \"create_time desc, end_time\", \"end_time, start_time, update_time\" For example, using \"create_time desc, end_time\" will order results by create time in descending order, and if there are multiple jobs having the same create time, order them by the end time in ascending order. if order_by is not specified, it will order by default order is create time in descending order. Supported fields: * `create_time` * `update_time` * `end_time` * `start_time`", - // "location": "query", + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + // "required": true, // "type": "string" // }, // "pageSize": { @@ -100764,27 +109055,14 @@ func (c *ProjectsLocationsPipelineJobsListCall) Do(opts ...googleapi.CallOption) // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token. Typically obtained via ListPipelineJobsResponse.next_page_token of the previous PipelineService.ListPipelineJobs call.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The resource name of the Location to list the PipelineJobs from. Format: `projects/{project}/locations/{location}`", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "readMask": { - // "description": "Mask specifying which fields to read.", - // "format": "google-fieldmask", + // "description": "The standard list page token.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+parent}/pipelineJobs", + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ListPipelineJobsResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -100796,7 +109074,7 @@ func (c *ProjectsLocationsPipelineJobsListCall) 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 *ProjectsLocationsPipelineJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListPipelineJobsResponse) error) error { +func (c *ProjectsLocationsPipelineJobsOperationsListCall) 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 { @@ -100814,9 +109092,9 @@ func (c *ProjectsLocationsPipelineJobsListCall) Pages(ctx context.Context, f fun } } -// method id "aiplatform.projects.locations.pipelineJobs.operations.cancel": +// method id "aiplatform.projects.locations.pipelineJobs.operations.wait": -type ProjectsLocationsPipelineJobsOperationsCancelCall struct { +type ProjectsLocationsPipelineJobsOperationsWaitCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -100824,28 +109102,37 @@ type ProjectsLocationsPipelineJobsOperationsCancelCall struct { 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`. +// 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 be cancelled. -func (r *ProjectsLocationsPipelineJobsOperationsService) Cancel(name string) *ProjectsLocationsPipelineJobsOperationsCancelCall { - c := &ProjectsLocationsPipelineJobsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsPipelineJobsOperationsService) Wait(name string) *ProjectsLocationsPipelineJobsOperationsWaitCall { + c := &ProjectsLocationsPipelineJobsOperationsWaitCall{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 *ProjectsLocationsPipelineJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsPipelineJobsOperationsWaitCall { + 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 *ProjectsLocationsPipelineJobsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsCancelCall { +func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -100853,21 +109140,21 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Fields(s ...googleap // 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 *ProjectsLocationsPipelineJobsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsCancelCall { +func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsWaitCall { 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 *ProjectsLocationsPipelineJobsOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) 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_ { @@ -100877,7 +109164,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) doRequest(alt string 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -100890,14 +109177,14 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) doRequest(alt string return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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.pipelineJobs.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 *ProjectsLocationsPipelineJobsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -100916,7 +109203,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Do(opts ...googleapi 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, @@ -100928,25 +109215,31 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Do(opts ...googleapi } 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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}:cancel", + // "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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.pipelineJobs.operations.cancel", + // "id": "aiplatform.projects.locations.pipelineJobs.operations.wait", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to be cancelled.", + // "description": "The name of the operation resource to wait on.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/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}:cancel", + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -100955,32 +109248,32 @@ func (c *ProjectsLocationsPipelineJobsOperationsCancelCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.pipelineJobs.operations.delete": +// method id "aiplatform.projects.locations.publishers.models.computeTokens": -type ProjectsLocationsPipelineJobsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsComputeTokensCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest + 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`. +// ComputeTokens: Return a list of tokens based on the input text. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsPipelineJobsOperationsService) Delete(name string) *ProjectsLocationsPipelineJobsOperationsDeleteCall { - c := &ProjectsLocationsPipelineJobsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - endpoint: The name of the Endpoint requested to get lists of tokens +// and token ids. +func (r *ProjectsLocationsPublishersModelsService) ComputeTokens(endpoint string, googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest) *ProjectsLocationsPublishersModelsComputeTokensCall { + c := &ProjectsLocationsPublishersModelsComputeTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1computetokensrequest = googlecloudaiplatformv1beta1computetokensrequest 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 *ProjectsLocationsPipelineJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsDeleteCall { +func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsComputeTokensCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -100988,21 +109281,21 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Fields(s ...googleap // 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 *ProjectsLocationsPipelineJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsDeleteCall { +func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsComputeTokensCall { 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 *ProjectsLocationsPipelineJobsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsComputeTokensCall) 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_ { @@ -101010,29 +109303,36 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) doRequest(alt string } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1computetokensrequest) + 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/{+endpoint}:computeTokens") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +// Do executes the "aiplatform.projects.locations.publishers.models.computeTokens" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ComputeTokensResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ComputeTokensResponse.ServerResponse.Head +// er or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ComputeTokensResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -101051,7 +109351,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleCloudAiplatformV1beta1ComputeTokensResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -101063,25 +109363,28 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Do(opts ...googleapi } 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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.pipelineJobs.operations.delete", + // "description": "Return a list of tokens based on the input text.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:computeTokens", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.publishers.models.computeTokens", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+endpoint}:computeTokens", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -101090,97 +109393,252 @@ func (c *ProjectsLocationsPipelineJobsOperationsDeleteCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.pipelineJobs.operations.get": +// method id "aiplatform.projects.locations.publishers.models.countTokens": -type ProjectsLocationsPipelineJobsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsCountTokensCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CountTokens: Perform a token counting. +// +// - endpoint: The name of the Endpoint requested to perform token +// counting. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsPublishersModelsService) CountTokens(endpoint string, googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest) *ProjectsLocationsPublishersModelsCountTokensCall { + c := &ProjectsLocationsPublishersModelsCountTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1counttokensrequest = googlecloudaiplatformv1beta1counttokensrequest + 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 *ProjectsLocationsPublishersModelsCountTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsCountTokensCall { + 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 *ProjectsLocationsPublishersModelsCountTokensCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsCountTokensCall { + 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 *ProjectsLocationsPublishersModelsCountTokensCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1counttokensrequest) + 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/{+endpoint}:countTokens") + 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{ + "endpoint": c.endpoint, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.publishers.models.countTokens" call. +// Exactly one of *GoogleCloudAiplatformV1beta1CountTokensResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1CountTokensResponse.ServerResponse.Header +// +// or (if a response was returned at all) in +// +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CountTokensResponse, 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 := &GoogleCloudAiplatformV1beta1CountTokensResponse{ + 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": "Perform a token counting.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:countTokens", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.publishers.models.countTokens", + // "parameterOrder": [ + // "endpoint" + // ], + // "parameters": { + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+endpoint}:countTokens", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.publishers.models.getIamPolicy": + +type ProjectsLocationsPublishersModelsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsPublishersModelsService) GetIamPolicy(resource string) *ProjectsLocationsPublishersModelsGetIamPolicyCall { + c := &ProjectsLocationsPublishersModelsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c } -// 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 *ProjectsLocationsPipelineJobsOperationsService) Get(name string) *ProjectsLocationsPipelineJobsOperationsGetCall { - c := &ProjectsLocationsPipelineJobsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsPublishersModelsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsGetCall { +func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsGetIamPolicyCall { 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 *ProjectsLocationsPipelineJobsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsOperationsGetCall { - 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 *ProjectsLocationsPipelineJobsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsGetCall { +func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsGetIamPolicyCall { 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 *ProjectsLocationsPipelineJobsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) 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 := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") 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, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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 +// Do executes the "aiplatform.projects.locations.publishers.models.getIamPolicy" call. +// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -101199,7 +109657,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Do(opts ...googleapi.Ca if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleIamV1Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -101211,25 +109669,31 @@ func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Do(opts ...googleapi.Ca } 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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.pipelineJobs.operations.get", + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:getIamPolicy", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.publishers.models.getIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource.", + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+resource}:getIamPolicy", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleIamV1Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -101238,119 +109702,92 @@ func (c *ProjectsLocationsPipelineJobsOperationsGetCall) Do(opts ...googleapi.Ca } -// method id "aiplatform.projects.locations.pipelineJobs.operations.list": +// method id "aiplatform.projects.locations.publishers.models.predict": -type ProjectsLocationsPipelineJobsOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// Predict: Perform an online prediction. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsPipelineJobsOperationsService) List(name string) *ProjectsLocationsPipelineJobsOperationsListCall { - c := &ProjectsLocationsPipelineJobsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsPipelineJobsOperationsListCall) Filter(filter string) *ProjectsLocationsPipelineJobsOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsPipelineJobsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsPipelineJobsOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsPipelineJobsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsPipelineJobsOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsPublishersModelsService) Predict(endpoint string, googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest) *ProjectsLocationsPublishersModelsPredictCall { + c := &ProjectsLocationsPublishersModelsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1predictrequest = googlecloudaiplatformv1beta1predictrequest 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 *ProjectsLocationsPipelineJobsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsListCall { +func (c *ProjectsLocationsPublishersModelsPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsPredictCall { 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 *ProjectsLocationsPipelineJobsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPipelineJobsOperationsListCall { - 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 *ProjectsLocationsPipelineJobsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsListCall { +func (c *ProjectsLocationsPublishersModelsPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsPredictCall { 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 *ProjectsLocationsPipelineJobsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsPredictCall) 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.googlecloudaiplatformv1beta1predictrequest) + 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}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:predict") 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, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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 *ProjectsLocationsPipelineJobsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.publishers.models.predict" call. +// Exactly one of *GoogleCloudAiplatformV1beta1PredictResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1PredictResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -101369,7 +109806,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsListCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1PredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -101381,41 +109818,28 @@ func (c *ProjectsLocationsPipelineJobsOperationsListCall) Do(opts ...googleapi.C } 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}/pipelineJobs/{pipelineJobsId}/operations", - // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.pipelineJobs.operations.list", + // "description": "Perform an online prediction.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predict", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.publishers.models.predict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "filter": { - // "description": "The standard list filter.", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The name of the operation's parent resource.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", // "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", + // "path": "v1beta1/{+endpoint}:predict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1PredictRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1PredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -101424,68 +109848,37 @@ func (c *ProjectsLocationsPipelineJobsOperationsListCall) Do(opts ...googleapi.C } -// 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 *ProjectsLocationsPipelineJobsOperationsListCall) 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.pipelineJobs.operations.wait": +// method id "aiplatform.projects.locations.publishers.models.rawPredict": -type ProjectsLocationsPipelineJobsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsRawPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest + 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. +// RawPredict: Perform an online prediction with an arbitrary HTTP +// payload. The response includes the following HTTP headers: * +// `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this +// prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's +// DeployedModel that served this prediction. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsPipelineJobsOperationsService) Wait(name string) *ProjectsLocationsPipelineJobsOperationsWaitCall { - c := &ProjectsLocationsPipelineJobsOperationsWaitCall{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 *ProjectsLocationsPipelineJobsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsPipelineJobsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsPublishersModelsService) RawPredict(endpoint string, googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest) *ProjectsLocationsPublishersModelsRawPredictCall { + c := &ProjectsLocationsPublishersModelsRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.endpoint = endpoint + c.googlecloudaiplatformv1beta1rawpredictrequest = googlecloudaiplatformv1beta1rawpredictrequest 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 *ProjectsLocationsPipelineJobsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsPipelineJobsOperationsWaitCall { +func (c *ProjectsLocationsPublishersModelsRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsRawPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -101493,21 +109886,21 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) 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 *ProjectsLocationsPipelineJobsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsPipelineJobsOperationsWaitCall { +func (c *ProjectsLocationsPublishersModelsRawPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsRawPredictCall { 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 *ProjectsLocationsPipelineJobsOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsRawPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsRawPredictCall) 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_ { @@ -101515,9 +109908,14 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1rawpredictrequest) + 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/{+endpoint}:rawPredict") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -101525,19 +109923,19 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "endpoint": c.endpoint, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.pipelineJobs.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.publishers.models.rawPredict" call. +// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleApiHttpBody.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsPublishersModelsRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -101556,7 +109954,7 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleApiHttpBody{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -101568,31 +109966,28 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Do(opts ...googleapi.C } 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}/pipelineJobs/{pipelineJobsId}/operations/{operationsId}:wait", + // "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:rawPredict", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.pipelineJobs.operations.wait", + // "id": "aiplatform.projects.locations.publishers.models.rawPredict", // "parameterOrder": [ - // "name" + // "endpoint" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", + // "endpoint": { + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/pipelineJobs/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", // "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/{+endpoint}:rawPredict", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1RawPredictRequest" + // }, // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleApiHttpBody" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -101601,32 +109996,34 @@ func (c *ProjectsLocationsPipelineJobsOperationsWaitCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.publishers.models.computeTokens": +// method id "aiplatform.projects.locations.publishers.models.serverStreamingPredict": -type ProjectsLocationsPublishersModelsComputeTokensCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsServerStreamingPredictCall struct { + s *Service + endpoint string + googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// ComputeTokens: Return a list of tokens based on the input text. +// ServerStreamingPredict: Perform a server-side streaming online +// prediction request for Vertex LLM streaming. // -// - endpoint: The name of the Endpoint requested to get lists of tokens -// and token ids. -func (r *ProjectsLocationsPublishersModelsService) ComputeTokens(endpoint string, googlecloudaiplatformv1beta1computetokensrequest *GoogleCloudAiplatformV1beta1ComputeTokensRequest) *ProjectsLocationsPublishersModelsComputeTokensCall { - c := &ProjectsLocationsPublishersModelsComputeTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - endpoint: The name of the Endpoint requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/endpoints/{endpoint}`. +func (r *ProjectsLocationsPublishersModelsService) ServerStreamingPredict(endpoint string, googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest) *ProjectsLocationsPublishersModelsServerStreamingPredictCall { + c := &ProjectsLocationsPublishersModelsServerStreamingPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.endpoint = endpoint - c.googlecloudaiplatformv1beta1computetokensrequest = googlecloudaiplatformv1beta1computetokensrequest + c.googlecloudaiplatformv1beta1streamingpredictrequest = googlecloudaiplatformv1beta1streamingpredictrequest 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 *ProjectsLocationsPublishersModelsComputeTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsComputeTokensCall { +func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsServerStreamingPredictCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -101634,21 +110031,21 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) 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 *ProjectsLocationsPublishersModelsComputeTokensCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsComputeTokensCall { +func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsServerStreamingPredictCall { 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 *ProjectsLocationsPublishersModelsComputeTokensCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsComputeTokensCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) 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_ { @@ -101656,14 +110053,14 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1computetokensrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1streamingpredictrequest) 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/{+endpoint}:computeTokens") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:serverStreamingPredict") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -101676,16 +110073,16 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) doRequest(alt strin return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.computeTokens" call. -// Exactly one of *GoogleCloudAiplatformV1beta1ComputeTokensResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1ComputeTokensResponse.ServerResponse.Head -// er or (if a response was returned at all) in +// Do executes the "aiplatform.projects.locations.publishers.models.serverStreamingPredict" call. +// Exactly one of *GoogleCloudAiplatformV1beta1StreamingPredictResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1StreamingPredictResponse.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 *ProjectsLocationsPublishersModelsComputeTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ComputeTokensResponse, error) { +func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1StreamingPredictResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -101704,7 +110101,7 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ComputeTokensResponse{ + ret := &GoogleCloudAiplatformV1beta1StreamingPredictResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -101716,28 +110113,28 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Do(opts ...googleap } return ret, nil // { - // "description": "Return a list of tokens based on the input text.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:computeTokens", + // "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:serverStreamingPredict", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.computeTokens", + // "id": "aiplatform.projects.locations.publishers.models.serverStreamingPredict", // "parameterOrder": [ // "endpoint" // ], // "parameters": { // "endpoint": { - // "description": "Required. The name of the Endpoint requested to get lists of tokens and token ids.", + // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:computeTokens", + // "path": "v1beta1/{+endpoint}:serverStreamingPredict", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensRequest" + // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ComputeTokensResponse" + // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -101746,33 +110143,34 @@ func (c *ProjectsLocationsPublishersModelsComputeTokensCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.publishers.models.countTokens": +// method id "aiplatform.projects.locations.publishers.models.streamGenerateContent": -type ProjectsLocationsPublishersModelsCountTokensCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsPublishersModelsStreamGenerateContentCall struct { + s *Service + model string + googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// CountTokens: Perform a token counting. +// StreamGenerateContent: Generate content with multimodal inputs with +// streaming support. // -// - endpoint: The name of the Endpoint requested to perform token -// counting. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsPublishersModelsService) CountTokens(endpoint string, googlecloudaiplatformv1beta1counttokensrequest *GoogleCloudAiplatformV1beta1CountTokensRequest) *ProjectsLocationsPublishersModelsCountTokensCall { - c := &ProjectsLocationsPublishersModelsCountTokensCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1counttokensrequest = googlecloudaiplatformv1beta1counttokensrequest +// - model: The name of the publisher model requested to serve the +// prediction. Format: +// `projects/{project}/locations/{location}/publishers/*/models/*`. +func (r *ProjectsLocationsPublishersModelsService) StreamGenerateContent(model string, googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { + c := &ProjectsLocationsPublishersModelsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.model = model + c.googlecloudaiplatformv1beta1generatecontentrequest = googlecloudaiplatformv1beta1generatecontentrequest 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 *ProjectsLocationsPublishersModelsCountTokensCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsCountTokensCall { +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -101780,21 +110178,21 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) 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 *ProjectsLocationsPublishersModelsCountTokensCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsCountTokensCall { +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { 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 *ProjectsLocationsPublishersModelsCountTokensCall) Header() http.Header { +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) 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_ { @@ -101802,14 +110200,14 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1counttokensrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1generatecontentrequest) 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/{+endpoint}:countTokens") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+model}:streamGenerateContent") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -101817,23 +110215,21 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "model": c.model, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.countTokens" call. -// Exactly one of *GoogleCloudAiplatformV1beta1CountTokensResponse or -// error will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1CountTokensResponse.ServerResponse.Header -// -// or (if a response was returned at all) in -// +// Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. +// Exactly one of *GoogleCloudAiplatformV1beta1GenerateContentResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1GenerateContentResponse.ServerResponse.He +// ader or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1CountTokensResponse, error) { +func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateContentResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -101852,7 +110248,7 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1CountTokensResponse{ + ret := &GoogleCloudAiplatformV1beta1GenerateContentResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -101864,28 +110260,28 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Perform a token counting.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:countTokens", + // "description": "Generate content with multimodal inputs with streaming support.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.countTokens", + // "id": "aiplatform.projects.locations.publishers.models.streamGenerateContent", // "parameterOrder": [ - // "endpoint" + // "model" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to perform token counting. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "model": { + // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:countTokens", + // "path": "v1beta1/{+model}:streamGenerateContent", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1CountTokensRequest" + // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1CountTokensResponse" + // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -101894,52 +110290,38 @@ func (c *ProjectsLocationsPublishersModelsCountTokensCall) Do(opts ...googleapi. } -// method id "aiplatform.projects.locations.publishers.models.getIamPolicy": +// method id "aiplatform.projects.locations.reasoningEngines.operations.cancel": -type ProjectsLocationsPublishersModelsGetIamPolicyCall struct { +type ProjectsLocationsReasoningEnginesOperationsCancelCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// 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`. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsPublishersModelsService) GetIamPolicy(resource string) *ProjectsLocationsPublishersModelsGetIamPolicyCall { - c := &ProjectsLocationsPublishersModelsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsPublishersModelsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Cancel(name string) *ProjectsLocationsReasoningEnginesOperationsCancelCall { + c := &ProjectsLocationsReasoningEnginesOperationsCancelCall{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 *ProjectsLocationsPublishersModelsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsGetIamPolicyCall { +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -101947,21 +110329,21 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Fields(s ...googleap // 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 *ProjectsLocationsPublishersModelsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsGetIamPolicyCall { +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsCancelCall { 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 *ProjectsLocationsPublishersModelsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) 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_ { @@ -101971,7 +110353,7 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) doRequest(alt string var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -101979,19 +110361,19 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) doRequest(alt string } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.getIamPolicy" call. -// Exactly one of *GoogleIamV1Policy or error will be non-nil. Any +// Do executes the "aiplatform.projects.locations.reasoningEngines.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 -// *GoogleIamV1Policy.ServerResponse.Header or (if a response was +// *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 *ProjectsLocationsPublishersModelsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -102010,7 +110392,7 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Do(opts ...googleapi if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleIamV1Policy{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -102022,31 +110404,25 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Do(opts ...googleapi } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:getIamPolicy", + // "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}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:cancel", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.getIamPolicy", + // "id": "aiplatform.projects.locations.reasoningEngines.operations.cancel", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "name": { + // "description": "The name of the operation resource to be cancelled.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+resource}:getIamPolicy", + // "path": "v1beta1/{+name}:cancel", // "response": { - // "$ref": "GoogleIamV1Policy" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -102055,33 +110431,32 @@ func (c *ProjectsLocationsPublishersModelsGetIamPolicyCall) Do(opts ...googleapi } -// method id "aiplatform.projects.locations.publishers.models.predict": +// method id "aiplatform.projects.locations.reasoningEngines.operations.delete": -type ProjectsLocationsPublishersModelsPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsReasoningEnginesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Predict: Perform an online prediction. +// 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`. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsPublishersModelsService) Predict(endpoint string, googlecloudaiplatformv1beta1predictrequest *GoogleCloudAiplatformV1beta1PredictRequest) *ProjectsLocationsPublishersModelsPredictCall { - c := &ProjectsLocationsPublishersModelsPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1predictrequest = googlecloudaiplatformv1beta1predictrequest +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Delete(name string) *ProjectsLocationsReasoningEnginesOperationsDeleteCall { + c := &ProjectsLocationsReasoningEnginesOperationsDeleteCall{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 *ProjectsLocationsPublishersModelsPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsPredictCall { +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -102089,21 +110464,21 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsPublishersModelsPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsPredictCall { +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsDeleteCall { 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 *ProjectsLocationsPublishersModelsPredictCall) Header() http.Header { +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsDeleteCall) 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_ { @@ -102111,36 +110486,29 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1predictrequest) - 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/{+endpoint}:predict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.predict" call. -// Exactly one of *GoogleCloudAiplatformV1beta1PredictResponse or error -// will be non-nil. Any non-2xx status code is an error. Response -// headers are in either -// *GoogleCloudAiplatformV1beta1PredictResponse.ServerResponse.Header or -// (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1PredictResponse, error) { +// Do executes the "aiplatform.projects.locations.reasoningEngines.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 *ProjectsLocationsReasoningEnginesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -102159,7 +110527,7 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1PredictResponse{ + ret := &GoogleProtobufEmpty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -102171,28 +110539,25 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Perform an online prediction.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:predict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.predict", + // "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}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.reasoningEngines.operations.delete", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource to be deleted.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:predict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1PredictRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1PredictResponse" + // "$ref": "GoogleProtobufEmpty" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -102201,94 +110566,97 @@ func (c *ProjectsLocationsPublishersModelsPredictCall) Do(opts ...googleapi.Call } -// method id "aiplatform.projects.locations.publishers.models.rawPredict": +// method id "aiplatform.projects.locations.reasoningEngines.operations.get": -type ProjectsLocationsPublishersModelsRawPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsReasoningEnginesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RawPredict: Perform an online prediction with an arbitrary HTTP -// payload. The response includes the following HTTP headers: * -// `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this -// prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's -// DeployedModel that served this prediction. +// 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. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsPublishersModelsService) RawPredict(endpoint string, googlecloudaiplatformv1beta1rawpredictrequest *GoogleCloudAiplatformV1beta1RawPredictRequest) *ProjectsLocationsPublishersModelsRawPredictCall { - c := &ProjectsLocationsPublishersModelsRawPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1rawpredictrequest = googlecloudaiplatformv1beta1rawpredictrequest +// - name: The name of the operation resource. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Get(name string) *ProjectsLocationsReasoningEnginesOperationsGetCall { + c := &ProjectsLocationsReasoningEnginesOperationsGetCall{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 *ProjectsLocationsPublishersModelsRawPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsRawPredictCall { +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsGetCall { 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 *ProjectsLocationsReasoningEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsReasoningEnginesOperationsGetCall { + 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 *ProjectsLocationsPublishersModelsRawPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsRawPredictCall { +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsGetCall { 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 *ProjectsLocationsPublishersModelsRawPredictCall) Header() http.Header { +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsRawPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1rawpredictrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:rawPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.rawPredict" call. -// Exactly one of *GoogleApiHttpBody or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleApiHttpBody.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.reasoningEngines.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 *ProjectsLocationsPublishersModelsRawPredictCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -102307,7 +110675,7 @@ func (c *ProjectsLocationsPublishersModelsRawPredictCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleApiHttpBody{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -102319,28 +110687,25 @@ func (c *ProjectsLocationsPublishersModelsRawPredictCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the Endpoint that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's DeployedModel that served this prediction.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:rawPredict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.rawPredict", + // "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}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.reasoningEngines.operations.get", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "name": { + // "description": "The name of the operation resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/operations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+endpoint}:rawPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1RawPredictRequest" - // }, + // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleApiHttpBody" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -102349,93 +110714,119 @@ func (c *ProjectsLocationsPublishersModelsRawPredictCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.publishers.models.serverStreamingPredict": +// method id "aiplatform.projects.locations.reasoningEngines.operations.list": -type ProjectsLocationsPublishersModelsServerStreamingPredictCall struct { - s *Service - endpoint string - googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsReasoningEnginesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// ServerStreamingPredict: Perform a server-side streaming online -// prediction request for Vertex LLM streaming. +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. // -// - endpoint: The name of the Endpoint requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/endpoints/{endpoint}`. -func (r *ProjectsLocationsPublishersModelsService) ServerStreamingPredict(endpoint string, googlecloudaiplatformv1beta1streamingpredictrequest *GoogleCloudAiplatformV1beta1StreamingPredictRequest) *ProjectsLocationsPublishersModelsServerStreamingPredictCall { - c := &ProjectsLocationsPublishersModelsServerStreamingPredictCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.endpoint = endpoint - c.googlecloudaiplatformv1beta1streamingpredictrequest = googlecloudaiplatformv1beta1streamingpredictrequest +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsReasoningEnginesOperationsService) List(name string) *ProjectsLocationsReasoningEnginesOperationsListCall { + c := &ProjectsLocationsReasoningEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsReasoningEnginesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsReasoningEnginesOperationsListCall { + 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 *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsServerStreamingPredictCall { +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsListCall { 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 *ProjectsLocationsReasoningEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsReasoningEnginesOperationsListCall { + 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 *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsServerStreamingPredictCall { +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsListCall { 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 *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Header() http.Header { +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1streamingpredictrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+endpoint}:serverStreamingPredict") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "endpoint": c.endpoint, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.serverStreamingPredict" call. -// Exactly one of *GoogleCloudAiplatformV1beta1StreamingPredictResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1StreamingPredictResponse.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 *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1StreamingPredictResponse, error) { +// Do executes the "aiplatform.projects.locations.reasoningEngines.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 *ProjectsLocationsReasoningEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -102454,7 +110845,7 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1StreamingPredictResponse{ + ret := &GoogleLongrunningListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -102466,28 +110857,41 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts .. } return ret, nil // { - // "description": "Perform a server-side streaming online prediction request for Vertex LLM streaming.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:serverStreamingPredict", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.serverStreamingPredict", + // "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}/reasoningEngines/{reasoningEnginesId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.reasoningEngines.operations.list", // "parameterOrder": [ - // "endpoint" + // "name" // ], // "parameters": { - // "endpoint": { - // "description": "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`", + // "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/[^/]+/publishers/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+$", // "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/{+endpoint}:serverStreamingPredict", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictRequest" - // }, + // "path": "v1beta1/{+name}/operations", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1StreamingPredictResponse" + // "$ref": "GoogleLongrunningListOperationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -102496,34 +110900,68 @@ func (c *ProjectsLocationsPublishersModelsServerStreamingPredictCall) Do(opts .. } -// method id "aiplatform.projects.locations.publishers.models.streamGenerateContent": +// 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 *ProjectsLocationsReasoningEnginesOperationsListCall) 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) + } +} -type ProjectsLocationsPublishersModelsStreamGenerateContentCall struct { - s *Service - model string - googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "aiplatform.projects.locations.reasoningEngines.operations.wait": + +type ProjectsLocationsReasoningEnginesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// StreamGenerateContent: Generate content with multimodal inputs with -// streaming support. +// 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. // -// - model: The name of the publisher model requested to serve the -// prediction. Format: -// `projects/{project}/locations/{location}/publishers/*/models/*`. -func (r *ProjectsLocationsPublishersModelsService) StreamGenerateContent(model string, googlecloudaiplatformv1beta1generatecontentrequest *GoogleCloudAiplatformV1beta1GenerateContentRequest) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { - c := &ProjectsLocationsPublishersModelsStreamGenerateContentCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.model = model - c.googlecloudaiplatformv1beta1generatecontentrequest = googlecloudaiplatformv1beta1generatecontentrequest +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsReasoningEnginesOperationsService) Wait(name string) *ProjectsLocationsReasoningEnginesOperationsWaitCall { + c := &ProjectsLocationsReasoningEnginesOperationsWaitCall{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 *ProjectsLocationsReasoningEnginesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsReasoningEnginesOperationsWaitCall { + 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsReasoningEnginesOperationsWaitCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -102531,21 +110969,21 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Context(ctx context.Context) *ProjectsLocationsPublishersModelsStreamGenerateContentCall { +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsReasoningEnginesOperationsWaitCall { 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 *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Header() http.Header { +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsReasoningEnginesOperationsWaitCall) 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_ { @@ -102553,14 +110991,9 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(a } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1generatecontentrequest) - 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/{+model}:streamGenerateContent") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -102568,21 +111001,19 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) doRequest(a } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "model": c.model, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.publishers.models.streamGenerateContent" call. -// Exactly one of *GoogleCloudAiplatformV1beta1GenerateContentResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudAiplatformV1beta1GenerateContentResponse.ServerResponse.He -// ader or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1GenerateContentResponse, error) { +// Do executes the "aiplatform.projects.locations.reasoningEngines.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 *ProjectsLocationsReasoningEnginesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -102601,7 +111032,7 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1GenerateContentResponse{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -102613,28 +111044,31 @@ func (c *ProjectsLocationsPublishersModelsStreamGenerateContentCall) Do(opts ... } return ret, nil // { - // "description": "Generate content with multimodal inputs with streaming support.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/publishers/{publishersId}/models/{modelsId}:streamGenerateContent", + // "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}/reasoningEngines/{reasoningEnginesId}/operations/{operationsId}:wait", // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.publishers.models.streamGenerateContent", + // "id": "aiplatform.projects.locations.reasoningEngines.operations.wait", // "parameterOrder": [ - // "model" + // "name" // ], // "parameters": { - // "model": { - // "description": "Required. The name of the publisher model requested to serve the prediction. Format: `projects/{project}/locations/{location}/publishers/*/models/*`", + // "name": { + // "description": "The name of the operation resource to wait on.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/publishers/[^/]+/models/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/reasoningEngines/[^/]+/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/{+model}:streamGenerateContent", - // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentRequest" - // }, + // "path": "v1beta1/{+name}:wait", // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponse" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 2877d4750e9..00d8513db73 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -349,7 +349,7 @@ ], "parameters": { "account": { - "description": "Required. The account resource for which to return change history resources.", + "description": "Required. The account resource for which to return change history resources. Format: accounts/{account} Example: \"accounts/100\"", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -4298,7 +4298,7 @@ } } }, - "revision": "20231212", + "revision": "20240105", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5840,7 +5840,7 @@ "id": "GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue", "properties": { "currencyCode": { - "description": "When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more.", + "description": "When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.", "type": "string" }, "value": { @@ -7925,7 +7925,7 @@ "type": "string" }, "property": { - "description": "Optional. Resource name for a child property. If set, only return changes made to this property or its child resources.", + "description": "Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. Format: properties/{propertyId} Example: \"properties/100\"", "type": "string" }, "resourceType": { diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index b4fea412dae..a0356be9e35 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -3116,7 +3116,7 @@ type GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue struct { // CurrencyCode: When a conversion event for this event_name has no set // currency, this currency will be applied as the default. Must be in // ISO 4217 currency code format. See - // https://en.wikipedia.org/wiki/ISO_4217 for more. + // https://en.wikipedia.org/wiki/ISO_4217 for more information. CurrencyCode string `json:"currencyCode,omitempty"` // Value: This value will be used to populate the value for all @@ -6877,7 +6877,8 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { PageToken string `json:"pageToken,omitempty"` // Property: Optional. Resource name for a child property. If set, only - // return changes made to this property or its child resources. + // return changes made to this property or its child resources. Format: + // properties/{propertyId} Example: "properties/100" Property string `json:"property,omitempty"` // ResourceType: Optional. If set, only return changes if they are for a @@ -8607,7 +8608,7 @@ type AccountsSearchChangeHistoryEventsCall struct { // or its children given the specified set of filters. // // - account: The account resource for which to return change history -// resources. +// resources. Format: accounts/{account} Example: "accounts/100". func (r *AccountsService) SearchChangeHistoryEvents(account string, googleanalyticsadminv1alphasearchchangehistoryeventsrequest *GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest) *AccountsSearchChangeHistoryEventsCall { c := &AccountsSearchChangeHistoryEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.account = account @@ -8718,7 +8719,7 @@ func (c *AccountsSearchChangeHistoryEventsCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "account": { - // "description": "Required. The account resource for which to return change history resources.", + // "description": "Required. The account resource for which to return change history resources. Format: accounts/{account} Example: \"accounts/100\"", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, diff --git a/analyticsadmin/v1beta/analyticsadmin-api.json b/analyticsadmin/v1beta/analyticsadmin-api.json index fa58f20ff3a..31e733568c8 100644 --- a/analyticsadmin/v1beta/analyticsadmin-api.json +++ b/analyticsadmin/v1beta/analyticsadmin-api.json @@ -343,7 +343,7 @@ ], "parameters": { "account": { - "description": "Required. The account resource for which to return change history resources.", + "description": "Required. The account resource for which to return change history resources. Format: accounts/{account} Example: \"accounts/100\"", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -1628,7 +1628,7 @@ } } }, - "revision": "20231212", + "revision": "20240105", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1betaAccessBetweenFilter": { @@ -2267,7 +2267,7 @@ "id": "GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue", "properties": { "currencyCode": { - "description": "When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more.", + "description": "When a conversion event for this event_name has no set currency, this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.", "type": "string" }, "value": { @@ -3230,7 +3230,7 @@ "type": "string" }, "property": { - "description": "Optional. Resource name for a child property. If set, only return changes made to this property or its child resources.", + "description": "Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. Format: properties/{propertyId} Example: \"properties/100\"", "type": "string" }, "resourceType": { diff --git a/analyticsadmin/v1beta/analyticsadmin-gen.go b/analyticsadmin/v1beta/analyticsadmin-gen.go index 8394d370f56..9c75b9f8df4 100644 --- a/analyticsadmin/v1beta/analyticsadmin-gen.go +++ b/analyticsadmin/v1beta/analyticsadmin-gen.go @@ -1390,7 +1390,7 @@ type GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue struct { // CurrencyCode: When a conversion event for this event_name has no set // currency, this currency will be applied as the default. Must be in // ISO 4217 currency code format. See - // https://en.wikipedia.org/wiki/ISO_4217 for more. + // https://en.wikipedia.org/wiki/ISO_4217 for more information. CurrencyCode string `json:"currencyCode,omitempty"` // Value: This value will be used to populate the value for all @@ -2925,7 +2925,8 @@ type GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest struct { PageToken string `json:"pageToken,omitempty"` // Property: Optional. Resource name for a child property. If set, only - // return changes made to this property or its child resources. + // return changes made to this property or its child resources. Format: + // properties/{propertyId} Example: "properties/100" Property string `json:"property,omitempty"` // ResourceType: Optional. If set, only return changes if they are for a @@ -4319,7 +4320,7 @@ type AccountsSearchChangeHistoryEventsCall struct { // or its children given the specified set of filters. // // - account: The account resource for which to return change history -// resources. +// resources. Format: accounts/{account} Example: "accounts/100". func (r *AccountsService) SearchChangeHistoryEvents(account string, googleanalyticsadminv1betasearchchangehistoryeventsrequest *GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest) *AccountsSearchChangeHistoryEventsCall { c := &AccountsSearchChangeHistoryEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.account = account @@ -4430,7 +4431,7 @@ func (c *AccountsSearchChangeHistoryEventsCall) Do(opts ...googleapi.CallOption) // ], // "parameters": { // "account": { - // "description": "Required. The account resource for which to return change history resources.", + // "description": "Required. The account resource for which to return change history resources. Format: accounts/{account} Example: \"accounts/100\"", // "location": "path", // "pattern": "^accounts/[^/]+$", // "required": true, diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 10cde424ca1..46ea7f5ea1e 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -228,6 +228,34 @@ }, "spaces": { "methods": { + "completeImport": { + "description": "Completes the [import process](https://developers.google.com/chat/api/guides/import-data) for the specified space and makes it visible to users. Requires app authentication and domain-wide delegation. For more information, see [Authorize Google Chat apps to import data](https://developers.google.com/chat/api/guides/authorize-import).", + "flatPath": "v1/spaces/{spacesId}:completeImport", + "httpMethod": "POST", + "id": "chat.spaces.completeImport", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the import mode space. Format: `spaces/{space}`", + "location": "path", + "pattern": "^spaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:completeImport", + "request": { + "$ref": "CompleteImportSpaceRequest" + }, + "response": { + "$ref": "CompleteImportSpaceResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/chat.import" + ] + }, "create": { "description": "Creates a named space. Spaces grouped by topics aren't supported. For an example, see [Create a space](https://developers.google.com/chat/api/guides/v1/spaces/create). If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users).", "flatPath": "v1/spaces", @@ -962,7 +990,7 @@ } } }, - "revision": "20231214", + "revision": "20240104", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -1436,6 +1464,22 @@ }, "type": "object" }, + "CompleteImportSpaceRequest": { + "description": "Request message for completing the import process for a space.", + "id": "CompleteImportSpaceRequest", + "properties": {}, + "type": "object" + }, + "CompleteImportSpaceResponse": { + "id": "CompleteImportSpaceResponse", + "properties": { + "space": { + "$ref": "Space", + "description": "The import mode space." + } + }, + "type": "object" + }, "CustomEmoji": { "description": "Represents a custom emoji.", "id": "CustomEmoji", @@ -3067,7 +3111,12 @@ "id": "Membership", "properties": { "createTime": { - "description": "Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. [Developer Preview](https://developers.google.com/workspace/preview): This field is output only, except when used to import historical memberships in import mode spaces.", + "description": "Optional. Immutable. The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.", + "format": "google-datetime", + "type": "string" + }, + "deleteTime": { + "description": "Optional. Immutable. The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.", "format": "google-datetime", "type": "string" }, @@ -3173,7 +3222,7 @@ "type": "string" }, "createTime": { - "description": "For spaces created in Chat, the time at which the message was created. This field is output only, except when used in imported spaces. [Developer Preview](https://developers.google.com/workspace/preview): For imported spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time.", + "description": "Optional. Immutable. For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time.", "format": "google-datetime", "type": "string" }, @@ -3435,6 +3484,11 @@ "readOnly": true, "type": "boolean" }, + "createTime": { + "description": "Optional. Immutable. For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time. Only populated in the output when `spaceType` is `GROUP_CHAT` or `SPACE`.", + "format": "google-datetime", + "type": "string" + }, "displayName": { "description": "The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). If you receive the error message `ALREADY_EXISTS` when creating a space or updating the `displayName`, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. For direct messages, this field might be empty. Supports up to 128 characters.", "type": "string" @@ -3443,6 +3497,10 @@ "description": "Immutable. Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions: * The authenticated user uses a Google Account. By default, the space permits any Google Chat user. * The space is used to [import data to Google Chat] (https://developers.google.com/chat/api/guides/import-data-overview). Import mode spaces must only permit members from the same Google Workspace organization. For existing spaces, this field is output only.", "type": "boolean" }, + "importMode": { + "description": "Optional. Whether this space is created in `Import Mode` as part of a data migration into Google Workspace. While spaces are being imported, they aren't visible to users until the import is complete.", + "type": "boolean" + }, "name": { "description": "Resource name of the space. Format: `spaces/{space}`", "type": "string" diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 86e9b34c344..cf5e0c595f0 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1151,6 +1151,42 @@ func (s *CommonEventObject) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CompleteImportSpaceRequest: Request message for completing the import +// process for a space. +type CompleteImportSpaceRequest struct { +} + +type CompleteImportSpaceResponse struct { + // Space: The import mode space. + Space *Space `json:"space,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Space") 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. "Space") 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 *CompleteImportSpaceResponse) MarshalJSON() ([]byte, error) { + type NoMethod CompleteImportSpaceResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CustomEmoji: Represents a custom emoji. type CustomEmoji struct { // Uid: Unique key for the custom emoji resource. @@ -4026,12 +4062,17 @@ func (s *Media) MarshalJSON() ([]byte, error) { // space. type Membership struct { // CreateTime: Optional. Immutable. The creation time of the membership, - // such as when a member joined or was invited to join a space. - // Developer Preview (https://developers.google.com/workspace/preview): - // This field is output only, except when used to import historical + // such as when a member joined or was invited to join a space. This + // field is output only, except when used to import historical // memberships in import mode spaces. CreateTime string `json:"createTime,omitempty"` + // DeleteTime: Optional. Immutable. The deletion time of the membership, + // such as when a member left or was removed from a space. This field is + // output only, except when used to import historical memberships in + // import mode spaces. + DeleteTime string `json:"deleteTime,omitempty"` + // GroupMember: The Google Group the membership corresponds to. Only // supports read operations. Other operations, like creating or updating // a membership, aren't currently supported. @@ -4161,13 +4202,11 @@ type Message struct { // (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message). ClientAssignedMessageId string `json:"clientAssignedMessageId,omitempty"` - // CreateTime: For spaces created in Chat, the time at which the message - // was created. This field is output only, except when used in imported - // spaces. Developer Preview - // (https://developers.google.com/workspace/preview): For imported - // spaces, set this field to the historical timestamp at which the - // message was created in the source in order to preserve the original - // creation time. + // CreateTime: Optional. Immutable. For spaces created in Chat, the time + // at which the message was created. This field is output only, except + // when used in import mode spaces. For import mode spaces, set this + // field to the historical timestamp at which the message was created in + // the source in order to preserve the original creation time. CreateTime string `json:"createTime,omitempty"` // DeleteTime: Output only. The time at which the message was deleted in @@ -4656,6 +4695,14 @@ type Space struct { // feature direct messaging. AdminInstalled bool `json:"adminInstalled,omitempty"` + // CreateTime: Optional. Immutable. For spaces created in Chat, the time + // the space was created. This field is output only, except when used in + // import mode spaces. For import mode spaces, set this field to the + // historical timestamp at which the space was created in the source in + // order to preserve the original creation time. Only populated in the + // output when `spaceType` is `GROUP_CHAT` or `SPACE`. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: The space's display name. Required when creating a space // (https://developers.google.com/chat/api/reference/rest/v1/spaces/create). // If you receive the error message `ALREADY_EXISTS` when creating a @@ -4677,6 +4724,12 @@ type Space struct { // only. ExternalUserAllowed bool `json:"externalUserAllowed,omitempty"` + // ImportMode: Optional. Whether this space is created in `Import Mode` + // as part of a data migration into Google Workspace. While spaces are + // being imported, they aren't visible to users until the import is + // complete. + ImportMode bool `json:"importMode,omitempty"` + // Name: Resource name of the space. Format: `spaces/{space}` Name string `json:"name,omitempty"` @@ -5722,6 +5775,154 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*UploadAttachmentRes } +// method id "chat.spaces.completeImport": + +type SpacesCompleteImportCall struct { + s *Service + name string + completeimportspacerequest *CompleteImportSpaceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// CompleteImport: Completes the import process +// (https://developers.google.com/chat/api/guides/import-data) for the +// specified space and makes it visible to users. Requires app +// authentication and domain-wide delegation. For more information, see +// Authorize Google Chat apps to import data +// (https://developers.google.com/chat/api/guides/authorize-import). +// +// - name: Resource name of the import mode space. Format: +// `spaces/{space}`. +func (r *SpacesService) CompleteImport(name string, completeimportspacerequest *CompleteImportSpaceRequest) *SpacesCompleteImportCall { + c := &SpacesCompleteImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.completeimportspacerequest = completeimportspacerequest + 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 *SpacesCompleteImportCall) Fields(s ...googleapi.Field) *SpacesCompleteImportCall { + 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 *SpacesCompleteImportCall) Context(ctx context.Context) *SpacesCompleteImportCall { + 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 *SpacesCompleteImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *SpacesCompleteImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.completeimportspacerequest) + 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}:completeImport") + 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 "chat.spaces.completeImport" call. +// Exactly one of *CompleteImportSpaceResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *CompleteImportSpaceResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *SpacesCompleteImportCall) Do(opts ...googleapi.CallOption) (*CompleteImportSpaceResponse, 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 := &CompleteImportSpaceResponse{ + 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": "Completes the [import process](https://developers.google.com/chat/api/guides/import-data) for the specified space and makes it visible to users. Requires app authentication and domain-wide delegation. For more information, see [Authorize Google Chat apps to import data](https://developers.google.com/chat/api/guides/authorize-import).", + // "flatPath": "v1/spaces/{spacesId}:completeImport", + // "httpMethod": "POST", + // "id": "chat.spaces.completeImport", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name of the import mode space. Format: `spaces/{space}`", + // "location": "path", + // "pattern": "^spaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:completeImport", + // "request": { + // "$ref": "CompleteImportSpaceRequest" + // }, + // "response": { + // "$ref": "CompleteImportSpaceResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/chat.import" + // ] + // } + +} + // method id "chat.spaces.create": type SpacesCreateCall struct { diff --git a/deploymentmanager/v2/deploymentmanager-api.json b/deploymentmanager/v2/deploymentmanager-api.json index cd7337183e9..ec110dcfabe 100644 --- a/deploymentmanager/v2/deploymentmanager-api.json +++ b/deploymentmanager/v2/deploymentmanager-api.json @@ -988,7 +988,7 @@ } } }, - "revision": "20231214", + "revision": "20240104", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AuditConfig": { @@ -1404,7 +1404,7 @@ "type": "object" }, "Operation": { - "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources.", + "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period.", "id": "Operation", "properties": { "clientOperationId": { diff --git a/deploymentmanager/v2/deploymentmanager-gen.go b/deploymentmanager/v2/deploymentmanager-gen.go index 0f8ec88a6c2..ee58d43aab6 100644 --- a/deploymentmanager/v2/deploymentmanager-gen.go +++ b/deploymentmanager/v2/deploymentmanager-gen.go @@ -1076,7 +1076,8 @@ func (s *ManifestsListResponse) MarshalJSON() ([]byte, error) { // use the `globalOperations` resource. - For regional operations, use // the `regionOperations` resource. - For zonal operations, use the // `zoneOperations` resource. For more information, read Global, -// Regional, and Zonal Resources. +// Regional, and Zonal Resources. Note that completed Operation +// resources have a limited retention period. type Operation struct { // ClientOperationId: [Output Only] The value of `requestId` if you // provided it in the request. Not present otherwise. diff --git a/deploymentmanager/v2beta/deploymentmanager-api.json b/deploymentmanager/v2beta/deploymentmanager-api.json index 45249b48401..83e5e169ee5 100644 --- a/deploymentmanager/v2beta/deploymentmanager-api.json +++ b/deploymentmanager/v2beta/deploymentmanager-api.json @@ -1552,7 +1552,7 @@ } } }, - "revision": "20231214", + "revision": "20240104", "rootUrl": "https://deploymentmanager.googleapis.com/", "schemas": { "AsyncOptions": { @@ -2209,7 +2209,7 @@ "type": "object" }, "Operation": { - "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources.", + "description": "Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zoneOperations` resource. For more information, read Global, Regional, and Zonal Resources. Note that completed Operation resources have a limited retention period.", "id": "Operation", "properties": { "clientOperationId": { diff --git a/deploymentmanager/v2beta/deploymentmanager-gen.go b/deploymentmanager/v2beta/deploymentmanager-gen.go index 0277ea90c08..fcc074fe997 100644 --- a/deploymentmanager/v2beta/deploymentmanager-gen.go +++ b/deploymentmanager/v2beta/deploymentmanager-gen.go @@ -1495,7 +1495,8 @@ func (s *ManifestsListResponse) MarshalJSON() ([]byte, error) { // use the `globalOperations` resource. - For regional operations, use // the `regionOperations` resource. - For zonal operations, use the // `zoneOperations` resource. For more information, read Global, -// Regional, and Zonal Resources. +// Regional, and Zonal Resources. Note that completed Operation +// resources have a limited retention period. type Operation struct { // ClientOperationId: [Output Only] The value of `requestId` if you // provided it in the request. Not present otherwise. diff --git a/go.work.sum b/go.work.sum index 9f0e5572d79..5bedd5c9359 100644 --- a/go.work.sum +++ b/go.work.sum @@ -6,6 +6,7 @@ cloud.google.com/go v0.110.7 h1:rJyC7nWRg2jWGZ4wSJ5nY65GTdYJkg0cd/uXb+ACI6o= cloud.google.com/go v0.110.8 h1:tyNdfIxjzaWctIiLYOTalaLKZ17SI44SKFW26QbOhME= cloud.google.com/go v0.110.9 h1:e7ITSqGFFk4rbz/JFIqZh3G4VEHguhAL4BQcFlWtU68= cloud.google.com/go v0.110.10 h1:LXy9GEO+timppncPIAZoOj3l58LIU9k+kn48AN7IO3Y= +cloud.google.com/go v0.111.0 h1:YHLKNupSD1KqjDbQ3+LVdQ81h/UJbJyZG203cEfnQgM= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= diff --git a/recommender/v1beta1/recommender-api.json b/recommender/v1beta1/recommender-api.json index e1ca94581e9..dc80c85aea1 100644 --- a/recommender/v1beta1/recommender-api.json +++ b/recommender/v1beta1/recommender-api.json @@ -108,6 +108,49 @@ "billingAccounts": { "resources": { "locations": { + "methods": { + "list": { + "description": "Lists locations with recommendations or insights.", + "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations", + "httpMethod": "GET", + "id": "recommender.billingAccounts.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^billingAccounts/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "GoogleCloudLocationListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "insightTypes": { "methods": { @@ -536,6 +579,49 @@ "folders": { "resources": { "locations": { + "methods": { + "list": { + "description": "Lists locations with recommendations or insights.", + "flatPath": "v1beta1/folders/{foldersId}/locations", + "httpMethod": "GET", + "id": "recommender.folders.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^folders/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "GoogleCloudLocationListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "insightTypes": { "resources": { @@ -863,6 +949,49 @@ "organizations": { "resources": { "locations": { + "methods": { + "list": { + "description": "Lists locations with recommendations or insights.", + "flatPath": "v1beta1/organizations/{organizationsId}/locations", + "httpMethod": "GET", + "id": "recommender.organizations.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^organizations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "GoogleCloudLocationListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "insightTypes": { "methods": { @@ -1291,6 +1420,49 @@ "projects": { "resources": { "locations": { + "methods": { + "list": { + "description": "Lists locations with recommendations or insights.", + "flatPath": "v1beta1/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "recommender.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/locations", + "response": { + "$ref": "GoogleCloudLocationListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "insightTypes": { "methods": { @@ -1748,9 +1920,61 @@ } } }, - "revision": "20231203", + "revision": "20240107", "rootUrl": "https://recommender.googleapis.com/", "schemas": { + "GoogleCloudLocationListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "GoogleCloudLocationListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "GoogleCloudLocationLocation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudLocationLocation": { + "description": "A resource that represents a Google Cloud location.", + "id": "GoogleCloudLocationLocation", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRecommenderV1beta1CostProjection": { "description": "Contains metadata about how much money a recommendation can save or incur.", "id": "GoogleCloudRecommenderV1beta1CostProjection", diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index bece19ab9e2..d682b6c7d03 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -460,6 +460,90 @@ type RecommendersService struct { s *Service } +// GoogleCloudLocationListLocationsResponse: The response message for +// Locations.ListLocations. +type GoogleCloudLocationListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"` + + // NextPageToken: The standard List next-page token. + 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. "Locations") 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. "Locations") 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 *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudLocationListLocationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudLocationLocation: A resource that represents a Google +// Cloud location. +type GoogleCloudLocationLocation struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` + + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` + + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` + + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,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 *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudLocationLocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRecommenderV1beta1CostProjection: Contains metadata about // how much money a recommendation can save or incur. type GoogleCloudRecommenderV1beta1CostProjection struct { @@ -1840,6 +1924,216 @@ func (s *GoogleTypeMoney) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// method id "recommender.billingAccounts.locations.list": + +type BillingAccountsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists locations with recommendations or insights. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *BillingAccountsLocationsService) List(name string) *BillingAccountsLocationsListCall { + c := &BillingAccountsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *BillingAccountsLocationsListCall) Filter(filter string) *BillingAccountsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *BillingAccountsLocationsListCall) PageSize(pageSize int64) *BillingAccountsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *BillingAccountsLocationsListCall) PageToken(pageToken string) *BillingAccountsLocationsListCall { + 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 *BillingAccountsLocationsListCall) Fields(s ...googleapi.Field) *BillingAccountsLocationsListCall { + 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 *BillingAccountsLocationsListCall) IfNoneMatch(entityTag string) *BillingAccountsLocationsListCall { + 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 *BillingAccountsLocationsListCall) Context(ctx context.Context) *BillingAccountsLocationsListCall { + 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 *BillingAccountsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *BillingAccountsLocationsListCall) 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}/locations") + 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 "recommender.billingAccounts.locations.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *BillingAccountsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, 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 := &GoogleCloudLocationListLocationsResponse{ + 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 locations with recommendations or insights.", + // "flatPath": "v1beta1/billingAccounts/{billingAccountsId}/locations", + // "httpMethod": "GET", + // "id": "recommender.billingAccounts.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^billingAccounts/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "GoogleCloudLocationListLocationsResponse" + // }, + // "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 *BillingAccountsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) 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 "recommender.billingAccounts.locations.insightTypes.getConfig": type BillingAccountsLocationsInsightTypesGetConfigCall struct { @@ -4020,9 +4314,9 @@ func (c *BillingAccountsLocationsRecommendersRecommendationsMarkSucceededCall) D } -// method id "recommender.folders.locations.insightTypes.insights.get": +// method id "recommender.folders.locations.list": -type FoldersLocationsInsightTypesInsightsGetCall struct { +type FoldersLocationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -4031,20 +4325,44 @@ type FoldersLocationsInsightTypesInsightsGetCall struct { header_ http.Header } -// Get: Gets the requested insight. Requires the recommender.*.get IAM -// permission for the specified insight type. +// List: Lists locations with recommendations or insights. // -// - name: Name of the insight. -func (r *FoldersLocationsInsightTypesInsightsService) Get(name string) *FoldersLocationsInsightTypesInsightsGetCall { - c := &FoldersLocationsInsightTypesInsightsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource that owns the locations collection, if +// applicable. +func (r *FoldersLocationsService) List(name string) *FoldersLocationsListCall { + c := &FoldersLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *FoldersLocationsListCall) Filter(filter string) *FoldersLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *FoldersLocationsListCall) PageSize(pageSize int64) *FoldersLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *FoldersLocationsListCall) PageToken(pageToken string) *FoldersLocationsListCall { + 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 *FoldersLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsGetCall { +func (c *FoldersLocationsListCall) Fields(s ...googleapi.Field) *FoldersLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -4054,7 +4372,7 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Fiel // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsInsightTypesInsightsGetCall { +func (c *FoldersLocationsListCall) IfNoneMatch(entityTag string) *FoldersLocationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -4062,21 +4380,21 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag stri // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *FoldersLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsGetCall { +func (c *FoldersLocationsListCall) Context(ctx context.Context) *FoldersLocationsListCall { 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 *FoldersLocationsInsightTypesInsightsGetCall) Header() http.Header { +func (c *FoldersLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *FoldersLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *FoldersLocationsListCall) 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_ { @@ -4089,7 +4407,7 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*ht var body io.Reader = nil 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/{+name}/locations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -4102,15 +4420,16 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "recommender.folders.locations.insightTypes.insights.get" call. -// Exactly one of *GoogleCloudRecommenderV1beta1Insight or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or +// Do executes the "recommender.folders.locations.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or // (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, error) { +func (c *FoldersLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4129,7 +4448,7 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudRecommenderV1beta1Insight{ + ret := &GoogleCloudLocationListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4141,7 +4460,192 @@ func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", + // "description": "Lists locations with recommendations or insights.", + // "flatPath": "v1beta1/folders/{foldersId}/locations", + // "httpMethod": "GET", + // "id": "recommender.folders.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^folders/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "GoogleCloudLocationListLocationsResponse" + // }, + // "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 *FoldersLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) 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 "recommender.folders.locations.insightTypes.insights.get": + +type FoldersLocationsInsightTypesInsightsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the requested insight. Requires the recommender.*.get IAM +// permission for the specified insight type. +// +// - name: Name of the insight. +func (r *FoldersLocationsInsightTypesInsightsService) Get(name string) *FoldersLocationsInsightTypesInsightsGetCall { + c := &FoldersLocationsInsightTypesInsightsGetCall{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 *FoldersLocationsInsightTypesInsightsGetCall) Fields(s ...googleapi.Field) *FoldersLocationsInsightTypesInsightsGetCall { + 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 *FoldersLocationsInsightTypesInsightsGetCall) IfNoneMatch(entityTag string) *FoldersLocationsInsightTypesInsightsGetCall { + 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 *FoldersLocationsInsightTypesInsightsGetCall) Context(ctx context.Context) *FoldersLocationsInsightTypesInsightsGetCall { + 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 *FoldersLocationsInsightTypesInsightsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsInsightTypesInsightsGetCall) 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 "recommender.folders.locations.insightTypes.insights.get" call. +// Exactly one of *GoogleCloudRecommenderV1beta1Insight or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudRecommenderV1beta1Insight.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *FoldersLocationsInsightTypesInsightsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1Insight, 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 := &GoogleCloudRecommenderV1beta1Insight{ + 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 requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", // "flatPath": "v1beta1/folders/{foldersId}/locations/{locationsId}/insightTypes/{insightTypesId}/insights/{insightsId}", // "httpMethod": "GET", // "id": "recommender.folders.locations.insightTypes.insights.get", @@ -5530,7 +6034,166 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts . // "$ref": "GoogleCloudRecommenderV1beta1MarkRecommendationSucceededRequest" // }, // "response": { - // "$ref": "GoogleCloudRecommenderV1beta1Recommendation" + // "$ref": "GoogleCloudRecommenderV1beta1Recommendation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "recommender.insightTypes.list": + +type InsightTypesListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists available InsightTypes. No IAM permissions are required. +func (r *InsightTypesService) List() *InsightTypesListCall { + c := &InsightTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": The number of +// InsightTypes to return per page. The service may return fewer than +// this value. +func (c *InsightTypesListCall) PageSize(pageSize int64) *InsightTypesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListRecommenders` call. Provide this to +// retrieve the subsequent page. +func (c *InsightTypesListCall) PageToken(pageToken string) *InsightTypesListCall { + 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 *InsightTypesListCall) Fields(s ...googleapi.Field) *InsightTypesListCall { + 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 *InsightTypesListCall) IfNoneMatch(entityTag string) *InsightTypesListCall { + 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 *InsightTypesListCall) Context(ctx context.Context) *InsightTypesListCall { + 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 *InsightTypesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *InsightTypesListCall) 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/insightTypes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "recommender.insightTypes.list" call. +// Exactly one of *GoogleCloudRecommenderV1beta1ListInsightTypesResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudRecommenderV1beta1ListInsightTypesResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightTypesResponse, 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 := &GoogleCloudRecommenderV1beta1ListInsightTypesResponse{ + 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 available InsightTypes. No IAM permissions are required.", + // "flatPath": "v1beta1/insightTypes", + // "httpMethod": "GET", + // "id": "recommender.insightTypes.list", + // "parameterOrder": [], + // "parameters": { + // "pageSize": { + // "description": "Optional. The number of InsightTypes to return per page. The service may return fewer than this value.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/insightTypes", + // "response": { + // "$ref": "GoogleCloudRecommenderV1beta1ListInsightTypesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5539,34 +6202,68 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts . } -// method id "recommender.insightTypes.list": +// 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 *InsightTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightTypesResponse) 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) + } +} -type InsightTypesListCall struct { +// method id "recommender.organizations.locations.list": + +type OrganizationsLocationsListCall struct { s *Service + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists available InsightTypes. No IAM permissions are required. -func (r *InsightTypesService) List() *InsightTypesListCall { - c := &InsightTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// List: Lists locations with recommendations or insights. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *OrganizationsLocationsService) List(name string) *OrganizationsLocationsListCall { + c := &OrganizationsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// PageSize sets the optional parameter "pageSize": The number of -// InsightTypes to return per page. The service may return fewer than -// this value. -func (c *InsightTypesListCall) PageSize(pageSize int64) *InsightTypesListCall { +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *OrganizationsLocationsListCall) Filter(filter string) *OrganizationsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *OrganizationsLocationsListCall) PageSize(pageSize int64) *OrganizationsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListRecommenders` call. Provide this to -// retrieve the subsequent page. -func (c *InsightTypesListCall) PageToken(pageToken string) *InsightTypesListCall { +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *OrganizationsLocationsListCall) PageToken(pageToken string) *OrganizationsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5574,7 +6271,7 @@ func (c *InsightTypesListCall) PageToken(pageToken string) *InsightTypesListCall // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *InsightTypesListCall) Fields(s ...googleapi.Field) *InsightTypesListCall { +func (c *OrganizationsLocationsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5584,7 +6281,7 @@ func (c *InsightTypesListCall) Fields(s ...googleapi.Field) *InsightTypesListCal // 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 *InsightTypesListCall) IfNoneMatch(entityTag string) *InsightTypesListCall { +func (c *OrganizationsLocationsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsListCall { c.ifNoneMatch_ = entityTag return c } @@ -5592,21 +6289,21 @@ func (c *InsightTypesListCall) IfNoneMatch(entityTag string) *InsightTypesListCa // 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 *InsightTypesListCall) Context(ctx context.Context) *InsightTypesListCall { +func (c *OrganizationsLocationsListCall) Context(ctx context.Context) *OrganizationsLocationsListCall { 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 *InsightTypesListCall) Header() http.Header { +func (c *OrganizationsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *InsightTypesListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsListCall) 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_ { @@ -5619,26 +6316,29 @@ func (c *InsightTypesListCall) doRequest(alt string) (*http.Response, error) { var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/insightTypes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/locations") 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 "recommender.insightTypes.list" call. -// Exactly one of *GoogleCloudRecommenderV1beta1ListInsightTypesResponse -// or error will be non-nil. Any non-2xx status code is an error. -// Response headers are in either -// *GoogleCloudRecommenderV1beta1ListInsightTypesResponse.ServerResponse. -// Header or (if a response was returned at all) in +// Do executes the "recommender.organizations.locations.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1ListInsightTypesResponse, error) { +func (c *OrganizationsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5657,7 +6357,7 @@ func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRec if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudRecommenderV1beta1ListInsightTypesResponse{ + ret := &GoogleCloudLocationListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5669,27 +6369,41 @@ func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRec } return ret, nil // { - // "description": "Lists available InsightTypes. No IAM permissions are required.", - // "flatPath": "v1beta1/insightTypes", + // "description": "Lists locations with recommendations or insights.", + // "flatPath": "v1beta1/organizations/{organizationsId}/locations", // "httpMethod": "GET", - // "id": "recommender.insightTypes.list", - // "parameterOrder": [], + // "id": "recommender.organizations.locations.list", + // "parameterOrder": [ + // "name" + // ], // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^organizations/[^/]+$", + // "required": true, + // "type": "string" + // }, // "pageSize": { - // "description": "Optional. The number of InsightTypes to return per page. The service may return fewer than this value.", + // "description": "The maximum number of results to return. If not set, the service selects a default.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "Optional. A page token, received from a previous `ListRecommenders` call. Provide this to retrieve the subsequent page.", + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/insightTypes", + // "path": "v1beta1/{+name}/locations", // "response": { - // "$ref": "GoogleCloudRecommenderV1beta1ListInsightTypesResponse" + // "$ref": "GoogleCloudLocationListLocationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5701,7 +6415,7 @@ func (c *InsightTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRec // 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 *InsightTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudRecommenderV1beta1ListInsightTypesResponse) error) error { +func (c *OrganizationsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -7899,6 +8613,216 @@ func (c *OrganizationsLocationsRecommendersRecommendationsMarkSucceededCall) Do( } +// method id "recommender.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists locations with recommendations or insights. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + 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 *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) 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}/locations") + 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 "recommender.projects.locations.list" call. +// Exactly one of *GoogleCloudLocationListLocationsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudLocationListLocationsResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, 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 := &GoogleCloudLocationListLocationsResponse{ + 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 locations with recommendations or insights.", + // "flatPath": "v1beta1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "recommender.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/locations", + // "response": { + // "$ref": "GoogleCloudLocationListLocationsResponse" + // }, + // "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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) 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 "recommender.projects.locations.insightTypes.getConfig": type ProjectsLocationsInsightTypesGetConfigCall struct { diff --git a/script/v1/script-api.json b/script/v1/script-api.json index 4daf6d94ce5..be4657a8261 100644 --- a/script/v1/script-api.json +++ b/script/v1/script-api.json @@ -891,7 +891,7 @@ } } }, - "revision": "20231203", + "revision": "20240108", "rootUrl": "https://script.googleapis.com/", "schemas": { "Content": { @@ -905,10 +905,6 @@ }, "type": "array" }, - "revertFlumeInvoked": { - "description": "Set to true if called from revert flume to allow deletion of system generated manifest file while validating content request. This value is false by default.", - "type": "boolean" - }, "scriptId": { "description": "The script project's Drive ID.", "type": "string" diff --git a/script/v1/script-gen.go b/script/v1/script-gen.go index 7a4bdc6771f..38449fc0d90 100644 --- a/script/v1/script-gen.go +++ b/script/v1/script-gen.go @@ -288,11 +288,6 @@ type Content struct { // include the manifest configurations for the project. Files []*File `json:"files,omitempty"` - // RevertFlumeInvoked: Set to true if called from revert flume to allow - // deletion of system generated manifest file while validating content - // request. This value is false by default. - RevertFlumeInvoked bool `json:"revertFlumeInvoked,omitempty"` - // ScriptId: The script project's Drive ID. ScriptId string `json:"scriptId,omitempty"` diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index ae535bf7315..25003692209 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -33,7 +33,7 @@ "location": "me-central2" } ], - "etag": "\"3131393937383137313835393437363337313333\"", + "etag": "\"3136323232353032373039383637313835303036\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -210,7 +210,7 @@ "type": "string" }, "pageSize": { - "description": "Maximum number of items return in a single page of responses. Maximum 1000.", + "description": "Maximum number of items to return in a single page of responses. Maximum 1000.", "format": "int32", "location": "query", "minimum": "0", @@ -1387,6 +1387,240 @@ } } }, + "folders": { + "methods": { + "delete": { + "description": "Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled.", + "httpMethod": "DELETE", + "id": "storage.folders.delete", + "parameterOrder": [ + "bucket", + "folder" + ], + "parameters": { + "bucket": { + "description": "Name of the bucket in which the folder resides.", + "location": "path", + "required": true, + "type": "string" + }, + "folder": { + "description": "Name of a folder.", + "location": "path", + "required": true, + "type": "string" + }, + "ifMetagenerationMatch": { + "description": "If set, only deletes the folder if its metageneration matches this value.", + "format": "int64", + "location": "query", + "type": "string" + }, + "ifMetagenerationNotMatch": { + "description": "If set, only deletes the folder if its metageneration does not match this value.", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "b/{bucket}/folders/{folder}", + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/devstorage.full_control", + "https://www.googleapis.com/auth/devstorage.read_write" + ] + }, + "get": { + "description": "Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled.", + "httpMethod": "GET", + "id": "storage.folders.get", + "parameterOrder": [ + "bucket", + "folder" + ], + "parameters": { + "bucket": { + "description": "Name of the bucket in which the folder resides.", + "location": "path", + "required": true, + "type": "string" + }, + "folder": { + "description": "Name of a folder.", + "location": "path", + "required": true, + "type": "string" + }, + "ifMetagenerationMatch": { + "description": "Makes the return of the folder metadata conditional on whether the folder's current metageneration matches the given value.", + "format": "int64", + "location": "query", + "type": "string" + }, + "ifMetagenerationNotMatch": { + "description": "Makes the return of the folder metadata conditional on whether the folder's current metageneration does not match the given value.", + "format": "int64", + "location": "query", + "type": "string" + } + }, + "path": "b/{bucket}/folders/{folder}", + "response": { + "$ref": "Folder" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/devstorage.full_control", + "https://www.googleapis.com/auth/devstorage.read_only", + "https://www.googleapis.com/auth/devstorage.read_write" + ] + }, + "insert": { + "description": "Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.", + "httpMethod": "POST", + "id": "storage.folders.insert", + "parameterOrder": [ + "bucket" + ], + "parameters": { + "bucket": { + "description": "Name of the bucket in which the folder resides.", + "location": "path", + "required": true, + "type": "string" + }, + "recursive": { + "description": "If true, any parent folder which doesn’t exist will be created automatically.", + "location": "query", + "type": "boolean" + } + }, + "path": "b/{bucket}/folders", + "request": { + "$ref": "Folder" + }, + "response": { + "$ref": "Folder" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/devstorage.full_control", + "https://www.googleapis.com/auth/devstorage.read_write" + ] + }, + "list": { + "description": "Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.", + "httpMethod": "GET", + "id": "storage.folders.list", + "parameterOrder": [ + "bucket" + ], + "parameters": { + "bucket": { + "description": "Name of the bucket in which to look for folders.", + "location": "path", + "required": true, + "type": "string" + }, + "delimiter": { + "description": "Returns results in a directory-like mode. The only supported value is '/'. If set, items will only contain folders that either exactly match the prefix, or are one level below the prefix.", + "location": "query", + "type": "string" + }, + "endOffset": { + "description": "Filter results to folders whose names are lexicographically before endOffset. If startOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Maximum number of items to return in a single page of responses.", + "format": "int32", + "location": "query", + "minimum": "0", + "type": "integer" + }, + "pageToken": { + "description": "A previously-returned page token representing part of the larger set of results to view.", + "location": "query", + "type": "string" + }, + "prefix": { + "description": "Filter results to folders whose paths begin with this prefix. If set, the value must either be an empty string or end with a '/'.", + "location": "query", + "type": "string" + }, + "startOffset": { + "description": "Filter results to folders whose names are lexicographically equal to or after startOffset. If endOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).", + "location": "query", + "type": "string" + } + }, + "path": "b/{bucket}/folders", + "response": { + "$ref": "Folders" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/devstorage.full_control", + "https://www.googleapis.com/auth/devstorage.read_only", + "https://www.googleapis.com/auth/devstorage.read_write" + ] + }, + "rename": { + "description": "Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.", + "httpMethod": "POST", + "id": "storage.folders.rename", + "parameterOrder": [ + "bucket", + "sourceFolder", + "destinationFolder" + ], + "parameters": { + "bucket": { + "description": "Name of the bucket in which the folders are in.", + "location": "path", + "required": true, + "type": "string" + }, + "destinationFolder": { + "description": "Name of the destination folder.", + "location": "path", + "required": true, + "type": "string" + }, + "ifSourceMetagenerationMatch": { + "description": "Makes the operation conditional on whether the source object's current metageneration matches the given value.", + "format": "int64", + "location": "query", + "type": "string" + }, + "ifSourceMetagenerationNotMatch": { + "description": "Makes the operation conditional on whether the source object's current metageneration does not match the given value.", + "format": "int64", + "location": "query", + "type": "string" + }, + "sourceFolder": { + "description": "Name of the source folder.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "b/{bucket}/folders/{sourceFolder}/renameTo/folders/{destinationFolder}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/devstorage.full_control", + "https://www.googleapis.com/auth/devstorage.read_write" + ] + } + } + }, "managedFolders": { "methods": { "delete": { @@ -1565,7 +1799,7 @@ "type": "string" }, "pageSize": { - "description": "Maximum number of items return in a single page of responses.", + "description": "Maximum number of items to return in a single page of responses.", "format": "int32", "location": "query", "minimum": "0", @@ -3806,7 +4040,7 @@ } } }, - "revision": "20231218", + "revision": "20240105", "rootUrl": "https://storage.googleapis.com/", "schemas": { "AnywhereCache": { @@ -4014,6 +4248,16 @@ "description": "HTTP 1.1 Entity tag for the bucket.", "type": "string" }, + "hierarchicalNamespace": { + "description": "The bucket's hierarchical namespace configuration.", + "properties": { + "enabled": { + "description": "When set to true, hierarchical namespace is enabled for this bucket.", + "type": "boolean" + } + }, + "type": "object" + }, "iamConfiguration": { "description": "The bucket's IAM configuration.", "properties": { @@ -4601,6 +4845,90 @@ }, "type": "object" }, + "Folder": { + "description": "A folder. Only available in buckets with hierarchical namespace enabled.", + "id": "Folder", + "properties": { + "bucket": { + "description": "The name of the bucket containing this folder.", + "type": "string" + }, + "id": { + "description": "The ID of the folder, including the bucket name, folder name.", + "type": "string" + }, + "kind": { + "default": "storage#folder", + "description": "The kind of item this is. For folders, this is always storage#folder.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "An individual metadata entry.", + "type": "string" + }, + "description": "User-provided metadata, in key/value pairs.", + "type": "object" + }, + "metageneration": { + "description": "The version of the metadata for this folder. Used for preconditions and for detecting changes in metadata.", + "format": "int64", + "type": "string" + }, + "name": { + "description": "The name of the folder. Required if not specified by URL parameter.", + "type": "string" + }, + "pendingRenameInfo": { + "description": "Only present if the folder is part of an ongoing rename folder operation. Contains information which can be used to query the operation status.", + "properties": { + "operationId": { + "description": "The ID of the rename folder operation.", + "type": "string" + } + }, + "type": "object" + }, + "selfLink": { + "description": "The link to this folder.", + "type": "string" + }, + "timeCreated": { + "description": "The creation time of the folder in RFC 3339 format.", + "format": "date-time", + "type": "string" + }, + "updated": { + "description": "The modification time of the folder metadata in RFC 3339 format.", + "format": "date-time", + "type": "string" + } + }, + "type": "object" + }, + "Folders": { + "description": "A list of folders.", + "id": "Folders", + "properties": { + "items": { + "description": "The list of items.", + "items": { + "$ref": "Folder" + }, + "type": "array" + }, + "kind": { + "default": "storage#folders", + "description": "The kind of item this is. For lists of folders, this is always storage#folders.", + "type": "string" + }, + "nextPageToken": { + "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.", + "type": "string" + } + }, + "type": "object" + }, "GoogleLongrunningListOperationsResponse": { "description": "The response message for storage.buckets.operations.list.", "id": "GoogleLongrunningListOperationsResponse", diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index f50173e09e8..82e2530c0c9 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -160,6 +160,7 @@ func New(client *http.Client) (*Service, error) { s.Buckets = NewBucketsService(s) s.Channels = NewChannelsService(s) s.DefaultObjectAccessControls = NewDefaultObjectAccessControlsService(s) + s.Folders = NewFoldersService(s) s.ManagedFolders = NewManagedFoldersService(s) s.Notifications = NewNotificationsService(s) s.ObjectAccessControls = NewObjectAccessControlsService(s) @@ -184,6 +185,8 @@ type Service struct { DefaultObjectAccessControls *DefaultObjectAccessControlsService + Folders *FoldersService + ManagedFolders *ManagedFoldersService Notifications *NotificationsService @@ -249,6 +252,15 @@ type DefaultObjectAccessControlsService struct { s *Service } +func NewFoldersService(s *Service) *FoldersService { + rs := &FoldersService{s: s} + return rs +} + +type FoldersService struct { + s *Service +} + func NewManagedFoldersService(s *Service) *ManagedFoldersService { rs := &ManagedFoldersService{s: s} return rs @@ -485,6 +497,10 @@ type Bucket struct { // Etag: HTTP 1.1 Entity tag for the bucket. Etag string `json:"etag,omitempty"` + // HierarchicalNamespace: The bucket's hierarchical namespace + // configuration. + HierarchicalNamespace *BucketHierarchicalNamespace `json:"hierarchicalNamespace,omitempty"` + // IamConfiguration: The bucket's IAM configuration. IamConfiguration *BucketIamConfiguration `json:"iamConfiguration,omitempty"` @@ -785,6 +801,36 @@ func (s *BucketEncryption) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BucketHierarchicalNamespace: The bucket's hierarchical namespace +// configuration. +type BucketHierarchicalNamespace struct { + // Enabled: When set to true, hierarchical namespace is enabled for this + // bucket. + 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 *BucketHierarchicalNamespace) MarshalJSON() ([]byte, error) { + type NoMethod BucketHierarchicalNamespace + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BucketIamConfiguration: The bucket's IAM configuration. type BucketIamConfiguration struct { // BucketPolicyOnly: The bucket's uniform bucket-level access @@ -1797,6 +1843,143 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Folder: A folder. Only available in buckets with hierarchical +// namespace enabled. +type Folder struct { + // Bucket: The name of the bucket containing this folder. + Bucket string `json:"bucket,omitempty"` + + // Id: The ID of the folder, including the bucket name, folder name. + Id string `json:"id,omitempty"` + + // Kind: The kind of item this is. For folders, this is always + // storage#folder. + Kind string `json:"kind,omitempty"` + + // Metadata: User-provided metadata, in key/value pairs. + Metadata map[string]string `json:"metadata,omitempty"` + + // Metageneration: The version of the metadata for this folder. Used for + // preconditions and for detecting changes in metadata. + Metageneration int64 `json:"metageneration,omitempty,string"` + + // Name: The name of the folder. Required if not specified by URL + // parameter. + Name string `json:"name,omitempty"` + + // PendingRenameInfo: Only present if the folder is part of an ongoing + // rename folder operation. Contains information which can be used to + // query the operation status. + PendingRenameInfo *FolderPendingRenameInfo `json:"pendingRenameInfo,omitempty"` + + // SelfLink: The link to this folder. + SelfLink string `json:"selfLink,omitempty"` + + // TimeCreated: The creation time of the folder in RFC 3339 format. + TimeCreated string `json:"timeCreated,omitempty"` + + // Updated: The modification time of the folder metadata in RFC 3339 + // format. + Updated string `json:"updated,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 *Folder) MarshalJSON() ([]byte, error) { + type NoMethod Folder + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// FolderPendingRenameInfo: Only present if the folder is part of an +// ongoing rename folder operation. Contains information which can be +// used to query the operation status. +type FolderPendingRenameInfo struct { + // OperationId: The ID of the rename folder operation. + OperationId string `json:"operationId,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 *FolderPendingRenameInfo) MarshalJSON() ([]byte, error) { + type NoMethod FolderPendingRenameInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Folders: A list of folders. +type Folders struct { + // Items: The list of items. + Items []*Folder `json:"items,omitempty"` + + // Kind: The kind of item this is. For lists of folders, this is always + // storage#folders. + Kind string `json:"kind,omitempty"` + + // NextPageToken: The continuation token, used to page through large + // result sets. Provide this value in a subsequent request to return the + // next page of results. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Items") 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. "Items") 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 *Folders) MarshalJSON() ([]byte, error) { + type NoMethod Folders + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleLongrunningListOperationsResponse: The response message for // storage.buckets.operations.list. type GoogleLongrunningListOperationsResponse struct { @@ -3535,7 +3718,7 @@ func (r *AnywhereCachesService) List(bucket string) *AnywhereCachesListCall { } // PageSize sets the optional parameter "pageSize": Maximum number of -// items return in a single page of responses. Maximum 1000. +// items to return in a single page of responses. Maximum 1000. func (c *AnywhereCachesListCall) PageSize(pageSize int64) *AnywhereCachesListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -3662,7 +3845,7 @@ func (c *AnywhereCachesListCall) Do(opts ...googleapi.CallOption) (*AnywhereCach // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of items return in a single page of responses. Maximum 1000.", + // "description": "Maximum number of items to return in a single page of responses. Maximum 1000.", // "format": "int32", // "location": "query", // "minimum": "0", @@ -8320,6 +8503,932 @@ func (c *DefaultObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) } +// method id "storage.folders.delete": + +type FoldersDeleteCall struct { + s *Service + bucket string + folder string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Permanently deletes a folder. Only applicable to buckets with +// hierarchical namespace enabled. +// +// - bucket: Name of the bucket in which the folder resides. +// - folder: Name of a folder. +func (r *FoldersService) Delete(bucket string, folder string) *FoldersDeleteCall { + c := &FoldersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.bucket = bucket + c.folder = folder + return c +} + +// IfMetagenerationMatch sets the optional parameter +// "ifMetagenerationMatch": If set, only deletes the folder if its +// metageneration matches this value. +func (c *FoldersDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *FoldersDeleteCall { + c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) + return c +} + +// IfMetagenerationNotMatch sets the optional parameter +// "ifMetagenerationNotMatch": If set, only deletes the folder if its +// metageneration does not match this value. +func (c *FoldersDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *FoldersDeleteCall { + c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) + 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 *FoldersDeleteCall) Fields(s ...googleapi.Field) *FoldersDeleteCall { + 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 *FoldersDeleteCall) Context(ctx context.Context) *FoldersDeleteCall { + 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 *FoldersDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersDeleteCall) 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, "b/{bucket}/folders/{folder}") + 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{ + "bucket": c.bucket, + "folder": c.folder, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "storage.folders.delete" call. +func (c *FoldersDeleteCall) Do(opts ...googleapi.CallOption) error { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if err != nil { + return err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return gensupport.WrapError(err) + } + return nil + // { + // "description": "Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled.", + // "httpMethod": "DELETE", + // "id": "storage.folders.delete", + // "parameterOrder": [ + // "bucket", + // "folder" + // ], + // "parameters": { + // "bucket": { + // "description": "Name of the bucket in which the folder resides.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "folder": { + // "description": "Name of a folder.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "ifMetagenerationMatch": { + // "description": "If set, only deletes the folder if its metageneration matches this value.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "ifMetagenerationNotMatch": { + // "description": "If set, only deletes the folder if its metageneration does not match this value.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "b/{bucket}/folders/{folder}", + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/devstorage.full_control", + // "https://www.googleapis.com/auth/devstorage.read_write" + // ] + // } + +} + +// method id "storage.folders.get": + +type FoldersGetCall struct { + s *Service + bucket string + folder string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns metadata for the specified folder. Only applicable to +// buckets with hierarchical namespace enabled. +// +// - bucket: Name of the bucket in which the folder resides. +// - folder: Name of a folder. +func (r *FoldersService) Get(bucket string, folder string) *FoldersGetCall { + c := &FoldersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.bucket = bucket + c.folder = folder + return c +} + +// IfMetagenerationMatch sets the optional parameter +// "ifMetagenerationMatch": Makes the return of the folder metadata +// conditional on whether the folder's current metageneration matches +// the given value. +func (c *FoldersGetCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *FoldersGetCall { + c.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint(ifMetagenerationMatch)) + return c +} + +// IfMetagenerationNotMatch sets the optional parameter +// "ifMetagenerationNotMatch": Makes the return of the folder metadata +// conditional on whether the folder's current metageneration does not +// match the given value. +func (c *FoldersGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *FoldersGetCall { + c.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint(ifMetagenerationNotMatch)) + 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 *FoldersGetCall) Fields(s ...googleapi.Field) *FoldersGetCall { + 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 *FoldersGetCall) IfNoneMatch(entityTag string) *FoldersGetCall { + 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 *FoldersGetCall) Context(ctx context.Context) *FoldersGetCall { + 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 *FoldersGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersGetCall) 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, "b/{bucket}/folders/{folder}") + 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{ + "bucket": c.bucket, + "folder": c.folder, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "storage.folders.get" call. +// Exactly one of *Folder or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Folder.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersGetCall) Do(opts ...googleapi.CallOption) (*Folder, 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 := &Folder{ + 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": "Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled.", + // "httpMethod": "GET", + // "id": "storage.folders.get", + // "parameterOrder": [ + // "bucket", + // "folder" + // ], + // "parameters": { + // "bucket": { + // "description": "Name of the bucket in which the folder resides.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "folder": { + // "description": "Name of a folder.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "ifMetagenerationMatch": { + // "description": "Makes the return of the folder metadata conditional on whether the folder's current metageneration matches the given value.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "ifMetagenerationNotMatch": { + // "description": "Makes the return of the folder metadata conditional on whether the folder's current metageneration does not match the given value.", + // "format": "int64", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "b/{bucket}/folders/{folder}", + // "response": { + // "$ref": "Folder" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/devstorage.full_control", + // "https://www.googleapis.com/auth/devstorage.read_only", + // "https://www.googleapis.com/auth/devstorage.read_write" + // ] + // } + +} + +// method id "storage.folders.insert": + +type FoldersInsertCall struct { + s *Service + bucket string + folder *Folder + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Insert: Creates a new folder. Only applicable to buckets with +// hierarchical namespace enabled. +// +// - bucket: Name of the bucket in which the folder resides. +func (r *FoldersService) Insert(bucket string, folder *Folder) *FoldersInsertCall { + c := &FoldersInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.bucket = bucket + c.folder = folder + return c +} + +// Recursive sets the optional parameter "recursive": If true, any +// parent folder which doesn’t exist will be created automatically. +func (c *FoldersInsertCall) Recursive(recursive bool) *FoldersInsertCall { + c.urlParams_.Set("recursive", fmt.Sprint(recursive)) + 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 *FoldersInsertCall) Fields(s ...googleapi.Field) *FoldersInsertCall { + 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 *FoldersInsertCall) Context(ctx context.Context) *FoldersInsertCall { + 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 *FoldersInsertCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersInsertCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.folder) + 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, "b/{bucket}/folders") + 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{ + "bucket": c.bucket, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "storage.folders.insert" call. +// Exactly one of *Folder or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Folder.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersInsertCall) Do(opts ...googleapi.CallOption) (*Folder, 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 := &Folder{ + 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": "Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.", + // "httpMethod": "POST", + // "id": "storage.folders.insert", + // "parameterOrder": [ + // "bucket" + // ], + // "parameters": { + // "bucket": { + // "description": "Name of the bucket in which the folder resides.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "recursive": { + // "description": "If true, any parent folder which doesn’t exist will be created automatically.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "b/{bucket}/folders", + // "request": { + // "$ref": "Folder" + // }, + // "response": { + // "$ref": "Folder" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/devstorage.full_control", + // "https://www.googleapis.com/auth/devstorage.read_write" + // ] + // } + +} + +// method id "storage.folders.list": + +type FoldersListCall struct { + s *Service + bucket string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of folders matching the criteria. Only +// applicable to buckets with hierarchical namespace enabled. +// +// - bucket: Name of the bucket in which to look for folders. +func (r *FoldersService) List(bucket string) *FoldersListCall { + c := &FoldersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.bucket = bucket + return c +} + +// Delimiter sets the optional parameter "delimiter": Returns results in +// a directory-like mode. The only supported value is '/'. If set, items +// will only contain folders that either exactly match the prefix, or +// are one level below the prefix. +func (c *FoldersListCall) Delimiter(delimiter string) *FoldersListCall { + c.urlParams_.Set("delimiter", delimiter) + return c +} + +// EndOffset sets the optional parameter "endOffset": Filter results to +// folders whose names are lexicographically before endOffset. If +// startOffset is also set, the folders listed will have names between +// startOffset (inclusive) and endOffset (exclusive). +func (c *FoldersListCall) EndOffset(endOffset string) *FoldersListCall { + c.urlParams_.Set("endOffset", endOffset) + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of +// items to return in a single page of responses. +func (c *FoldersListCall) PageSize(pageSize int64) *FoldersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A +// previously-returned page token representing part of the larger set of +// results to view. +func (c *FoldersListCall) PageToken(pageToken string) *FoldersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Prefix sets the optional parameter "prefix": Filter results to +// folders whose paths begin with this prefix. If set, the value must +// either be an empty string or end with a '/'. +func (c *FoldersListCall) Prefix(prefix string) *FoldersListCall { + c.urlParams_.Set("prefix", prefix) + return c +} + +// StartOffset sets the optional parameter "startOffset": Filter results +// to folders whose names are lexicographically equal to or after +// startOffset. If endOffset is also set, the folders listed will have +// names between startOffset (inclusive) and endOffset (exclusive). +func (c *FoldersListCall) StartOffset(startOffset string) *FoldersListCall { + c.urlParams_.Set("startOffset", startOffset) + 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 *FoldersListCall) Fields(s ...googleapi.Field) *FoldersListCall { + 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 *FoldersListCall) IfNoneMatch(entityTag string) *FoldersListCall { + 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 *FoldersListCall) Context(ctx context.Context) *FoldersListCall { + 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 *FoldersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersListCall) 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, "b/{bucket}/folders") + 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{ + "bucket": c.bucket, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "storage.folders.list" call. +// Exactly one of *Folders or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Folders.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *FoldersListCall) Do(opts ...googleapi.CallOption) (*Folders, 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 := &Folders{ + 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": "Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.", + // "httpMethod": "GET", + // "id": "storage.folders.list", + // "parameterOrder": [ + // "bucket" + // ], + // "parameters": { + // "bucket": { + // "description": "Name of the bucket in which to look for folders.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "delimiter": { + // "description": "Returns results in a directory-like mode. The only supported value is '/'. If set, items will only contain folders that either exactly match the prefix, or are one level below the prefix.", + // "location": "query", + // "type": "string" + // }, + // "endOffset": { + // "description": "Filter results to folders whose names are lexicographically before endOffset. If startOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Maximum number of items to return in a single page of responses.", + // "format": "int32", + // "location": "query", + // "minimum": "0", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A previously-returned page token representing part of the larger set of results to view.", + // "location": "query", + // "type": "string" + // }, + // "prefix": { + // "description": "Filter results to folders whose paths begin with this prefix. If set, the value must either be an empty string or end with a '/'.", + // "location": "query", + // "type": "string" + // }, + // "startOffset": { + // "description": "Filter results to folders whose names are lexicographically equal to or after startOffset. If endOffset is also set, the folders listed will have names between startOffset (inclusive) and endOffset (exclusive).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "b/{bucket}/folders", + // "response": { + // "$ref": "Folders" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/cloud-platform.read-only", + // "https://www.googleapis.com/auth/devstorage.full_control", + // "https://www.googleapis.com/auth/devstorage.read_only", + // "https://www.googleapis.com/auth/devstorage.read_write" + // ] + // } + +} + +// 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 *FoldersListCall) Pages(ctx context.Context, f func(*Folders) 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 "storage.folders.rename": + +type FoldersRenameCall struct { + s *Service + bucket string + sourceFolder string + destinationFolder string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Rename: Renames a source folder to a destination folder. Only +// applicable to buckets with hierarchical namespace enabled. +// +// - bucket: Name of the bucket in which the folders are in. +// - destinationFolder: Name of the destination folder. +// - sourceFolder: Name of the source folder. +func (r *FoldersService) Rename(bucket string, sourceFolder string, destinationFolder string) *FoldersRenameCall { + c := &FoldersRenameCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.bucket = bucket + c.sourceFolder = sourceFolder + c.destinationFolder = destinationFolder + return c +} + +// IfSourceMetagenerationMatch sets the optional parameter +// "ifSourceMetagenerationMatch": Makes the operation conditional on +// whether the source object's current metageneration matches the given +// value. +func (c *FoldersRenameCall) IfSourceMetagenerationMatch(ifSourceMetagenerationMatch int64) *FoldersRenameCall { + c.urlParams_.Set("ifSourceMetagenerationMatch", fmt.Sprint(ifSourceMetagenerationMatch)) + return c +} + +// IfSourceMetagenerationNotMatch sets the optional parameter +// "ifSourceMetagenerationNotMatch": Makes the operation conditional on +// whether the source object's current metageneration does not match the +// given value. +func (c *FoldersRenameCall) IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch int64) *FoldersRenameCall { + c.urlParams_.Set("ifSourceMetagenerationNotMatch", fmt.Sprint(ifSourceMetagenerationNotMatch)) + 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 *FoldersRenameCall) Fields(s ...googleapi.Field) *FoldersRenameCall { + 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 *FoldersRenameCall) Context(ctx context.Context) *FoldersRenameCall { + 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 *FoldersRenameCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersRenameCall) 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, "b/{bucket}/folders/{sourceFolder}/renameTo/folders/{destinationFolder}") + 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{ + "bucket": c.bucket, + "sourceFolder": c.sourceFolder, + "destinationFolder": c.destinationFolder, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "storage.folders.rename" 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 *FoldersRenameCall) 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": "Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.", + // "httpMethod": "POST", + // "id": "storage.folders.rename", + // "parameterOrder": [ + // "bucket", + // "sourceFolder", + // "destinationFolder" + // ], + // "parameters": { + // "bucket": { + // "description": "Name of the bucket in which the folders are in.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "destinationFolder": { + // "description": "Name of the destination folder.", + // "location": "path", + // "required": true, + // "type": "string" + // }, + // "ifSourceMetagenerationMatch": { + // "description": "Makes the operation conditional on whether the source object's current metageneration matches the given value.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "ifSourceMetagenerationNotMatch": { + // "description": "Makes the operation conditional on whether the source object's current metageneration does not match the given value.", + // "format": "int64", + // "location": "query", + // "type": "string" + // }, + // "sourceFolder": { + // "description": "Name of the source folder.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "b/{bucket}/folders/{sourceFolder}/renameTo/folders/{destinationFolder}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/devstorage.full_control", + // "https://www.googleapis.com/auth/devstorage.read_write" + // ] + // } + +} + // method id "storage.managedFolders.delete": type ManagedFoldersDeleteCall struct { @@ -9003,7 +10112,7 @@ func (r *ManagedFoldersService) List(bucket string) *ManagedFoldersListCall { } // PageSize sets the optional parameter "pageSize": Maximum number of -// items return in a single page of responses. +// items to return in a single page of responses. func (c *ManagedFoldersListCall) PageSize(pageSize int64) *ManagedFoldersListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c @@ -9137,7 +10246,7 @@ func (c *ManagedFoldersListCall) Do(opts ...googleapi.CallOption) (*ManagedFolde // "type": "string" // }, // "pageSize": { - // "description": "Maximum number of items return in a single page of responses.", + // "description": "Maximum number of items to return in a single page of responses.", // "format": "int32", // "location": "query", // "minimum": "0",